#include <TPhoton.h>
Inheritance diagram for TPhotonD:
Public Member Functions | |
TPhotonD () | |
void | Init () |
void | Init (const double &, const double &) |
double | GetEnergy () |
double | GetEnergy (const double &delta, const double &b2) |
double | GetENorm () |
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) |
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 |
Definition at line 156 of file TPhoton.h.
virtual double TPhoton::GetCosTheta | ( | ) | [inline, virtual, inherited] |
Reimplemented in TPhotonFS.
Definition at line 32 of file TPhoton.h.
References exp(), TPhoton::fBetaI, TPhoton::fCosTheta, and TPhoton::fLnD.
Referenced by TEvent::MakeEvent().
00032 { 00033 double d = exp(fLnD*(2*gRandom->Rndm() - 1)); 00034 fCosTheta = (d - 1)/(fBetaI*(d + 1)); 00035 return fCosTheta; 00036 }
virtual double TPhoton::GetCosThetaF | ( | ) | [inline, virtual, inherited] |
Definition at line 42 of file TPhoton.h.
References exp(), TPhoton::fBetaI, TPhoton::fBt, TPhoton::fCosTheta, and TPhoton::fLnD_n.
Referenced by TEvent::MakeEvent().
00042 { 00043 double d = fBt*exp(fLnD_n*gRandom->Rndm()); 00044 fCosTheta = (d - 1)/(fBetaI*(d + 1)); 00045 return fCosTheta; 00046 }
virtual double TPhoton::GetCosThetaF2 | ( | ) | [inline, virtual, inherited] |
Definition at line 52 of file TPhoton.h.
References exp(), TPhoton::fBt2, TPhoton::fCosTheta, TPhoton::fiBetaI, and TPhoton::fLnD_n2.
00052 { 00053 double d = fBt2*exp(fLnD_n2*gRandom->Rndm()); 00054 fCosTheta = (1-d)*fiBetaI; 00055 return fCosTheta; 00056 }
double TPhotonD::GetEnergy | ( | const double & | delta, | |
const double & | b2 | |||
) | [inline] |
Definition at line 167 of file TPhoton.h.
References exp(), TPhoton::fNorm, and TPhoton::fX.
00167 { 00168 fNorm = pow(delta,b2); 00169 fX = delta*exp(log(gRandom->Rndm())/b2); 00170 return fX; 00171 }
double TPhotonD::GetEnergy | ( | ) | [inline, virtual] |
Reimplemented from TPhoton.
Definition at line 161 of file TPhoton.h.
References exp(), TPhoton::fP0, TPhoton::fP1, and TPhoton::fX.
Referenced by TPiCrossPart::GetValue(), TMuCrossPart::GetValue(), and TEPCrossPart::GetValue().
00161 { 00162 double t1 = log(gRandom->Rndm())*fP1; 00163 fX = fP0*exp(t1); 00164 return fX; 00165 }
double TPhotonD::GetENorm | ( | ) | [inline, virtual] |
Reimplemented from TPhoton.
Definition at line 173 of file TPhoton.h.
References TPhoton::fNorm.
Referenced by TPiCrossPart::GetValue(), TMuCrossPart::GetValue(), and TEPCrossPart::GetValue().
00173 {return fNorm;}
double TPhoton::GetMaximum | ( | ) | [inline, inherited] |
double TPhoton::GetMinimum | ( | ) | [inline, inherited] |
double TPhoton::GetPhC | ( | ) | [inline, inherited] |
double TPhoton::GetPhE | ( | ) | [inline, inherited] |
static double TPhoton::GetPhi | ( | ) | [inline, static, inherited] |
Definition at line 62 of file TPhoton.h.
References M_PI.
Referenced by TEvent::MakeEvent().
00062 { 00063 return 2*gRandom->Rndm()*M_PI; 00064 }
static double TPhoton::GetPhiNorm | ( | ) | [inline, static, inherited] |
Definition at line 65 of file TPhoton.h.
References M_PI.
Referenced by TPiCrossPart::GetValue(), TMuCrossPart::GetValue(), TGGCrossPart::GetValue(), and TEPCrossPart::GetValue().
00065 {return 2*M_PI;}
virtual double TPhoton::GetThNorm | ( | ) | [inline, virtual, inherited] |
Reimplemented in TPhotonFS.
Definition at line 37 of file TPhoton.h.
References TPhoton::fBetaI, TPhoton::fCosTheta, and TPhoton::fLnD.
Referenced by TPiCrossPart::GetValue(), TMuCrossPart::GetValue(), TGGCrossPart::GetValue(), and TEPCrossPart::GetValue().
virtual double TPhoton::GetThNormF | ( | ) | [inline, virtual, inherited] |
Definition at line 47 of file TPhoton.h.
References TPhoton::fBetaI, TPhoton::fCosTheta, TPhoton::fiBetaI, and TPhoton::fLnD_n.
Referenced by TEPCrossPart::GetValue().
virtual double TPhoton::GetThNormF2 | ( | ) | [inline, virtual, inherited] |
Definition at line 57 of file TPhoton.h.
References TPhoton::fBetaI, TPhoton::fCosTheta, TPhoton::fiBetaI, and TPhoton::fLnD_n2.
void TPhotonD::Init | ( | const double & | , | |
const double & | ||||
) |
Definition at line 67 of file TPhoton.C.
References TPhoton::fBetaI, TPhoton::fLnD, TPhoton::fNorm, TPhoton::fP0, TPhoton::fP1, TRadGlobal::Get_BetaI(), TRadGlobal::Get_LnD(), and gGlobal.
00067 { 00068 // Initializing photons in final state 00069 // by distribution 1/x 00070 fP0 = delta; 00071 fP1 = 2/beta; 00072 fNorm = pow(delta,beta/2); 00073 fBetaI = gGlobal->Get_BetaI(); 00074 fLnD = gGlobal->Get_LnD(); 00075 }
void TPhotonD::Init | ( | ) | [virtual] |
Reimplemented from TPhoton.
Definition at line 59 of file TPhoton.C.
References TPhoton::fBetaI, TPhoton::fLnD, TRadGlobal::Get_Beta(), TRadGlobal::Get_BetaI(), TRadGlobal::Get_LnD(), TRadGlobal::Get_XMin(), and gGlobal.
Referenced by TPiCrossPart::Init(), TMuCrossPart::Init(), and TEPCrossPart::Init().
00059 { 00060 // Initializing photons in final state 00061 // by distribution 1/x 00062 Init(gGlobal->Get_XMin(), gGlobal->Get_Beta()); 00063 fBetaI = gGlobal->Get_BetaI(); 00064 fLnD = gGlobal->Get_LnD(); 00065 }
void TPhoton::SetCosTheta | ( | const double & | x | ) | [inline, inherited] |
Definition at line 72 of file TPhoton.h.
References TPhoton::fCosTheta.
Referenced by TEvent::MakeEvent().
void TPhoton::SetEnergy | ( | const double & | x | ) | [inline, inherited] |
double TPhoton::fBetaI [protected, inherited] |
Definition at line 19 of file TPhoton.h.
Referenced by TPhoton::GetCosTheta(), TPhoton::GetCosThetaF(), TPhoton::GetThNorm(), TPhoton::GetThNormF(), TPhoton::GetThNormF2(), Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().
double TPhoton::fBt [protected, inherited] |
Definition at line 22 of file TPhoton.h.
Referenced by TPhoton::GetCosThetaF(), and TPhotonF::Init().
double TPhoton::fBt2 [protected, inherited] |
Definition at line 24 of file TPhoton.h.
Referenced by TPhoton::GetCosThetaF2(), and TPhotonF::Init().
double TPhoton::fCosTheta [protected, inherited] |
Definition at line 17 of file TPhoton.h.
Referenced by TPhotonFS::GetCosTheta(), TPhoton::GetCosTheta(), TPhoton::GetCosThetaF(), TPhoton::GetCosThetaF2(), TPhoton::GetPhC(), TPhoton::GetThNorm(), TPhoton::GetThNormF(), TPhoton::GetThNormF2(), and TPhoton::SetCosTheta().
double TPhoton::fiBetaI [protected, inherited] |
Definition at line 20 of file TPhoton.h.
Referenced by TPhoton::GetCosThetaF2(), TPhoton::GetThNormF(), TPhoton::GetThNormF2(), and TPhotonF::Init().
double TPhoton::fLnD [protected, inherited] |
Definition at line 18 of file TPhoton.h.
Referenced by TPhoton::GetCosTheta(), TPhoton::GetThNorm(), Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().
double TPhoton::fLnD_n [protected, inherited] |
Definition at line 21 of file TPhoton.h.
Referenced by TPhoton::GetCosThetaF(), TPhoton::GetThNormF(), and TPhotonF::Init().
double TPhoton::fLnD_n2 [protected, inherited] |
Definition at line 23 of file TPhoton.h.
Referenced by TPhoton::GetCosThetaF2(), TPhoton::GetThNormF2(), and TPhotonF::Init().
double TPhoton::fNorm [protected, inherited] |
Definition at line 9 of file TPhoton.h.
Referenced by GetEnergy(), GetENorm(), TPhotonS::GetENorm(), TPhotonF::GetENorm(), TPhotonI::GetENorm(), Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().
double TPhoton::fP0 [protected, inherited] |
Definition at line 10 of file TPhoton.h.
Referenced by GetEnergy(), TPhotonS::GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().
double TPhoton::fP1 [protected, inherited] |
Definition at line 11 of file TPhoton.h.
Referenced by GetEnergy(), TPhotonS::GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().
double TPhoton::fP2 [protected, inherited] |
double TPhoton::fP3 [protected, inherited] |
double TPhoton::fX [protected, inherited] |
Definition at line 16 of file TPhoton.h.
Referenced by GetEnergy(), TPhotonS::GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), TPhotonF::GetENorm(), TPhotonI::GetENorm(), TPhoton::GetPhE(), TPhotonS::GetX(), TPhotonS::GetXNorm(), and TPhoton::SetEnergy().
double TPhoton::fxmax [protected, inherited] |
double TPhoton::fxmin [protected, inherited] |