BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
rb::TPhotonD Class Reference

#include <TPhoton_o.h>

Inheritance diagram for rb::TPhotonD:

Public Member Functions

 TPhotonD ()
void Init (const double &delta, const double &beta)
double GetEnergy ()
double GetENorm ()
Public Member Functions inherited from rb::TPhoton
 TPhoton ()
 TPhoton (double E)
 TPhoton (double E, double Emin, double Emax)
 ~TPhoton ()
void SetEnergyRange (double Emin, double Emax)
void SetThetaRange (double thmin, double thmax)
void SetCosThetaRange (double c1, double c2)
const TLorentzVector & GetPhoton ()
const TLorentzVector & GetNewPhoton ()
double GetPhotNorm ()
double GetEnergy ()
double GetENorm ()
double GetCosThetaF ()
double GetThNormF ()
double GetPhi ()
double GetPhiNorm ()

Additional Inherited Members

Protected Attributes inherited from rb::TPhoton
TLorentzVector fk
double fknorm
double fNorm
double fE
double fP0
double fP1
double fX
double fCosTheta
double fLnD
double fBetaI
double fiBetaI
double fLnD_n
double fBt

Detailed Description

Definition at line 54 of file TPhoton_o.h.

Constructor & Destructor Documentation

◆ TPhotonD()

rb::TPhotonD::TPhotonD ( )
inline

Definition at line 56 of file TPhoton_o.h.

56: TPhoton(){};

Member Function Documentation

◆ GetEnergy()

double rb::TPhotonD::GetEnergy ( )
inline

Definition at line 64 of file TPhoton_o.h.

64 {
65 double t1 = log( gRandom->Rndm() ) * fP1;
66 fX = fP0 * exp( t1 );
67 return fX;
68 }
EvtComplex exp(const EvtComplex &c)
double fX
Definition TPhoton_o.h:15
double fP0
Definition TPhoton_o.h:13
double fP1
Definition TPhoton_o.h:14

◆ GetENorm()

double rb::TPhotonD::GetENorm ( )
inline

Definition at line 69 of file TPhoton_o.h.

69{ return fNorm; }
double fNorm
Definition TPhoton_o.h:11

◆ Init()

void rb::TPhotonD::Init ( const double & delta,
const double & beta )
inline

Definition at line 57 of file TPhoton_o.h.

57 {
58 // Initializing photons in final state
59 // by distribution 1/x
60 fP0 = delta;
61 fP1 = 2 / beta;
62 fNorm = pow( delta, beta / 2 );
63 }

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