BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TRadSpline5 Class Reference

#include <TRadSpline.h>

+ Inheritance diagram for TRadSpline5:

Public Member Functions

 TRadSpline5 ()
 
 TRadSpline5 (const char *title, double x[], double y[], int n, const char *opt=0, double b1=0, double e1=0, double b2=0, double e2=0)
 
 TRadSpline5 (const char *title, double xmin, double xmax, double y[], int n, const char *opt=0, double b1=0, double e1=0, double b2=0, double e2=0)
 
 TRadSpline5 (const char *title, double xmin, double xmax, double(*func)(const double &), int n, const char *opt=0, double b1=0, double e1=0, double b2=0, double e2=0)
 
int FindX (double x) const
 
double Eval (double x) const
 
double Derivative (double x) const
 
 ~TRadSpline5 ()
 
void GetCoeff (int i, double &x, double &y, double &b, double &c, double &d, double &e, double &f)
 
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 154 of file TRadSpline.h.

Constructor & Destructor Documentation

◆ TRadSpline5() [1/4]

TRadSpline5::TRadSpline5 ( )
inline

Definition at line 167 of file TRadSpline.h.

167: fPoly(0) {}

◆ TRadSpline5() [2/4]

TRadSpline5::TRadSpline5 ( const char *  title,
double  x[],
double  y[],
int  n,
const char *  opt = 0,
double  b1 = 0,
double  e1 = 0,
double  b2 = 0,
double  e2 = 0 
)

◆ TRadSpline5() [3/4]

TRadSpline5::TRadSpline5 ( const char *  title,
double  xmin,
double  xmax,
double  y[],
int  n,
const char *  opt = 0,
double  b1 = 0,
double  e1 = 0,
double  b2 = 0,
double  e2 = 0 
)

◆ TRadSpline5() [4/4]

TRadSpline5::TRadSpline5 ( const char *  title,
double  xmin,
double  xmax,
double(*)(const double &)  func,
int  n,
const char *  opt = 0,
double  b1 = 0,
double  e1 = 0,
double  b2 = 0,
double  e2 = 0 
)

◆ ~TRadSpline5()

TRadSpline5::~TRadSpline5 ( )
inline

Definition at line 186 of file TRadSpline.h.

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

Member Function Documentation

◆ Derivative()

double TRadSpline5::Derivative ( double  x) const

◆ Eval()

double TRadSpline5::Eval ( double  x) const
virtual

Implements TRadSpline.

◆ FindX()

int TRadSpline5::FindX ( double  x) const

◆ GetCoeff()

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

Definition at line 187 of file TRadSpline.h.

189 {x=fPoly[i].X();y=fPoly[i].Y();b=fPoly[i].B();
190 c=fPoly[i].C();d=fPoly[i].D();
191 e=fPoly[i].E();f=fPoly[i].F();}
Double_t x[10]
double & B()
Definition: TRadSpline.h:95
double & D()
Definition: TRadSpline.h:97
double & C()
Definition: TRadSpline.h:96
double & F()
Definition: TRadSpline.h:99
double & E()
Definition: TRadSpline.h:98
double & Y()
Definition: TRadSpline.h:47
double & X()
Definition: TRadSpline.h:46

◆ GetKnot()

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

Implements TRadSpline.

Definition at line 192 of file TRadSpline.h.

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

◆ SaveAs()

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

Reimplemented from TRadSpline.

◆ Test()

static void TRadSpline5::Test ( )
static

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