Changeset 2916 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/26/04 15:34:14 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MArrivalTimeCalc.cc

    r2915 r2916  
    181181  // Initialize the spline
    182182  //
    183   for (Int_t i = 0; i < nslices; i++)
     183  for (Int_t i=0; i<nslices; i++)
    184184    ptr[i]=(Double_t)fadcSamples[i];
    185185 
     
    189189  // Now find the maximum evaluating the spline function at every 1/10 time slice
    190190  //
    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;
    195194
    196195  while (abscissa <= nslices - 1)
    197196    {
    198 
    199       swap = spline.Eval(abscissa);
     197      const Double_t swap = spline.Eval(abscissa);
    200198
    201199      if (swap > maxOrd)
Note: See TracChangeset for help on using the changeset viewer.