Changeset 4336


Ignore:
Timestamp:
06/23/04 01:24:19 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

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

    r4335 r4336  
    113113    SetAverageNbins();
    114114    SetPulserFrequency();
     115
     116    fHiGainOverflow = 0;
     117    fLoGainOverflow = 0;
    115118}
    116119
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationCam.h

    r4335 r4336  
    6161  TArrayI    fAverageSectorNum;         // Number of pixels in average pixels per sector
    6262  TArrayI    fRunNumbers;               // Numbers of runs used
     63  UInt_t     fHiGainOverFlow;           // Number of times overflow occurred in whole run
     64  UInt_t     fLoGainOverFlow;           // Number of times overflow occurred in whole run
    6365 
    6466  MBadPixelsCam    *fBadPixels;         //!  Bad Pixels storage container
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc

    r4326 r4336  
    522522      const Float_t sumlo  = pix.GetExtractedSignalLoGain();
    523523     
    524       histhi.FillHistAndArray(sumhi);
    525       histlo.FillHistAndArray(sumlo);
     524      if (!histhi.FillHistAndArray(sumhi))
     525        fHiGainOverflow++;
     526      if (!histlo.FillHistAndArray(sumlo))
     527        fLoGainOverflow++;
    526528
    527529      const Int_t sathi = (Int_t)pix.GetNumHiGainSaturated();
     
    634636{
    635637
     638  if (fHiGainOverflow)
     639    *fLog << warn << GetDescriptor()
     640          << ": WARNING: Histogram Overflow has occurred " << fHiGainOverflow << " in the High-Gain! " << endl;
     641  if (fLoGainOverflow)
     642    *fLog << warn << GetDescriptor()
     643          << ": WARNING: Histogram Overflow has occurred " << fLoGainOverflow << " in the Low-Gain! " << endl;
     644
    636645  for (Int_t i=0; i<fHiGainArray->GetSize(); i++)
    637646    {
Note: See TracChangeset for help on using the changeset viewer.