Changeset 5743 for trunk/MagicSoft
- Timestamp:
- 01/08/05 12:32:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5723 r5743 260 260 end = logain + fHiLoLast; 261 261 262 ids = fHiGainFirst ;262 ids = fHiGainFirst + range; 263 263 sample = fHiGainSignal.GetArray(); 264 264 while (logain<end) … … 266 266 267 267 *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1]; 268 range++;269 268 270 269 if (*logain > max) … … 276 275 if (*logain++ >= fSaturationLimit) 277 276 sat++; 278 } 279 } 280 281 // 282 // allow one saturated slice 277 278 range++; 279 } 280 } 281 282 // 283 // allow no saturated slice 283 284 // 284 285 if (sat > 0) … … 291 292 if (IsNoiseCalculation()) 292 293 { 293 if (fRandomIter == 10)294 if (fRandomIter == fBinningResolution) 294 295 fRandomIter = 0; 295 296 for (Int_t ids=0; ids < fWindowSizeHiGain; ids++) 296 {297 { 297 298 const Int_t idx = fBinningResolutionHiGain*ids + fRandomIter; 298 299 sum += fAmpWeightsHiGain [idx]*fHiGainSignal[ids]; … … 425 426 426 427 // 427 // Slide with a window of size fWindowSize HiGain over the sample428 // Slide with a window of size fWindowSizeLoGain over the sample 428 429 // and multiply the entries with the corresponding weights 429 430 // 430 431 if (IsNoiseCalculation()) 431 432 { 433 if (fRandomIter == fBinningResolutionLoGain) 434 fRandomIter = 0; 432 435 for (Int_t ids=0; ids < fWindowSizeLoGain; ids++) 433 436 { 434 const Int_t idx = fBinningResolution HiGain*ids + fRandomIter;437 const Int_t idx = fBinningResolutionLoGain*ids + fRandomIter; 435 438 sum += fAmpWeightsLoGain [idx]*fLoGainSignal[ids]; 436 439 }
Note:
See TracChangeset
for help on using the changeset viewer.