Ignore:
Timestamp:
11/01/06 15:48:31 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8147 r8192  
    11/* ======================================================================== *\
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.25 2006-11-01 15:48:31 tbretz Exp $
     3! --------------------------------------------------------------------------
    24!
    35! *
     
    1719!
    1820!   Author(s): Markus Gaug   02/2004 <mailto:markus@ifae.es>
     21!   Author(s): Thomas Bretz <mailto:tbretz@astro.uni-wuerzburg.de>
    1922!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     23!   Copyright: MAGIC Software Development, 2000-2006
    2124!
    2225!
     
    427430        }
    428431
     432      if (*max > fSaturationLimit)
     433        continue;
     434
    429435      start   = pixel.GetLoGainSamples();
    430436      end     = start + pixel.GetNumLoGainSamples();
     
    436442            {
    437443              max = p;
    438               maxpos = p-start+pixel.GetNumHiGainSamples() - 1;
     444              maxpos = p-start-1 + pixel.GetNumHiGainSamples();
    439445            }
    440446          p++;
     
    552558{
    553559
    554 
    555   if (hist.IsEmpty() || hist.IsOnlyOverflow() || hist.IsOnlyUnderflow())
    556     {
    557       *fLog << warn << GetDescriptor() << ": Only over- or underflow in " << hist.GetName() << endl;
     560  if (hist.IsEmpty())
     561  {
     562      *fLog << warn << hist.GetName() << ": Histogram empty." << endl;
    558563      return;
    559     } 
     564  }
     565  if (hist.IsOnlyOverflow())
     566  {
     567      *fLog << warn << hist.GetName() << ": Histogram contains only overflows." << endl;
     568      return;
     569  }
     570  if (hist.IsOnlyUnderflow())
     571  {
     572      *fLog << warn << hist.GetName() << ": Histogram contains only underflows." << endl;
     573      return;
     574  }
    560575
    561576  hist.BypassFit();
Note: See TracChangeset for help on using the changeset viewer.