Ignore:
Timestamp:
10/02/06 09:17:46 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7876 r8001  
    686686}
    687687
    688 void MHCalibrationRelTimeCam::CheckOverflow( MHCalibrationPix &pix )
    689 {
    690 
    691   if (pix.IsExcluded())
    692     return;
    693 
    694   TH1F *hist = pix.GetHGausHist();
    695  
    696   Stat_t overflow = hist->GetBinContent(hist->GetNbinsX()+1);
    697   if (overflow > fOverflowLimit*hist->GetEntries())
    698     {
    699       *fLog << warn << "HiGain Hist-overflow " << overflow
    700             << " times in " << pix.GetName() << " (w/o saturation!) " << endl;
    701     }
    702  
    703   overflow = hist->GetBinContent(0);
    704   if (overflow > fOverflowLimit*hist->GetEntries())
    705     {
    706       *fLog << warn << "HiGain Hist-underflow " << overflow
    707             << " times in " << pix.GetName() << " (w/o saturation!) " << endl;
     688void MHCalibrationRelTimeCam::CheckOverflow( MHCalibrationPix &pix ) const
     689{
     690    if (pix.IsExcluded())
     691        return;
     692
     693    const TH1F &hist = *pix.GetHGausHist();
     694
     695    const Int_t   n   = hist.GetNbinsX();
     696    const Float_t max = fOverflowLimit*hist.GetEntries();
     697
     698    const Stat_t overflow = hist.GetBinContent(n+1);
     699    if (overflow > max)
     700    {
     701        *fLog << warn << overflow << " overflows above " << hist.GetBinLowEdge(n);
     702        *fLog << " in " << pix.GetName() << " (w/o saturation!) " << endl;
     703    }
     704 
     705    const Stat_t underflow = hist.GetBinContent(0);
     706    if (underflow > max)
     707    {
     708        *fLog << warn << underflow << " underflows below " << hist.GetBinLowEdge(1);
     709        *fLog << " in " << pix.GetName() << " (w/o saturation!) " << endl;
    708710    }
    709711}
Note: See TracChangeset for help on using the changeset viewer.