Ignore:
Timestamp:
02/03/04 20:14:48 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc

    r3007 r3012  
    129129  fTimeLastLoGain                   =   0 ;
    130130
     131  fAbsTimeMean                      =  -1.;
     132  fAbsTimeRms                       =  -1.;
     133
    131134  fPheFFactorMethod                 =  -1.;
    132135  fPheFFactorMethodError            =  -1.;
     
    666669    }
    667670
    668   Float_t first;
    669   Float_t last;
    670 
    671671  if (TESTBIT(fFlags,kHiGainSaturation))
    672672    {
    673       first = (Float_t)fHist->GetAbsTimeFirstLoGain();
    674       last = (Float_t)fHist->GetAbsTimeLastLoGain();
    675 
    676       if (first < (Float_t)fTimeFirstLoGain+1)
     673
     674      if (fAbsTimeMean < (Float_t)fTimeFirstLoGain+1)
    677675        {
    678676          *fLog << warn
    679677                << "WARNING: Some absolute times smaller than limit in Pixel "
    680                 << fPixId << " time: " << first << " Limit: " << fTimeFirstLoGain+1 << endl;
     678                << fPixId << " time: " << fAbsTimeMean
     679                << " Limit: " << (Float_t)fTimeFirstLoGain+1. << endl;
    681680          return kFALSE;
    682681        }
    683682
    684       if ((Float_t)fTimeLastLoGain-1 > last)
     683      if (fAbsTimeMean > (Float_t)fTimeLastLoGain-1)
    685684        {
    686685          *fLog << warn
    687686                << "WARNING: Some absolute times bigger than limit in Pixel "
    688                 << fPixId << " time: " << last << " Limit: " << fTimeLastLoGain-1 << endl;
     687                << fPixId << " time: " << fAbsTimeMean
     688                << " Limit: " << (Float_t)fTimeLastLoGain-1. << endl;
    689689          return kFALSE;
    690690        }
     
    693693  else
    694694    {
    695       first = (Float_t)fHist->GetAbsTimeFirstHiGain();
    696       last = (Float_t)fHist->GetAbsTimeLastHiGain();
    697 
    698       if (first > ((Float_t)fTimeFirstHiGain+1.))
     695
     696      if (fAbsTimeMean < (Float_t)fTimeFirstHiGain+1.)
    699697        {
    700698          *fLog << warn
    701699                << "WARNING: Some absolute times smaller than limit in Pixel "
    702                 << fPixId << " time: " << first << " Limit: " << (Float_t)fTimeFirstHiGain+1. << endl;
     700                << fPixId << " time: " << fAbsTimeMean
     701                << " Limit: " << (Float_t)fTimeFirstHiGain+1. << endl;
    703702          //          return kFALSE;
    704703        }
    705704
    706       if (((Float_t)fTimeLastHiGain-1.) > last)
     705      if (fAbsTimeMean > (Float_t)fTimeLastHiGain-1.)
    707706        {
    708707          *fLog << warn
    709708                << "WARNING: Some absolute times bigger than limit in Pixel "
    710                 << fPixId << " time: " << last << " Limit: " << (Float_t)fTimeLastHiGain-1. << endl;
     709                << fPixId << " time: " << fAbsTimeMean
     710                << " Limit: " << (Float_t)fTimeLastHiGain-1. << endl;
    711711          //          return kFALSE;
    712712        }
     
    766766{
    767767
     768
    768769  if(!fHist->FitTime())
    769770    {
     
    777778  fTimeProb      = fHist->GetRelTimeProb();
    778779
     780  fAbsTimeMean    = fHist->GetAbsTimeMean();
     781  fAbsTimeMeanErr = fHist->GetAbsTimeMeanErr();
     782  fAbsTimeRms     = fHist->GetAbsTimeRms(); 
     783
    779784  if (CheckTimeFitValidity())
    780785    SETBIT(fFlags,kTimeFitValid);
Note: See TracChangeset for help on using the changeset viewer.