Ignore:
Timestamp:
08/02/06 08:03:32 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7784 r7832  
    8888const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinHiGain    =  4;
    8989const Int_t  MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain    =  4;
    90 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain           =  1.7; // 5 ns
     90const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain           =  1.05;
    9191const Float_t MExtractTimeAndChargeDigitalFilter::fgLoGainStartShift       = -1.8;
    9292
     
    113113    SetSignalStartBin();
    114114
    115     SetOffsetLoGain(fgOffsetLoGain);
    116     SetLoGainStartShift(fgLoGainStartShift);
     115    SetOffsetLoGain(fgOffsetLoGain);          // Order between both
     116    SetLoGainStartShift(fgLoGainStartShift);  // is important
    117117}
    118118
     
    480480
    481481  // here, the first high-gain slice is already included in the fTimeShiftHiGain
    482   time = fTimeShiftHiGain + max_p - Float_t(t_iter)/fBinningResolutionHiGain;
     482//  time = fTimeShiftHiGain + max_p - Float_t(t_iter)/fBinningResolutionHiGain;
     483  time = max_p + fTimeShiftHiGain + (Float_t)fHiGainFirst /* this shifts the time to the start of the rising edge */
     484      - ((Float_t)t_iter)/fBinningResolutionHiGain;
    483485
    484486  const Float_t timefineadjust = time_sum/sum;
Note: See TracChangeset for help on using the changeset viewer.