Ignore:
Timestamp:
06/14/04 10:58:10 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4047 r4289  
    2828//  MExtractFixedWindow
    2929//
    30 //  Extracts the signal from a fixed window in a given range.
     30//  Extracts the signal from a fixed window in a given range by summing up the
     31//  slice contents.
    3132//
    3233//  Call: SetRange(fHiGainFirst, fHiGainLast, fLoGainFirst, fLoGainLast)
     
    6263//
    6364// Default constructor.
     65//
     66// Calls:
     67// - SetRange(fgHiGainFirst, fgHiGainLast, fgLoGainFirst, fgLoGainLast)
    6468//
    6569MExtractFixedWindow::MExtractFixedWindow(const char *name, const char *title)
     
    158162                              fLoGainFirst, fLoGainLast, fNumLoGainSamples);
    159163
     164
     165  *fLog << endl;
     166  *fLog << inf << GetDescriptor() << ": Taking " << (int)fNumHiGainSamples
     167        << " HiGain FADC samples from slice: " << (int)fHiGainFirst
     168        << " to (including) slice: " << (int)fHiGainLast+(int)fHiLoLast << endl;
     169  *fLog << inf << GetDescriptor() << ": Taking " << (int)fNumLoGainSamples
     170        << " LoGain FADC samples from slice: " << (int)fLoGainFirst << endl;
     171        << " to (including) slice: " << (int)fLoGainLast << endl;
    160172  return kTRUE;
    161173 
     
    170182// - If *ptr is greater than fSaturationLimit, raise sat by 1
    171183//
     184// - If fHiLoLast is not 0, loop also from logain to (logain+fHiLoLast)
     185// - Sum up contents of logain
     186// - If *logain is greater than fSaturationLimit, raise sat by 1
     187//
    172188void MExtractFixedWindow::FindSignalHiGain(Byte_t *ptr, Byte_t *logain, Int_t &sum, Byte_t &sat) const
    173189{
     
    193209        sat++;
    194210    }
    195 
    196211}
    197212
Note: See TracChangeset for help on using the changeset viewer.