BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TRadSpline3 Class Reference

#include <TRadSpline.h>

+ Inheritance diagram for TRadSpline3:

Public Member Functions

 TRadSpline3 ()
 
 TRadSpline3 (const char *title, double x[], double y[], int n, const char *opt=0, double valbeg=0, double valend=0)
 
 TRadSpline3 (const char *title, double xmin, double xmax, double y[], int n, const char *opt=0, double valbeg=0, double valend=0)
 
 TRadSpline3 (const char *title, double xmin, double xmax, double(*func)(const double &), int n, const char *opt=0, double valbeg=0, double valend=0)
 
int FindX (double x) const
 
double Eval (double x) const
 
double Derivative (double x) const
 
virtual ~TRadSpline3 ()
 
void GetCoeff (int i, double &x, double &y, double &b, double &c, double &d)
 
void GetKnot (int i, double &x, double &y) const
 
virtual void SaveAs (const char *filename) const
 
- Public Member Functions inherited from TRadSpline
 TRadSpline ()
 
 TRadSpline (const char *title, double delta, double xmin, double xmax, int np, bool step)
 
virtual ~TRadSpline ()
 
virtual void GetKnot (int i, double &x, double &y) const =0
 
virtual int GetNpx () const
 
virtual double Eval (double x) const =0
 
virtual void SaveAs (const char *) const
 
void SetNpx (int n)
 

Static Public Member Functions

static void Test ()
 

Additional Inherited Members

virtual void BuildCoeff ()=0
 
- Protected Attributes inherited from TRadSpline
double fDelta
 
double fXmin
 
double fXmax
 
int fNp
 
bool fKstep
 
int fNpx
 

Detailed Description

Definition at line 113 of file TRadSpline.h.

Constructor & Destructor Documentation

◆ TRadSpline3() [1/4]

TRadSpline3::TRadSpline3 ( )
inline

Definition at line 125 of file TRadSpline.h.

125 : fPoly(0), fValBeg(0), fValEnd(0),
126 fBegCond(-1), fEndCond(-1) {}

◆ TRadSpline3() [2/4]

TRadSpline3::TRadSpline3 ( const char *  title,
double  x[],
double  y[],
int  n,
const char *  opt = 0,
double  valbeg = 0,
double  valend = 0 
)

◆ TRadSpline3() [3/4]

TRadSpline3::TRadSpline3 ( const char *  title,
double  xmin,
double  xmax,
double  y[],
int  n,
const char *  opt = 0,
double  valbeg = 0,
double  valend = 0 
)

◆ TRadSpline3() [4/4]

TRadSpline3::TRadSpline3 ( const char *  title,
double  xmin,
double  xmax,
double(*)(const double &)  func,
int  n,
const char *  opt = 0,
double  valbeg = 0,
double  valend = 0 
)

◆ ~TRadSpline3()

virtual TRadSpline3::~TRadSpline3 ( )
inlinevirtual

Definition at line 141 of file TRadSpline.h.

141{if (fPoly) delete [] fPoly;}

Member Function Documentation

◆ Derivative()

double TRadSpline3::Derivative ( double  x) const

◆ Eval()

double TRadSpline3::Eval ( double  x) const
virtual

Implements TRadSpline.

Referenced by TDFun::EvalSpline().

◆ FindX()

int TRadSpline3::FindX ( double  x) const

◆ GetCoeff()

void TRadSpline3::GetCoeff ( int  i,
double &  x,
double &  y,
double &  b,
double &  c,
double &  d 
)
inline

Definition at line 142 of file TRadSpline.h.

143 {x=fPoly[i].X();y=fPoly[i].Y();
144 b=fPoly[i].B();c=fPoly[i].C();d=fPoly[i].D();}
Double_t x[10]
double & C()
Definition: TRadSpline.h:67
double & D()
Definition: TRadSpline.h:68
double & B()
Definition: TRadSpline.h:66
double & Y()
Definition: TRadSpline.h:47
double & X()
Definition: TRadSpline.h:46
double y[1000]
const double b
Definition: slope.cxx:9

◆ GetKnot()

void TRadSpline3::GetKnot ( int  i,
double &  x,
double &  y 
) const
inlinevirtual

Implements TRadSpline.

Definition at line 145 of file TRadSpline.h.

146 {x=fPoly[i].X(); y=fPoly[i].Y();}

◆ SaveAs()

virtual void TRadSpline3::SaveAs ( const char *  filename) const
virtual

Reimplemented from TRadSpline.

◆ Test()

static void TRadSpline3::Test ( )
static

The documentation for this class was generated from the following file: