Ignore:
Timestamp:
11/25/05 14:47:57 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r7194 r7430  
    232232    }
    233233
    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)
    235240    fTimeShiftHiGain = 0.5 + 1./fBinningResolutionHiGain + fHiGainFirst;
    236241    fTimeShiftLoGain = 0.5 + 1./fBinningResolutionLoGain;
     
    474479      return;
    475480
    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;
    478483
    479484  const Float_t timefineadjust = time_sum/sum;
Note: See TracChangeset for help on using the changeset viewer.