Changeset 6241 for trunk/MagicSoft
- Timestamp:
- 02/03/05 14:34:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r6238 r6241 282 282 } 283 283 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 284 301 if (fHiLoLast != 0) 285 302 { … … 303 320 if (sat > 0) 304 321 return; 305 306 //307 // Slide with a window of size fWindowSizeHiGain over the sample308 // and multiply the entries with the corresponding weights309 //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 }322 322 323 323 Float_t time_sum = 0.;
Note:
See TracChangeset
for help on using the changeset viewer.