Ignore:
Timestamp:
10/02/06 09:17:46 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
2 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}
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.h

    r6131 r8001  
    5555  void   FinalizeBadPixels();
    5656
    57   void   CheckOverflow( MHCalibrationPix &pix);
     57  void   CheckOverflow(MHCalibrationPix &pix) const;
    5858  void   DrawDataCheckPixel(MHCalibrationPix &pix, const Float_t refline);
    5959  void   DisplayRefLines( const TH1F *hist, const Float_t refline) const;
Note: See TracChangeset for help on using the changeset viewer.