Ignore:
Timestamp:
08/27/04 11:36:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4732 r4752  
    200200      pp = fHiGainSecondDeriv[i-1] + 4.;
    201201      fHiGainSecondDeriv[i] = -1.0/pp;
    202       fHiGainFirstDeriv [i] = *(p+1) - 2.* *(p) + *(p-1);
    203       fHiGainFirstDeriv [i] = (6.0*fHiGainFirstDeriv[i]-fHiGainFirstDeriv[i-1])/pp;
     202      const Double_t deriv = *(p+1) - 2.* *(p) + *(p-1);
     203      fHiGainFirstDeriv [i] = (6.0*deriv-fHiGainFirstDeriv[i-1])/pp;
    204204    }
    205205
     
    232232  // interval maxpos+1.
    233233  //
     234
     235  Float_t higainklo = fHiGainSecondDeriv[klo];
     236  Float_t higainkhi = fHiGainSecondDeriv[khi];
    234237  while (x<upper-0.3)
    235238    {
     
    241244      y = a*klocont
    242245        + b*khicont
    243         + (a*a*a-a)*fHiGainSecondDeriv[klo]
    244         + (b*b*b-b)*fHiGainSecondDeriv[khi];
     246        + (a*a*a-a)*higainklo
     247        + (b*b*b-b)*higainkhi;
    245248     
    246249      if (y > abmax)
     
    265268      khicont = (Float_t)*(first+khi);
    266269
     270      higainklo = fHiGainSecondDeriv[klo];
     271      higainkhi = fHiGainSecondDeriv[khi];
    267272      while (x<upper-0.3)
    268273        {
     
    274279          y = a* klocont
    275280            + b* khicont
    276             + (a*a*a-a)*fHiGainSecondDeriv[klo]
    277             + (b*b*b-b)*fHiGainSecondDeriv[khi];
     281            + (a*a*a-a)*higainklo
     282            + (b*b*b-b)*higainkhi;
    278283         
    279284          if (y > abmax)
     
    295300  step  = 0.04; // step size of 83 ps
    296301
     302  higainklo = fHiGainSecondDeriv[klo];
     303  higainkhi = fHiGainSecondDeriv[khi];
    297304  while (x<up)
    298305    {
     
    304311      y = a* klocont
    305312        + b* khicont
    306         + (a*a*a-a)*fHiGainSecondDeriv[klo]
    307         + (b*b*b-b)*fHiGainSecondDeriv[khi];
     313        + (a*a*a-a)*higainklo
     314        + (b*b*b-b)*higainkhi;
    308315     
    309316      if (y > abmax)
     
    329336  b     = x - lower;
    330337
     338  higainklo = fHiGainSecondDeriv[klo];
     339  higainkhi = fHiGainSecondDeriv[khi];
    331340  while (x>lo)
    332341    {
     
    338347      y = a* klocont
    339348        + b* khicont
    340         + (a*a*a-a)*fHiGainSecondDeriv[klo]
    341         + (b*b*b-b)*fHiGainSecondDeriv[khi];
     349        + (a*a*a-a)*higainklo
     350        + (b*b*b-b)*higainkhi;
    342351     
    343352      if (y > abmax)
Note: See TracChangeset for help on using the changeset viewer.