BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TPhoton Class Reference

#include <TPhoton.h>

+ Inheritance diagram for TPhoton:

Public Member Functions

 TPhoton ()
 
virtual ~TPhoton ()
 
virtual void Init ()
 
double GetMinimum ()
 
double GetMaximum ()
 
virtual double GetCosTheta ()
 
virtual double GetThNorm ()
 
virtual double GetCosThetaF ()
 
virtual double GetThNormF ()
 
virtual double GetCosThetaF2 ()
 
virtual double GetThNormF2 ()
 
double GetPhE ()
 
double GetPhC ()
 
virtual double GetENorm ()
 
virtual double GetEnergy ()
 
void SetCosTheta (const double &x)
 
void SetEnergy (const double &x)
 

Static Public Member Functions

static double GetPhi ()
 
static double GetPhiNorm ()
 

Protected Attributes

double fNorm
 
double fP0
 
double fP1
 
double fP2
 
double fP3
 
double fxmin
 
double fxmax
 
double fX
 
double fCosTheta
 
double fLnD
 
double fBetaI
 
double fiBetaI
 
double fLnD_n
 
double fBt
 
double fLnD_n2
 
double fBt2
 

Detailed Description

Definition at line 7 of file TPhoton.h.

Constructor & Destructor Documentation

◆ TPhoton()

TPhoton::TPhoton ( )
inline

Definition at line 26 of file TPhoton.h.

26{Init();};
virtual void Init()
Definition TPhoton.h:28

◆ ~TPhoton()

virtual TPhoton::~TPhoton ( )
inlinevirtual

Definition at line 27 of file TPhoton.h.

27{};

Member Function Documentation

◆ GetCosTheta()

virtual double TPhoton::GetCosTheta ( )
inlinevirtual

Reimplemented in TPhotonFS.

Definition at line 32 of file TPhoton.h.

32 {
33 double d = exp(fLnD*(2*gRandom->Rndm() - 1));
34 fCosTheta = (d - 1)/(fBetaI*(d + 1));
35 return fCosTheta;
36 }
EvtComplex exp(const EvtComplex &c)
double fLnD
Definition TPhoton.h:18
double fCosTheta
Definition TPhoton.h:17
double fBetaI
Definition TPhoton.h:19

◆ GetCosThetaF()

virtual double TPhoton::GetCosThetaF ( )
inlinevirtual

Definition at line 42 of file TPhoton.h.

42 {
43 double d = fBt*exp(fLnD_n*gRandom->Rndm());
44 fCosTheta = (d - 1)/(fBetaI*(d + 1));
45 return fCosTheta;
46 }
double fBt
Definition TPhoton.h:22
double fLnD_n
Definition TPhoton.h:21

◆ GetCosThetaF2()

virtual double TPhoton::GetCosThetaF2 ( )
inlinevirtual

Definition at line 52 of file TPhoton.h.

52 {
53 double d = fBt2*exp(fLnD_n2*gRandom->Rndm());
54 fCosTheta = (1-d)*fiBetaI;
55 return fCosTheta;
56 }
double fLnD_n2
Definition TPhoton.h:23
double fBt2
Definition TPhoton.h:24
double fiBetaI
Definition TPhoton.h:20

◆ GetEnergy()

virtual double TPhoton::GetEnergy ( )
inlinevirtual

Reimplemented in TPhotonD, TPhotonF, TPhotonI, and TPhotonS.

Definition at line 70 of file TPhoton.h.

70{return 0;};

◆ GetENorm()

virtual double TPhoton::GetENorm ( )
inlinevirtual

Reimplemented in TPhotonD, TPhotonF, TPhotonI, and TPhotonS.

Definition at line 69 of file TPhoton.h.

69{return 1;};

◆ GetMaximum()

double TPhoton::GetMaximum ( )
inline

Definition at line 30 of file TPhoton.h.

30{return fxmax;}
double fxmax
Definition TPhoton.h:15

◆ GetMinimum()

double TPhoton::GetMinimum ( )
inline

Definition at line 29 of file TPhoton.h.

29{return fxmin;}
double fxmin
Definition TPhoton.h:14

◆ GetPhC()

double TPhoton::GetPhC ( )
inline

Definition at line 68 of file TPhoton.h.

68{return fCosTheta;}

◆ GetPhE()

double TPhoton::GetPhE ( )
inline

Definition at line 67 of file TPhoton.h.

67{return fX;}
double fX
Definition TPhoton.h:16

◆ GetPhi()

static double TPhoton::GetPhi ( )
inlinestatic

Definition at line 62 of file TPhoton.h.

62 {
63 return 2*gRandom->Rndm()*M_PI;
64 }
#define M_PI
Definition TConstant.h:4

◆ GetPhiNorm()

static double TPhoton::GetPhiNorm ( )
inlinestatic

Definition at line 65 of file TPhoton.h.

65{return 2*M_PI;}

◆ GetThNorm()

virtual double TPhoton::GetThNorm ( )
inlinevirtual

Reimplemented in TPhotonFS.

Definition at line 37 of file TPhoton.h.

37 {
38 double k = fBetaI*fCosTheta;
39 return fLnD*(1 - k*k);
40 }

◆ GetThNormF()

virtual double TPhoton::GetThNormF ( )
inlinevirtual

Definition at line 47 of file TPhoton.h.

47 {
48 double k = fBetaI*fCosTheta;
49 return -0.5*fiBetaI*fLnD_n*(1 - k*k);
50 }

◆ GetThNormF2()

virtual double TPhoton::GetThNormF2 ( )
inlinevirtual

Definition at line 57 of file TPhoton.h.

57 {
58 double k = fBetaI*fCosTheta;
59 return fiBetaI*fLnD_n2*(1 - k);
60 }

◆ Init()

virtual void TPhoton::Init ( )
inlinevirtual

Reimplemented in TPhotonD, TPhotonF, TPhotonI, and TPhotonS.

Definition at line 28 of file TPhoton.h.

28{};

Referenced by TPhoton().

◆ SetCosTheta()

void TPhoton::SetCosTheta ( const double & x)
inline

Definition at line 72 of file TPhoton.h.

72{fCosTheta = x;}
Double_t x[10]

◆ SetEnergy()

void TPhoton::SetEnergy ( const double & x)
inline

Definition at line 73 of file TPhoton.h.

73{fX = x;}

Member Data Documentation

◆ fBetaI

double TPhoton::fBetaI
protected

Definition at line 19 of file TPhoton.h.

Referenced by GetCosTheta(), GetCosThetaF(), GetThNorm(), GetThNormF(), and GetThNormF2().

◆ fBt

double TPhoton::fBt
protected

Definition at line 22 of file TPhoton.h.

Referenced by GetCosThetaF().

◆ fBt2

double TPhoton::fBt2
protected

Definition at line 24 of file TPhoton.h.

Referenced by GetCosThetaF2().

◆ fCosTheta

double TPhoton::fCosTheta
protected

◆ fiBetaI

double TPhoton::fiBetaI
protected

Definition at line 20 of file TPhoton.h.

Referenced by GetCosThetaF2(), GetThNormF(), and GetThNormF2().

◆ fLnD

double TPhoton::fLnD
protected

Definition at line 18 of file TPhoton.h.

Referenced by GetCosTheta(), and GetThNorm().

◆ fLnD_n

double TPhoton::fLnD_n
protected

Definition at line 21 of file TPhoton.h.

Referenced by GetCosThetaF(), and GetThNormF().

◆ fLnD_n2

double TPhoton::fLnD_n2
protected

Definition at line 23 of file TPhoton.h.

Referenced by GetCosThetaF2(), and GetThNormF2().

◆ fNorm

double TPhoton::fNorm
protected

◆ fP0

double TPhoton::fP0
protected

◆ fP1

double TPhoton::fP1
protected

◆ fP2

double TPhoton::fP2
protected

Definition at line 12 of file TPhoton.h.

◆ fP3

double TPhoton::fP3
protected

Definition at line 13 of file TPhoton.h.

◆ fX

◆ fxmax

double TPhoton::fxmax
protected

Definition at line 15 of file TPhoton.h.

Referenced by GetMaximum().

◆ fxmin

double TPhoton::fxmin
protected

Definition at line 14 of file TPhoton.h.

Referenced by GetMinimum().


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