Changeset 6293 for trunk/MagicSoft
- Timestamp:
- 02/08/05 15:36:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r6241 r6293 322 322 323 323 Float_t time_sum = 0.; 324 Float_t fmax = 0.;324 Float_t fmax = -9999.; 325 325 Float_t ftime_max = 0.; 326 326 Int_t max_p = 0; … … 379 379 sum = 0.; 380 380 time_sum = 0.; 381 if (max_p < 0) 382 max_p = 0; 383 if (max_p+fWindowSizeHiGain > range) 384 max_p = range-fWindowSizeHiGain; 381 385 // 382 386 // Slide with a window of size fWindowSizeHiGain over the sample … … 387 391 const Int_t idx = fArrBinningResHalfHiGain[sample] + t_iter; 388 392 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]; 390 394 sum += fAmpWeightsHiGain [idx]*pex; 391 395 time_sum += fTimeWeightsHiGain[idx]*pex;
Note:
See TracChangeset
for help on using the changeset viewer.