Changeset 5226 for trunk/MagicSoft
- Timestamp:
- 10/11/04 21:22:14 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5225 r5226 110 110 // 1) If Charge Type: kAmplitude was chosen: 1. 111 111 // 2) If Charge Type: kIntegral was chosen: TMath::Floor(fRiseTime + fFallTime) 112 // or: TMath::Floor(fRiseTime + fFallTime + 1.) in the case of the low-gain 112 113 // 113 114 // Call: SetRange(fHiGainFirst, fHiGainLast, fLoGainFirst, fLoGainLast) … … 138 139 // computation of the integral beneith the spline between fRiseTime 139 140 // from the position of the maximum to fFallTime after the position of 140 // the maximum. 141 // the maximum. The Low Gain is computed with one more slice at the falling 142 // edge. 141 143 // --> needs one more simple summation loop over 7 slices. 142 144 // … … 272 274 { 273 275 fNumHiGainSamples = TMath::Floor(fRiseTime + fFallTime); 274 fNumLoGainSamples = fNumHiGainSamples ;276 fNumLoGainSamples = fNumHiGainSamples + 1.; 275 277 fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples); 276 fSqrtLoGainSamples = fSqrtHiGainSamples;278 fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples); 277 279 } 278 280 } … … 859 861 // Try a better precision. 860 862 // 861 const Float_t up = fAbMaxPos+step-0.0 55;862 const Float_t lo = fAbMaxPos-step+0.0 55;863 const Float_t up = fAbMaxPos+step-0.035; 864 const Float_t lo = fAbMaxPos-step+0.035; 863 865 const Float_t maxpossave = fAbMaxPos; 864 866 … … 867 869 b = x - lower; 868 870 869 step = 0.02 ; // step size of 42ps871 step = 0.025; // step size of 83 ps 870 872 871 873 while (x<up) … … 890 892 891 893 // 892 // Second, try from time down to time-0.2 in steps of 0.0 4.894 // Second, try from time down to time-0.2 in steps of 0.025. 893 895 // 894 896 x = maxpossave; … … 962 964 Bool_t back = kFALSE; 963 965 964 Int_t maxcnt = 1000;966 Int_t maxcnt = 50; 965 967 Int_t cnt = 0; 966 968 … … 1016 1018 // 1017 1019 Int_t startslice = (Int_t)(fAbMaxPos - fRiseTime); 1018 Int_t lastslice = (Int_t)(fAbMaxPos + fFallTime );1020 Int_t lastslice = (Int_t)(fAbMaxPos + fFallTime + 1); 1019 1021 1020 1022 if (startslice < 0)
Note:
See TracChangeset
for help on using the changeset viewer.