Ignore:
Timestamp:
03/04/07 12:01:41 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8343 r8361  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.36 2007-03-01 21:20:41 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.37 2007-03-04 12:00:30 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    214214        return kFALSE;
    215215
    216     CheckExtractionWindow(fRunHeader->GetNumSamplesHiGain());
     216    const Int_t nhi = fRunHeader->GetNumSamplesHiGain();
     217    const Int_t nlo = fRunHeader->GetNumSamplesLoGain();
     218    CheckExtractionWindow(nlo>0?nhi:0);
    217219
    218220    return kTRUE;
     
    227229Int_t MPedCalcFromLoGain::Calc()
    228230{
     231    const Int_t nhi = fRunHeader->GetNumSamplesHiGain();
     232    const Int_t nlo = fRunHeader->GetNumSamplesLoGain();
     233
    229234    // Real Process
    230235    MRawEvtPixelIter pixel(fRawEvt);
    231 
    232236    while (pixel.Next())
    233237    {
     
    240244        UInt_t ab[2];
    241245        const Float_t sum = fExtractor ?
    242             CalcExtractor(pixel, pixel.GetNumHiGainSamples()) :
    243             CalcSums(pixel, pixel.GetNumHiGainSamples(), ab[0], ab[1]);
     246            CalcExtractor(pixel, nlo>0?nhi:0) :
     247            CalcSums(pixel, nlo>0?nhi:0, ab[0], ab[1]);
    244248
    245249        const UInt_t aidx   = (*fGeom)[idx].GetAidx();
Note: See TracChangeset for help on using the changeset viewer.