Changeset 7430 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 11/25/05 14:47:57 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r7194 r7430 232 232 } 233 233 234 // New weights set 234 // 235 // shift the times back to the right reference (start counting from 0) 236 // 237 // The high-gain has the extraction offset (fHiGainFirst) already included 238 // here for speed reason. The low-gain has a changing extraction offset, 239 // so it will be added at every event (in FindTimeAndChargeLoGain) 235 240 fTimeShiftHiGain = 0.5 + 1./fBinningResolutionHiGain + fHiGainFirst; 236 241 fTimeShiftLoGain = 0.5 + 1./fBinningResolutionLoGain; … … 474 479 return; 475 480 476 time = max_p + fTimeShiftHiGain + (Float_t)fHiGainFirst /* this shifts the time to the start of the rising edge */477 - ((Float_t)t_iter)/fBinningResolutionHiGain;481 // here, the first high-gain slice is already included in the fTimeShiftHiGain 482 time = fTimeShiftHiGain + max_p - Float_t(t_iter)/fBinningResolutionHiGain; 478 483 479 484 const Float_t timefineadjust = time_sum/sum;
Note:
See TracChangeset
for help on using the changeset viewer.