source: trunk/Mars/mtools/MCubicCoeff.h@ 18679

Last change on this file since 18679 was 3022, checked in by raducci, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MCubicCoeff
2#define MARS_MCubicCoeff
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8class MCubicCoeff : public TObject
9{
10 private:
11 Double_t fX; // abscissa
12 Double_t fXNext; // abscissa of the next point
13 Double_t fA; // 3rd order coeff
14 Double_t fB; // 2nd order coeff
15 Double_t fC; // 1st order coeff
16 Double_t fY; // constant term
17 Double_t fYNext; // value in the next point
18 Double_t fH; // interval width
19 Double_t fMin; // minimum value
20 Double_t fMax; // maximum value
21 Double_t fAbMin; // abscissa of the min
22 Double_t fAbMax; // abscissa of the max
23 public:
24 MCubicCoeff(){}
25 MCubicCoeff(Double_t x, Double_t xNext, Double_t y, Double_t yNext,
26 Double_t a, Double_t b, Double_t c);
27 Double_t GetA() { return fA; }
28 Double_t GetB() { return fB; }
29 Double_t GetC() { return fC; }
30 Double_t GetMin() { return fMin; }
31 Double_t GetMax() { return fMax; }
32 Double_t GetAbMin() { return fAbMin; }
33 Double_t GetAbMax() { return fAbMax; }
34 Double_t Eval(Double_t x); //Evaluate the spline at a point x
35 Bool_t EvalMinMax(); //Finds min & max
36 Short_t FindCardanRoot(Double_t y, Double_t *x); //Evaluate the abscissa of the spline given y
37 Bool_t IsIn(Double_t x);
38
39 ClassDef(MCubicCoeff, 0) //Class to contain spline coefficients
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.