Ignore:
Timestamp:
02/04/07 15:49:50 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8296 r8305  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.25 2007-02-03 20:03:35 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractPedestal.cc,v 1.26 2007-02-04 15:49:08 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    318318void MExtractPedestal::CheckExtractionWindow(UInt_t offset)
    319319{
     320    *fLog << inf;
     321    *fLog << "Requested CheckWindow is [" << fCheckWinFirst << "," << fCheckWinLast << "]." <<endl;
     322    *fLog << "Requested ExtractWindow is [" << fExtractWinFirst+offset << "," << fExtractWinLast+offset << "]." <<endl;
     323
    320324    // fSignal->GetNumSamples() not yet initialized!!!
    321325    const UInt_t num = fRunHeader->GetNumSamplesHiGain()+fRunHeader->GetNumSamplesLoGain();
     
    323327    if (fCheckWinLast >= num)
    324328    {
    325         *fLog << inf;
    326         *fLog << "CheckWindow [" << fCheckWinFirst+offset << "," << fCheckWinLast+offset;
     329        *fLog << "CheckWindow [" << fCheckWinFirst << "," << fCheckWinLast;
    327330        *fLog << "] out of range [0," << num-1 << "]... ";
    328331        *fLog << "reset upper edge." << endl;
     
    333336    if (offset+fExtractWinLast >= num)
    334337    {
    335         *fLog << inf;
    336338        *fLog << "ExtractWindow [" << fExtractWinFirst+offset << "," << fExtractWinLast+offset;
    337339        *fLog << "] out of range [0," << num-1 << "]... ";
     
    348350    fExtractWinLast += offset+fExtractWinLast==num-1 ? -1 : +1;
    349351
    350     *fLog << inf;
    351352    *fLog << "ExtractionWindow odd... set to [";
    352353    *fLog << fExtractWinFirst+offset << "," << fExtractWinLast+offset << "]" << endl;
     
    564565        {
    565566            *fLog << err << GetDescriptor();
    566             *fLog << " - ERROR: Selected fExtractWinLast out of range." << endl;
     567            *fLog << " - ERROR: Selected fExtractWinLast " << fExtractWinLast;
     568            *fLog << " out of range (>=" << num<< ")." << endl;
    567569            return kFALSE;
    568570        }
     
    608610
    609611    // If the maximum in the high gain window is smaller than
     612    // FIXME: Precompiled value!
    610613    return max-min<fMaxSignalVar && max<250;
    611614}
Note: See TracChangeset for help on using the changeset viewer.