Changeset 9518 for trunk/MagicSoft/Mars/mbase/MSpline3.cc
- Timestamp:
- 10/26/09 14:31:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MSpline3.cc
r9450 r9518 157 157 // W := fX[i+1]-fX[i] 158 158 // 159 Double_t MSpline3::Integral (Int_t i, Double_t x) const159 Double_t MSpline3::IntegralBin(Int_t i, Double_t x) const 160 160 { 161 161 Double_t x0, y, b, c, d; … … 171 171 // Return the integral of the spline's bin i. 172 172 // 173 Double_t MSpline3::Integral (Int_t i) const173 Double_t MSpline3::IntegralBin(Int_t i) const 174 174 { 175 175 Double_t x, y; … … 177 177 GetKnot(i+1, x, y); 178 178 179 return Integral (i, x);179 return IntegralBin(i, x); 180 180 } 181 181 … … 189 189 const Int_t m = FindX(b); 190 190 191 Double_t sum = -Integral (n, a);191 Double_t sum = -IntegralBin(n, a); 192 192 193 193 for (int i=n; i<=m-1; i++) 194 sum += Integral (i);195 196 sum += Integral (m, b);194 sum += IntegralBin(i); 195 196 sum += IntegralBin(m, b); 197 197 198 198 return sum; … … 208 208 209 209 for (int i=0; i<GetNp()-1; i++) 210 sum += Integral (i);210 sum += IntegralBin(i); 211 211 212 212 return sum;
Note:
See TracChangeset
for help on using the changeset viewer.