Changeset 2916 for trunk/MagicSoft/Mars
- Timestamp:
- 01/26/04 15:34:14 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MArrivalTimeCalc.cc
r2915 r2916 181 181 // Initialize the spline 182 182 // 183 for (Int_t i = 0; i <nslices; i++)183 for (Int_t i=0; i<nslices; i++) 184 184 ptr[i]=(Double_t)fadcSamples[i]; 185 185 … … 189 189 // Now find the maximum evaluating the spline function at every 1/10 time slice 190 190 // 191 Double_t abscissa=0.0; 192 Double_t maxAb=0.0; 193 Double_t maxOrd=0.0; 194 Double_t swap = 0.0; 191 Double_t abscissa=0; 192 Double_t maxAb =0; 193 Double_t maxOrd =0; 195 194 196 195 while (abscissa <= nslices - 1) 197 196 { 198 199 swap = spline.Eval(abscissa); 197 const Double_t swap = spline.Eval(abscissa); 200 198 201 199 if (swap > maxOrd)
Note:
See TracChangeset
for help on using the changeset viewer.