Changeset 8545 for trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.h
- Timestamp:
- 06/11/07 16:49:41 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.h
r8524 r8545 30 30 31 31 Float_t fHeightTm; 32 33 // Float_t fResolution;34 32 35 33 // Result … … 117 115 */ 118 116 117 Int_t EvalDerivEq0(const Int_t i, Double_t &x1, Double_t &x2) const; 118 /* 119 119 inline void EvalDerivEq0(const Int_t i, Float_t &rc1, Float_t &rc2) const 120 120 { 121 / *--- ORIGINAL CODE ---121 // --- ORIGINAL CODE --- 122 122 Double_t sumder = fDer2[i]+fDer2[i+1]; 123 123 Double_t difder = fDer2[i]-fDer2[i+1]; … … 128 128 Double_t denom = -3*(fDer2[i+1]-fDer2[i]); 129 129 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 --- 134 134 Double_t sumder = fDer2[i]+fDer2[i+1]; 135 135 Double_t difder = fDer2[i]-fDer2[i+1]; … … 139 139 Double_t sqt3 = sqt1+sqt2<0 ? 0 : sqrt((sqt1 + sqt2)/3); 140 140 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 }*/ 144 144 145 145 // Calculate the "Stammfunktion" of the Eval-function … … 355 355 // Find analytical maximum in the bin i in the interval [min,max[ 356 356 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 359 361 // const Float_t x1 = EvalDerivEq0S1(i); 360 362 // const Float_t x2 = EvalDerivEq0S2(i); … … 479 481 void SetExtractionType(ExtractionType_t typ) { fExtractionType = typ; } 480 482 void SetHeightTm(Float_t h) { fHeightTm = h; } 481 // void SetResolution(Float_t res) { fResolution=res; }482 483 483 484 Float_t GetTime() const { return fTime; }
Note:
See TracChangeset
for help on using the changeset viewer.