Changeset 5950
- Timestamp:
- 01/23/05 17:36:07 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5948 r5950 26 26 - updated to new logain switch setting in MExtractTimeAndCharge 27 27 - extract also high-gain vs. low-gain time difference 28 29 * mhcalib/MHCalibrationCam.[h,cc] 30 * mhcalib/MHCalibrationChargeCam.[h,cc] 31 - updated reading of conf. values in ReadEnv 28 32 29 33 * mhcalib/MCalibrationHiLoCam.[h,cc] -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r5949 r5950 1215 1215 bad.SetUncalibrated( fittyp ); 1216 1216 } 1217 1217 1218 1218 // 1219 1219 // 4) Check for oscillations … … 1468 1468 rc = kTRUE; 1469 1469 } 1470 1470 1471 if (IsEnvDefined(env, prefix, "Last", print)) 1471 1472 { … … 1474 1475 } 1475 1476 1477 if (IsEnvDefined(env, prefix, "ProbLimit", print)) 1478 { 1479 SetProbLimit(GetEnvValue(env, prefix, "ProbLimit", fProbLimit)); 1480 rc = kTRUE; 1481 } 1482 1483 if (IsEnvDefined(env, prefix, "OverflowLimit", print)) 1484 { 1485 SetOverflowLimit(GetEnvValue(env, prefix, "OverflowLimit", fOverflowLimit)); 1486 rc = kTRUE; 1487 } 1488 1489 if (IsEnvDefined(env, prefix, "PulserFrequency", print)) 1490 { 1491 SetPulserFrequency(GetEnvValue(env, prefix, "PulserFrequency", fPulserFrequency)); 1492 rc = kTRUE; 1493 } 1494 1476 1495 return rc; 1477 1496 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r5864 r5950 170 170 const TString MHCalibrationChargeCam::gsAbsHistXTitle = "Time [FADC slices]"; 171 171 const TString MHCalibrationChargeCam::gsAbsHistYTitle = "Nr. events"; 172 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.0 1;172 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.02; 173 173 const Float_t MHCalibrationChargeCam::fgNumLoGainSaturationLimit = 0.005; 174 174 const Float_t MHCalibrationChargeCam::fgTimeLowerLimit = 1.; … … 419 419 { 420 420 421 MBadPixelsCam *badcam = fIntensBad 422 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; 423 421 424 TH1F *h; 422 425 … … 442 445 pix.SetAbsTimeLast(higainsamples-0.5); 443 446 444 InitHists(pix, fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i],i);447 InitHists(pix,(*badcam)[i],i); 445 448 446 449 h = pix.GetHAbsTime(); … … 538 541 return; 539 542 543 544 MBadPixelsCam *badcam = fIntensBad 545 ? (MBadPixelsCam*) fIntensBad->GetCam() : fBadPixels; 546 547 badcam->Print(); 548 540 549 const Int_t logainsamples = fRunHeader->GetNumSamplesLoGain(); 541 550 … … 561 570 pix.SetAbsTimeLast(logainsamples-0.5); 562 571 563 InitHists(pix, fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i],i);572 InitHists(pix,(*badcam)[i],i); 564 573 565 574 h = pix.GetHAbsTime(); … … 862 871 MBadPixelsCam *badcam = fIntensBad ? fIntensBad->GetCam() : fBadPixels; 863 872 873 864 874 for (Int_t i=0; i<fHiGainArray->GetSize(); i++) 865 875 { … … 868 878 869 879 if (histhi.IsExcluded()) 870 871 880 continue; 881 872 882 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i] ; 873 883 … … 913 923 914 924 if (histlo.IsExcluded()) 915 916 925 continue; 926 917 927 if (histlo.GetSaturated() > fNumLoGainSaturationLimit*histlo.GetHGausHist()->GetEntries()) 918 928 { … … 1409 1419 if (MHCalibrationCam::ReadEnv(env,prefix,print)) 1410 1420 rc = kTRUE; 1421 1422 if (IsEnvDefined(env, prefix, "HiGainNbins", print)) 1423 { 1424 SetNbins(GetEnvValue(env, prefix, "HiGainNbins", fNbins)); 1425 rc = kTRUE; 1426 } 1427 1428 if (IsEnvDefined(env, prefix, "HiGainFirst", print)) 1429 { 1430 SetFirst(GetEnvValue(env, prefix, "HiGainFirst", fFirst)); 1431 rc = kTRUE; 1432 } 1433 1434 if (IsEnvDefined(env, prefix, "HiGainLast", print)) 1435 { 1436 SetLast(GetEnvValue(env, prefix, "HiGainLast", fLast)); 1437 rc = kTRUE; 1438 } 1411 1439 1412 1440 if (IsEnvDefined(env, prefix, "LoGainNbins", print)) … … 1439 1467 rc = kTRUE; 1440 1468 } 1441 1442 1469 1470 1443 1471 return rc; 1444 1472 }
Note:
See TracChangeset
for help on using the changeset viewer.