BOSS 8.0.0
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 ()
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 ()
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 118 of file TPhoton.h.

Constructor & Destructor Documentation

◆ TPhotonS()

TPhotonS::TPhotonS ( )
inline

Definition at line 123 of file TPhoton.h.

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

Member Function Documentation

◆ GetEnergy() [1/2]

double TPhotonS::GetEnergy ( )
inlinevirtual

Reimplemented from TPhoton.

Definition at line 126 of file TPhoton.h.

126{ return 0; };

◆ GetEnergy() [2/2]

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

Definition at line 127 of file TPhoton.h.

127 {
128 double t1 = log( gRandom->Rndm() ) * fP1;
129 x1 = fP0 * exp( t1 );
130
131 double t2 = log( gRandom->Rndm() ) * fP1;
132 x2 = fP0 * exp( t2 );
133
134 double t3 = log( gRandom->Rndm() ) * fP1;
135 x3 = fP0 * exp( t3 );
136
137 double t4 = log( gRandom->Rndm() ) * fP1;
138 x4 = fP0 * exp( t4 );
139
140 fX = t1 + t2 + t3 + t4;
141 }
EvtComplex exp(const EvtComplex &c)
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 142 of file TPhoton.h.

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

◆ GetX()

double TPhotonS::GetX ( )
inline

Definition at line 144 of file TPhoton.h.

144{ return fX; }

◆ GetXNorm()

double TPhotonS::GetXNorm ( )
inline

Definition at line 143 of file TPhoton.h.

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

◆ 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 120 of file TPhoton.h.

Referenced by GetXNorm().

◆ fP3

double TPhotonS::fP3
protected

Definition at line 120 of file TPhoton.h.

Referenced by GetXNorm().


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