Changeset 6293


Ignore:
Timestamp:
02/08/05 15:36:46 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6241 r6293  
    322322 
    323323  Float_t time_sum  = 0.;
    324   Float_t fmax      = 0.;
     324  Float_t fmax      = -9999.;
    325325  Float_t ftime_max = 0.;
    326326  Int_t   max_p     = 0;
     
    379379  sum = 0.;
    380380  time_sum = 0.;
     381  if (max_p < 0)
     382    max_p = 0;
     383  if (max_p+fWindowSizeHiGain > range)
     384    max_p = range-fWindowSizeHiGain;
    381385  //
    382386  // Slide with a window of size fWindowSizeHiGain over the sample
     
    387391    const Int_t   idx = fArrBinningResHalfHiGain[sample] + t_iter;
    388392    const Int_t   ids = max_p + sample;
    389     const Float_t pex = ids < 0 ? 0. : ( ids >= range ? 0. : fHiGainSignal[ids]);
     393    const Float_t pex = fHiGainSignal[ids];
    390394    sum              += fAmpWeightsHiGain [idx]*pex;
    391395    time_sum         += fTimeWeightsHiGain[idx]*pex;
Note: See TracChangeset for help on using the changeset viewer.