Changeset 5364 for trunk/MagicSoft/Mars
- Timestamp:
- 11/09/04 19:26:25 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5363 r5364 26 26 weights are quasi randomly chosen and applied to the first slices 27 27 available in the set range 28 * msignal/MC_weights.dat 29 - new weights file using 6 slices for the digital filter, especially 30 made for MC pulses 28 31 29 32 2004/11/09: Markus Gaug -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5334 r5364 307 307 } 308 308 309 // if (IsNoiseCalculation()) return; 310 309 311 if (sum>fmax) 310 312 { … … 340 342 341 343 sum = 0.; 344 time_sum = 0.; 342 345 // 343 346 // Slide with a window of size fWindowSizeHiGain over the sample … … 347 350 { 348 351 const Int_t idx = fBinningResolutionHiGain*sample + fBinningResolutionHalfHiGain + t_iter; 349 const Int_t ids = max_p + sample; 352 const Int_t ids = (IsNoiseCalculation()) ? sample : max_p + sample; 353 350 354 const Float_t pex = ids < 0 ? 0. : 351 355 ( ids > range ? 0. : fHiGainSignal[ids]-pedmean[(ids+abflag) & 0x1]); … … 456 460 457 461 sum = 0.; 462 time_sum = 0.; 458 463 459 464 // … … 464 469 { 465 470 const Int_t idx = fBinningResolutionLoGain*sample + fBinningResolutionHalfLoGain + t_iter; 466 const Int_t ids = max_p + sample;471 const Int_t ids = (IsNoiseCalculation()) ? sample : max_p + sample;; 467 472 const Float_t pex = ids < 0 ? 0. : 468 473 ( ids > range ? 0. : fLoGainSignal[ids]-pedmean[(ids+abflag) & 0x1]);
Note:
See TracChangeset
for help on using the changeset viewer.