Ignore:
Timestamp:
05/11/05 19:06:48 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r6919 r7013  
    171171const TString MHCalibrationChargeCam::gsAbsHistXTitle     = "Time [FADC slices]";
    172172const TString MHCalibrationChargeCam::gsAbsHistYTitle     = "Nr. events";
    173 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.05;
     173const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.085;
    174174const Float_t MHCalibrationChargeCam::fgNumLoGainSaturationLimit = 0.005;
    175175const Float_t MHCalibrationChargeCam::fgTimeLowerLimit           = 1.;
    176176const Float_t MHCalibrationChargeCam::fgTimeUpperLimit           = 3.;
    177177const TString MHCalibrationChargeCam::fgReferenceFile = "mjobs/calibrationref.rc";
     178
    178179// --------------------------------------------------------------------------
    179180//
     
    883884      MCalibrationChargePix  &pix = (MCalibrationChargePix&)(*chargecam)[i] ;
    884885
    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())
    886891        {
    887892          pix.SetHiGainSaturation();
     
    14181423    }
    14191424
     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
    14201437  TEnv refenv(fReferenceFile);
    14211438
Note: See TracChangeset for help on using the changeset viewer.