BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
rb::TDFun Class Reference

#include <TDFun_o.h>

Public Member Functions

 TDFun ()
 
 TDFun (const double &E)
 
 ~TDFun ()
 
double GetD0 () const
 
double GetiD0 () const
 
double GetBeta2 () const
 
double GetiBeta2 () const
 
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 fD0
 
double fiD0
 
double fb2
 
double fib2
 

Detailed Description

Definition at line 7 of file TDFun_o.h.

Constructor & Destructor Documentation

◆ TDFun() [1/2]

rb::TDFun::TDFun ( )

◆ TDFun() [2/2]

rb::TDFun::TDFun ( const double &  E)
inline

Definition at line 16 of file TDFun_o.h.

16 {
17 double L = 2.*log(2.*E/me);
18 double fBeta = 2.*alpha/M_PI*(L-1.);
19 fb2 = fBeta/2;
20 fib2 = 1/fb2;
21 // fD0 = 1.+3./8.*fBeta-fBeta*fBeta/48.*(gConst->Pi2() + fL/3. - 47./8.);
22 fD0 = 1.+3./8.*fBeta+fBeta*fBeta/16.*(9./8. - M_PI*M_PI/3);
23 fiD0 = 1/fD0;
24 }
#define M_PI
Definition: TConstant.h:4
double fb2
Definition: TDFun_o.h:11
double fiD0
Definition: TDFun_o.h:10
double fib2
Definition: TDFun_o.h:12
double fD0
Definition: TDFun_o.h:9
const double me
Definition: TConstant.h:5
const double alpha
Definition: TConstant.h:40

◆ ~TDFun()

rb::TDFun::~TDFun ( )
inline

Definition at line 26 of file TDFun_o.h.

26{};

Member Function Documentation

◆ Eval() [1/2]

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

Definition at line 33 of file TDFun_o.h.

33 {
34 double x = 1 - z;
35 // double D = fb2*pow(x,fb2-1)*fD0 - 0.5*fb2*(1+z) -
36 // fb2*fb2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log(z)+5+z);
37 double D = fb2*pow(x,fb2-1)*fD0 - 0.5*fb2*(1+z) -
38 fb2*fb2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log1p(-x)+5+z);
39 return D;
40 }
Double_t x[10]

◆ Eval() [2/2]

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

Definition at line 42 of file TDFun_o.h.

42 {
43 double x = 1 - z;
44 // double D = b2*pow(x,b2-1)*D0 - 0.5*b2*(1+z) -
45 // b2*b2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log(z)+5+z);
46 double D = b2*pow(x,b2-1)*D0 - 0.5*b2*(1+z) -
47 b2*b2/8*(4*(1+z)*log(x)+(1+3*z*z)/x*log1p(-x)+5+z);
48 return D;
49 }

◆ EvalSoft() [1/2]

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

Definition at line 51 of file TDFun_o.h.

51 {
52 double z = 1 - x;
53 double lx = log(x);
54 double t1 = exp(-fb2*lx);
55 double t2 = t1*x;
56 // double D = fD0 - t2*(0.5*(1+z) + fb2/8*( 4*(1+z)*lx + 4 + (1+z))) -
57 // fb2/8*t1*(1+3*z*z)*log(z);
58 double D = fD0 - t2*(0.5*(1+z) + fb2/8*( 4*(1+z)*lx + 4 + (1+z))) -
59 fb2/8*t1*(1+3*z*z)*log1p(-x);
60 return D;
61 }
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252

◆ EvalSoft() [2/2]

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

Definition at line 63 of file TDFun_o.h.

63 {
64 double z = 1 - x;
65 double lx = log(x);
66 double t1 = exp(-b2*lx);
67 double t2 = t1*x;
68 // double D = D0 - t2*(0.5*(1+z) + b2/8*( 4*(1+z)*lx + 4 + (1+z))) -
69 // b2/8*t1*(1+3*z*z)*log(z);
70 double D = D0 - t2*(0.5*(1+z) + b2/8*( 4*(1+z)*lx + 4 + (1+z))) -
71 b2/8*t1*(1+3*z*z)*log1p(-x);
72 return D;
73 }

◆ GetBeta2()

double rb::TDFun::GetBeta2 ( ) const
inline

Definition at line 30 of file TDFun_o.h.

30{ return fb2;};

◆ GetD0()

double rb::TDFun::GetD0 ( ) const
inline

Definition at line 28 of file TDFun_o.h.

28{ return fD0;};

◆ GetiBeta2()

double rb::TDFun::GetiBeta2 ( ) const
inline

Definition at line 31 of file TDFun_o.h.

31{ return fib2;};

◆ GetiD0()

double rb::TDFun::GetiD0 ( ) const
inline

Definition at line 29 of file TDFun_o.h.

29{ return fiD0;};

Member Data Documentation

◆ fb2

double rb::TDFun::fb2
protected

Definition at line 11 of file TDFun_o.h.

Referenced by Eval(), EvalSoft(), GetBeta2(), and TDFun().

◆ fD0

double rb::TDFun::fD0
protected

Definition at line 9 of file TDFun_o.h.

Referenced by Eval(), EvalSoft(), GetD0(), and TDFun().

◆ fib2

double rb::TDFun::fib2
protected

Definition at line 12 of file TDFun_o.h.

Referenced by GetiBeta2(), and TDFun().

◆ fiD0

double rb::TDFun::fiD0
protected

Definition at line 10 of file TDFun_o.h.

Referenced by GetiD0(), and TDFun().


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