CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TDFun Class Reference

#include <TDFun.h>

Public Member Functions

 TDFun ()
 
 TDFun (const double &, const double &)
 
 ~TDFun ()
 
void Init ()
 
void Init (const double &, const double &)
 
double EvalSpline (const double &z)
 
double Eval (const double &z)
 
double Eval (const double &z, const double &b2, const double &D0)
 
double EvalSoft (const double &x)
 
double EvalSoft (const double &x, const double &b2, const double &D0)
 

Protected Attributes

double fxmin
 
double fxmax
 
double fD0
 
double fb2
 
TRadSpline3fd
 

Detailed Description

Definition at line 7 of file TDFun.h.

Constructor & Destructor Documentation

◆ TDFun() [1/2]

TDFun::TDFun ( )

◆ TDFun() [2/2]

TDFun::TDFun ( const double & ,
const double &  )

◆ ~TDFun()

TDFun::~TDFun ( )

Member Function Documentation

◆ Eval() [1/2]

double TDFun::Eval ( const double & z)
inline

Definition at line 23 of file TDFun.h.

23 {
24 double x = 1 - z;
25 // double D = fb2*pow(x,fb2-1)*fD0 - 0.5*fb2*(1+z) -
26 // fb2*fb2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log(z)+5+z);
27 double D = fb2*pow(x,fb2-1)*fD0 - 0.5*fb2*(1+z) -
28 fb2*fb2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log1p(-x)+5+z);
29 return D;
30 }
Double_t x[10]
double fb2
Definition TDFun.h:12
double fD0
Definition TDFun.h:11

◆ Eval() [2/2]

double TDFun::Eval ( const double & z,
const double & b2,
const double & D0 )
inline

Definition at line 32 of file TDFun.h.

32 {
33 double x = 1 - z;
34 // double D = b2*pow(x,b2-1)*D0 - 0.5*b2*(1+z) -
35 // b2*b2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log(z)+5+z);
36 double D = b2*pow(x,b2-1)*D0 - 0.5*b2*(1+z) -
37 b2*b2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log1p(-x)+5+z);
38 return D;
39 }

◆ EvalSoft() [1/2]

double TDFun::EvalSoft ( const double & x)
inline

Definition at line 41 of file TDFun.h.

41 {
42 double z = 1 - x;
43 double lx = log(x);
44 double t1 = exp(-fb2*lx);
45 double t2 = t1*x;
46 // double D = fD0 - t2*(0.5*(1+z) + fb2/8*( 4*(1+z)*lx + 4 + (1+z))) -
47 // fb2/8*t1*(1+3*z*z)*log(z);
48 double D = fD0 - t2*(0.5*(1+z) + fb2/8*( 4*(1+z)*lx + 4 + (1+z))) -
49 fb2/8*t1*(1+3*z*z)*log1p(-x);
50 return D;
51 }
EvtComplex exp(const EvtComplex &c)

◆ EvalSoft() [2/2]

double TDFun::EvalSoft ( const double & x,
const double & b2,
const double & D0 )
inline

Definition at line 53 of file TDFun.h.

53 {
54 double z = 1 - x;
55 double lx = log(x);
56 double t1 = exp(-b2*lx);
57 double t2 = t1*x;
58 // double D = D0 - t2*(0.5*(1+z) + b2/8*( 4*(1+z)*lx + 4 + (1+z))) -
59 // b2/8*t1*(1+3*z*z)*log(z);
60 double D = D0 - t2*(0.5*(1+z) + b2/8*( 4*(1+z)*lx + 4 + (1+z))) -
61 b2/8*t1*(1+3*z*z)*log1p(-x);
62 return D;
63 }

◆ EvalSpline()

double TDFun::EvalSpline ( const double & z)
inline

Definition at line 21 of file TDFun.h.

21{return fd->Eval(z);}
TRadSpline3 * fd
Definition TDFun.h:13
double Eval(double x) const

◆ Init() [1/2]

void TDFun::Init ( )

◆ Init() [2/2]

void TDFun::Init ( const double & ,
const double &  )

Member Data Documentation

◆ fb2

double TDFun::fb2
protected

Definition at line 12 of file TDFun.h.

Referenced by Eval(), and EvalSoft().

◆ fd

TRadSpline3* TDFun::fd
protected

Definition at line 13 of file TDFun.h.

Referenced by EvalSpline().

◆ fD0

double TDFun::fD0
protected

Definition at line 11 of file TDFun.h.

Referenced by Eval(), and EvalSoft().

◆ fxmax

double TDFun::fxmax
protected

Definition at line 10 of file TDFun.h.

◆ fxmin

double TDFun::fxmin
protected

Definition at line 9 of file TDFun.h.


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