BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
TPhotonS Class Reference

#include <TPhoton.h>

+ Inheritance diagram for TPhotonS:

Public Member Functions

 TPhotonS ()
 
void Init ()
 
void Init (const double &, const double &)
 
double GetEnergy ()
 
void GetEnergy (double &x1, double &x2, double &x3, double &x4)
 
double GetENorm ()
 
double GetXNorm ()
 
double GetX ()
 
- Public Member Functions inherited from TPhoton
 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)
 

Protected Attributes

double fP2
 
double fP3
 
- Protected Attributes inherited from TPhoton
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
 

Additional Inherited Members

- Static Public Member Functions inherited from TPhoton
static double GetPhi ()
 
static double GetPhiNorm ()
 

Detailed Description

Definition at line 125 of file TPhoton.h.

Constructor & Destructor Documentation

◆ TPhotonS()

TPhotonS::TPhotonS ( )
inline

Definition at line 129 of file TPhoton.h.

129:TPhoton(){};
TPhoton()
Definition: TPhoton.h:26

Member Function Documentation

◆ GetEnergy() [1/2]

double TPhotonS::GetEnergy ( )
inlinevirtual

Reimplemented from TPhoton.

Definition at line 132 of file TPhoton.h.

132{return 0;};

◆ GetEnergy() [2/2]

void TPhotonS::GetEnergy ( double &  x1,
double &  x2,
double &  x3,
double &  x4 
)
inline

Definition at line 133 of file TPhoton.h.

133 {
134 double t1 = log(gRandom->Rndm())*fP1;
135 x1 = fP0*exp(t1);
136
137 double t2 = log(gRandom->Rndm())*fP1;
138 x2 = fP0*exp(t2);
139
140 double t3 = log(gRandom->Rndm())*fP1;
141 x3 = fP0*exp(t3);
142
143 double t4 = log(gRandom->Rndm())*fP1;
144 x4 = fP0*exp(t4);
145
146 fX = t1 + t2 + t3 + t4;
147
148 }
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
double fX
Definition: TPhoton.h:16
double fP0
Definition: TPhoton.h:10
double fP1
Definition: TPhoton.h:11

◆ GetENorm()

double TPhotonS::GetENorm ( )
inlinevirtual

Reimplemented from TPhoton.

Definition at line 149 of file TPhoton.h.

149{return fNorm;}
double fNorm
Definition: TPhoton.h:9

◆ GetX()

double TPhotonS::GetX ( )
inline

Definition at line 151 of file TPhoton.h.

151{return fX;}

◆ GetXNorm()

double TPhotonS::GetXNorm ( )
inline

Definition at line 150 of file TPhoton.h.

150{return fP2*exp(fP3*fX);}
double fP3
Definition: TPhoton.h:127
double fP2
Definition: TPhoton.h:127

◆ Init() [1/2]

void TPhotonS::Init ( )
virtual

Reimplemented from TPhoton.

◆ Init() [2/2]

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

Member Data Documentation

◆ fP2

double TPhotonS::fP2
protected

Definition at line 127 of file TPhoton.h.

Referenced by GetXNorm().

◆ fP3

double TPhotonS::fP3
protected

Definition at line 127 of file TPhoton.h.

Referenced by GetXNorm().


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