Ignore:
Timestamp:
05/28/04 16:09:39 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r3962 r4235  
    181181  Int_t lastdesired   = (Int_t)(fLoGainLast);
    182182  Int_t lastavailable = (Int_t)fRunHeader->GetNumSamplesLoGain()-1;
     183
     184  if (lastavailable < 0)
     185    *fLog << warn << GetDescriptor()
     186          << ": WARNING: Number of available Low-Gain Slices is smaller than or equal zero!" << endl;
    183187 
    184188  if (lastdesired > lastavailable)
     
    197201  lastavailable = (Int_t)fRunHeader->GetNumSamplesHiGain()-1;
    198202 
     203  if (lastavailable < 0)
     204    {
     205      *fLog << err << GetDescriptor()
     206            << ": ERROR: Number of available High-Gain Slices is smaller than or equal zero!" << endl;
     207      return kFALSE;
     208    }
     209
    199210  if (lastdesired > lastavailable)
    200211    {
Note: See TracChangeset for help on using the changeset viewer.