Changeset 6241 for trunk/MagicSoft


Ignore:
Timestamp:
02/03/05 14:34:07 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6238 r6241  
    282282    }
    283283
     284  //
     285  // Slide with a window of size fWindowSizeHiGain over the sample
     286  // and multiply the entries with the corresponding weights
     287  //
     288  if (IsNoiseCalculation())
     289    {
     290      if (fRandomIter == fBinningResolutionHiGain)
     291        fRandomIter = 0;
     292      for (Int_t ids=0; ids < fWindowSizeHiGain; ids++)
     293        {
     294          const Int_t   idx = fArrBinningResHiGain[ids] + fRandomIter;
     295          sum              += fAmpWeightsHiGain [idx]*fHiGainSignal[ids];
     296        }
     297      fRandomIter++;
     298      return;
     299    }
     300 
    284301  if (fHiLoLast != 0)
    285302    {
     
    303320  if (sat > 0)
    304321    return;
    305  
    306   //
    307   // Slide with a window of size fWindowSizeHiGain over the sample
    308   // and multiply the entries with the corresponding weights
    309   //
    310   if (IsNoiseCalculation())
    311     {
    312       if (fRandomIter == fBinningResolutionHiGain)
    313         fRandomIter = 0;
    314       for (Int_t ids=0; ids < fWindowSizeHiGain; ids++)
    315         {
    316           const Int_t   idx = fArrBinningResHiGain[ids] + fRandomIter;
    317           sum              += fAmpWeightsHiGain [idx]*fHiGainSignal[ids];
    318         }
    319       fRandomIter++;
    320       return;
    321     }
    322322 
    323323  Float_t time_sum  = 0.;
Note: See TracChangeset for help on using the changeset viewer.