Changeset 5364 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/09/04 19:26:25 (20 years ago)
Author:
hbartko
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5363 r5364  
    2626       weights are quasi randomly chosen and applied to the first slices
    2727       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
    2831
    2932 2004/11/09: Markus Gaug
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r5334 r5364  
    307307      }
    308308
     309      //  if (IsNoiseCalculation()) return;
     310
    309311      if (sum>fmax)
    310312      {
     
    340342 
    341343  sum = 0.;
     344  time_sum = 0.;
    342345  //
    343346  // Slide with a window of size fWindowSizeHiGain over the sample
     
    347350  {
    348351    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   
    350354    const Float_t pex = ids < 0 ? 0. :
    351355      ( ids > range ? 0. : fHiGainSignal[ids]-pedmean[(ids+abflag) & 0x1]);
     
    456460 
    457461  sum = 0.;
     462  time_sum = 0.;
    458463
    459464  //
     
    464469  {
    465470    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;;
    467472    const Float_t pex = ids < 0 ? 0. :
    468473      ( ids > range ? 0. : fLoGainSignal[ids]-pedmean[(ids+abflag) & 0x1]);
Note: See TracChangeset for help on using the changeset viewer.