Ignore:
Timestamp:
05/19/05 11:55:44 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7057 r7061  
    369369                                                          Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag)
    370370{
    371  
    372371  Int_t range = fHiGainLast - fHiGainFirst + 1;
    373372  const Byte_t *end = first + range;
     
    442441      const Float_t pp = fHiGainSecondDeriv[i-1] + 4.;
    443442      fHiGainSecondDeriv[i] = -1.0/pp;
    444       fHiGainFirstDeriv [i] = 2*(fHiGainSignal[i+1] - fHiGainSignal[i]);
     443      fHiGainFirstDeriv [i] = fHiGainSignal[i+1] - 2*fHiGainSignal[i] + fHiGainSignal[i-1];
    445444      fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp;
    446445    }
     
    724723                                                          Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag)
    725724{
    726  
    727725  Int_t range = fLoGainLast - fLoGainFirst + 1;
    728726  const Byte_t *end = first + range;
     
    768766      const Float_t pp = fLoGainSecondDeriv[i-1] + 4.;
    769767      fLoGainSecondDeriv[i] = -1.0/pp;
    770       fLoGainFirstDeriv [i] = 2*(fLoGainSignal[i+1] - fLoGainSignal[i]);
     768      fLoGainFirstDeriv [i] = fLoGainSignal[i+1] - 2*fLoGainSignal[i] + fLoGainSignal[i-1];
    771769      fLoGainFirstDeriv [i] = (6.0*fLoGainFirstDeriv[i]-fLoGainFirstDeriv[i-1])/pp;
    772770    }
Note: See TracChangeset for help on using the changeset viewer.