Changeset 7013 for trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
- Timestamp:
- 05/11/05 19:06:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r6919 r7013 171 171 const TString MHCalibrationChargeCam::gsAbsHistXTitle = "Time [FADC slices]"; 172 172 const TString MHCalibrationChargeCam::gsAbsHistYTitle = "Nr. events"; 173 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.0 5;173 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.085; 174 174 const Float_t MHCalibrationChargeCam::fgNumLoGainSaturationLimit = 0.005; 175 175 const Float_t MHCalibrationChargeCam::fgTimeLowerLimit = 1.; 176 176 const Float_t MHCalibrationChargeCam::fgTimeUpperLimit = 3.; 177 177 const TString MHCalibrationChargeCam::fgReferenceFile = "mjobs/calibrationref.rc"; 178 178 179 // -------------------------------------------------------------------------- 179 180 // … … 883 884 MCalibrationChargePix &pix = (MCalibrationChargePix&)(*chargecam)[i] ; 884 885 885 if (histhi.GetSaturated() > fNumHiGainSaturationLimit*histhi.GetHGausHist()->GetEntries()) 886 const Int_t numsat = histhi.GetSaturated(); 887 888 pix.SetNumSaturated(numsat); 889 890 if (numsat > fNumHiGainSaturationLimit*histhi.GetHGausHist()->GetEntries()) 886 891 { 887 892 pix.SetHiGainSaturation(); … … 1418 1423 } 1419 1424 1425 if (IsEnvDefined(env, prefix, "NumHiGainSaturationLimit", print)) 1426 { 1427 SetNumHiGainSaturationLimit(GetEnvValue(env, prefix, "NumHiGainSaturationLimit", fNumHiGainSaturationLimit)); 1428 rc = kTRUE; 1429 } 1430 1431 if (IsEnvDefined(env, prefix, "NumLoGainSaturationLimit", print)) 1432 { 1433 SetNumLoGainSaturationLimit(GetEnvValue(env, prefix, "NumLoGainSaturationLimit", fNumLoGainSaturationLimit)); 1434 rc = kTRUE; 1435 } 1436 1420 1437 TEnv refenv(fReferenceFile); 1421 1438
Note:
See TracChangeset
for help on using the changeset viewer.