Ignore:
Timestamp:
11/05/04 00:26:32 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc

    r5338 r5342  
    262262// - if a window is odd
    263263//
    264  
    265264void MPedCalcFromLoGain::SetExtractWindow(Int_t windowf, Int_t windows)
    266265{
     
    274273  Int_t odd  = windows & 0x1;
    275274 
    276 
    277275  if (odd||(windows==0)){
    278276    *fLog << warn << GetDescriptor() << ": Extract window size has to be even and larger 0, adjust!"<< endl;
     
    284282  fExtractWinLast = fExtractWinFirst+fExtractWinSize-1;
    285283
    286  
     284//
     285//  NO RANGE CHECK IMPLEMENTED, YET
     286//
     287/*
     288    const Byte_t availhirange = (fHiGainLast-fHiGainFirst+1) & ~1;
     289    const Byte_t availlorange = (fLoGainLast-fLoGainFirst+1) & ~1;
     290 
     291    if (fWindowSizeHiGain > availhirange)
     292    {
     293        *fLog << warn;
     294        *fLog << GetDescriptor() << ": HiGain window " << (int)fWindowSizeHiGain;
     295        *fLog << " out of range [" << (int)fHiGainFirst;
     296        *fLog << "," << (int)fHiGainLast << "]" << endl;
     297        *fLog << "Will set window size to " << (int)availhirange << endl;
     298        fWindowSizeHiGain = availhirange;
     299    }
     300   
     301    if (fWindowSizeLoGain > availlorange)
     302    {
     303        *fLog << warn;
     304        *fLog << GetDescriptor() << ": LoGain window " << (int)fWindowSizeLoGain;
     305        *fLog << " out of range [" << (int)fLoGainFirst;
     306        *fLog << "," << (int)fLoGainLast << "]" << endl;
     307        *fLog << "Will set window size to " << (int)availlorange << endl;
     308        fWindowSizeLoGain = availlorange;
     309    }
     310*/
    287311}
    288312
Note: See TracChangeset for help on using the changeset viewer.