Changeset 7061 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/19/05 11:55:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r7057 r7061 369 369 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) 370 370 { 371 372 371 Int_t range = fHiGainLast - fHiGainFirst + 1; 373 372 const Byte_t *end = first + range; … … 442 441 const Float_t pp = fHiGainSecondDeriv[i-1] + 4.; 443 442 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]; 445 444 fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp; 446 445 } … … 724 723 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag) 725 724 { 726 727 725 Int_t range = fLoGainLast - fLoGainFirst + 1; 728 726 const Byte_t *end = first + range; … … 768 766 const Float_t pp = fLoGainSecondDeriv[i-1] + 4.; 769 767 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]; 771 769 fLoGainFirstDeriv [i] = (6.0*fLoGainFirstDeriv[i]-fLoGainFirstDeriv[i-1])/pp; 772 770 }
Note:
See TracChangeset
for help on using the changeset viewer.