40 TSpline() : fDelta(-1), fXmin(0), fXmax(0),
41 fNp(0), fKstep(
kFALSE), fHistogram(0), fGraph(0), fNpx(100) {}
45 fDelta(delta), fXmin(xmin),
46 fXmax(xmax), fNp(np), fKstep(step),
47 fHistogram(0), fGraph(0), fNpx(100) {}
114 fB(0), fC(0), fD(0) {}
125 return (
fY+dx*(fB+dx*(fC+dx*fD)));
129 return (fB+dx*(2*fC+3*fD*dx));
157 fB(0), fC(0), fD(0), fE(0), fF(0) {}
160 TSplinePoly(x,y), fB(b), fC(c), fD(d), fE(e), fF(f) {}
171 return (
fY+dx*(fB+dx*(fC+dx*(fD+dx*(fE+dx*fF)))));
175 return (fB+dx*(2*fC+dx*(3*fD+dx*(4*fE+dx*(5*fF)))));
203 void SetCond(
const char *opt);
207 fBegCond(-1), fEndCond(-1) {}
220 const TF1 *func,
Int_t n,
const char *opt=0,
223 const TGraph *g,
const char *opt=0,
235 b=fPoly[i].
B();c=fPoly[i].
C();d=fPoly[i].
D();}
237 {x=fPoly[i].
X(); y=fPoly[i].
Y();}
238 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
255 void BoundaryConditions(
const char *opt,
Int_t &beg,
Int_t &end,
256 const char *&cb1,
const char *&ce1,
const char *&cb2,
259 const char *cb1,
const char *ce1,
const char *cb2,
296 {x=fPoly[i].
X();y=fPoly[i].
Y();b=fPoly[i].
B();
297 c=fPoly[i].
C();d=fPoly[i].
D();
298 e=fPoly[i].
E();f=fPoly[i].
F();}
300 {x=fPoly[i].
X(); y=fPoly[i].
Y();}
301 virtual void SaveAs(
const char *filename,
Option_t *option=
"")
const;
TSplinePoly3(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d)
TSplinePoly3 & operator=(TSplinePoly3 const &other)
assignment operator
TSplinePoly & operator=(TSplinePoly const &other)
assignment operator
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void GetKnot(Double_t &x, Double_t &y) const
TSplinePoly(Double_t x, Double_t y)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a spline.
Base class for spline implementation containing the Draw/Paint methods //.
void CopyPoly(TSplinePoly3 const &other)
utility called by the copy constructors and = operator
virtual Double_t GetXmax() const
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t GetXmin() const
virtual Int_t GetNpx() const
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
virtual Double_t GetDelta() const
void GetKnot(Int_t i, Double_t &x, Double_t &y) const
TSplinePoly5(Double_t x, Double_t y, Double_t b, Double_t c, Double_t d, Double_t e, Double_t f)
Fill Area Attributes class.
#define ClassDef(name, id)
virtual void SaveAs(const char *filename="", Option_t *option="") const
Save this object in the file specified by filename.
The TNamed class is the base class for all named ROOT classes.
void CopyPoly(TSplinePoly const &other)
utility called by the copy constructors and = operator
TSpline & operator=(const TSpline &)
assignment operator
Double_t Derivative(Double_t x) const
TSplinePoly5 & operator=(TSplinePoly5 const &other)
assignment operator
Double_t Derivative(Double_t x) const
Double_t Eval(Double_t x) const
virtual void SaveAs(const char *, Option_t *) const
Save this object in the file specified by filename.
virtual Double_t Eval(Double_t x) const =0
virtual void GetKnot(Int_t i, Double_t &x, Double_t &y) const =0
virtual ~TSpline()
destructor
virtual Double_t Eval(Double_t) const
TSpline(const char *title, Double_t delta, Double_t xmin, Double_t xmax, Int_t np, Bool_t step)
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
double func(double *x, double *p)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Mother of all ROOT objects.
void GetCoeff(Int_t i, Double_t &x, Double_t &y, Double_t &b, Double_t &c, Double_t &d, Double_t &e, Double_t &f)
void GetCoeff(Int_t i, Double_t &x, Double_t &y, Double_t &b, Double_t &c, Double_t &d)
A Graph is a graphics object made of two arrays X and Y with npoints each.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual void Paint(Option_t *option="")
Paint this function with its current attributes.
void CopyPoly(TSplinePoly5 const &other)
utility called by the copy constructors and = operator
TH1F * GetHistogram() const
virtual Int_t GetNp() const
Double_t Eval(Double_t x) const
virtual void BuildCoeff()=0
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".