Ignore:
Timestamp:
12/18/03 17:33:15 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.cc

    r2699 r2718  
    8686        fTimeProb(-1.),
    8787        fTimeNdf(-1),
     88        fTimeMean(-1.),
     89        fTimeSigma(-1.),
     90        fTimeLowerFitRange(3.),
     91        fTimeUpperFitRange(9.),
    8892        fUseLoGain(kFALSE),
    8993        fOffset(0.),
     
    586590    return kFALSE;
    587591
    588   rmin = (rmin != 0.) ? rmin : 3.;
    589   rmax = (rmax != 0.) ? rmax : 9.;
     592  rmin = (rmin != 0.) ? rmin : fTimeLowerFitRange;
     593  rmax = (rmax != 0.) ? rmax : fTimeUpperFitRange;
    590594
    591595  const Stat_t entries       = fHTimeHiGain->Integral();
     
    642646    return kFALSE;
    643647
    644   rmin = (rmin != 0.) ? rmin : 3.;
    645   rmax = (rmax != 0.) ? rmax : 9.;
     648  rmin = (rmin != 0.) ? rmin : fTimeLowerFitRange;
     649  rmax = (rmax != 0.) ? rmax : fTimeUpperFitRange;
    646650
    647651  const Stat_t   entries     = fHTimeLoGain->Integral();
     
    751755  //
    752756  // The fit result is accepted under condition
    753   // The Probability is greater than gkProbLimit (default 0.01 == 99%)
     757  // The Probability is greater than gkProbLimit (default 0.001 == 99.9%)
    754758  //
    755759  if (fChargeProb < gkProbLimit)
    756760    {
    757       *fLog << warn << "Prob: " << fChargeProb << " is smaller than the allowed value: " << gkProbLimit << endl;
     761      *fLog << warn << "Prob: " << fChargeProb
     762            << " is smaller than the allowed value: " << gkProbLimit << endl;
    758763      fFitOK = kFALSE;
    759764      return kFALSE;
     
    761766 
    762767  fFitOK = kTRUE;
    763    
    764768  return kTRUE;
    765769}
  • trunk/MagicSoft/Mars/mhist/MHCalibrationPixel.h

    r2699 r2718  
    8585  Double_t fTimeSigma;
    8686
     87  Stat_t   fTimeLowerFitRange;
     88  Stat_t   fTimeUpperFitRange;
     89 
    8790  Bool_t fUseLoGain;
    8891
     
    133136  const Double_t GetTimeSigma()       const { return fTimeSigma; }
    134137
     138  const Stat_t   GetTimeLowerFitRange()  const { return fTimeLowerFitRange;  }
     139  const Stat_t   GetTimeUpperFitRange()  const { return fTimeUpperFitRange;  }
     140 
    135141  const Double_t GetTimeChiSquare()   const { return fTimeChisquare; }
    136142  const Double_t GetTimeProb()        const { return fTimeProb;      }
Note: See TracChangeset for help on using the changeset viewer.