Ignore:
Timestamp:
06/11/07 16:49:41 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.h

    r8524 r8545  
    3030
    3131    Float_t fHeightTm;
    32 
    33 //    Float_t fResolution;
    3432
    3533    // Result
     
    117115    */
    118116
     117    Int_t EvalDerivEq0(const Int_t i, Double_t &x1, Double_t &x2) const;
     118/*
    119119    inline void EvalDerivEq0(const Int_t i, Float_t &rc1, Float_t &rc2) const
    120120    {
    121         /* --- ORIGINAL CODE ---
     121        // --- ORIGINAL CODE ---
    122122        Double_t sumder = fDer2[i]+fDer2[i+1];
    123123        Double_t difder = fDer2[i]-fDer2[i+1];
     
    128128        Double_t denom = -3*(fDer2[i+1]-fDer2[i]);
    129129
    130         rc1 = -(3*fDer2[i] + sqt3)/denom;
    131         rc2 = -(3*fDer2[i] - sqt3)/denom;
    132          */
    133 
     130        rc1 = (3*fDer2[i] + sqt3)/denom;
     131        rc2 = (3*fDer2[i] - sqt3)/denom;
     132
     133        // --- NEW CODE ---
    134134        Double_t sumder = fDer2[i]+fDer2[i+1];
    135135        Double_t difder = fDer2[i]-fDer2[i+1];
     
    139139        Double_t sqt3  = sqt1+sqt2<0 ? 0 : sqrt((sqt1 + sqt2)/3);
    140140
    141         rc1 = -(fDer2[i] + sqt3)/difder;
    142         rc2 = -(fDer2[i] - sqt3)/difder;
    143     }
     141        rc1 = (fDer2[i] + sqt3)/difder;
     142        rc2 = (fDer2[i] - sqt3)/difder;
     143    }*/
    144144
    145145    // Calculate the "Stammfunktion" of the Eval-function
     
    355355        // Find analytical maximum in the bin i in the interval [min,max[
    356356
    357         Float_t x1, x2;
    358         EvalDerivEq0(i, x1, x2);
     357        Double_t x1, x2;
     358        if (!EvalDerivEq0(i, x1, x2))
     359            return kFALSE;
     360
    359361        // const Float_t x1 = EvalDerivEq0S1(i);
    360362        // const Float_t x2 = EvalDerivEq0S2(i);
     
    479481    void SetExtractionType(ExtractionType_t typ)     { fExtractionType = typ; }
    480482    void SetHeightTm(Float_t h)                      { fHeightTm = h; }
    481         //    void SetResolution(Float_t res)                  { fResolution=res; }
    482483
    483484    Float_t GetTime() const      { return fTime; }
Note: See TracChangeset for help on using the changeset viewer.