TPhotonS Class Reference

#include <TPhoton.h>

Inheritance diagram for TPhotonS:

TPhoton List of all members.

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 ()
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 fP2
double fP3
double fNorm
double fP0
double fP1
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 125 of file TPhoton.h.


Constructor & Destructor Documentation

TPhotonS::TPhotonS (  )  [inline]

Definition at line 129 of file TPhoton.h.

00129 :TPhoton(){};


Member Function Documentation

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   }

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

Definition at line 133 of file TPhoton.h.

References exp(), TPhoton::fP0, TPhoton::fP1, and TPhoton::fX.

00133                                                                        {
00134     double t1 = log(gRandom->Rndm())*fP1;
00135     x1 = fP0*exp(t1);
00136 
00137     double t2 = log(gRandom->Rndm())*fP1;
00138     x2 = fP0*exp(t2);
00139 
00140     double t3 = log(gRandom->Rndm())*fP1;
00141     x3 = fP0*exp(t3);
00142 
00143     double t4 = log(gRandom->Rndm())*fP1;
00144     x4 = fP0*exp(t4);
00145 
00146     fX = t1 + t2 + t3 + t4;
00147     
00148   }

double TPhotonS::GetEnergy (  )  [inline, virtual]

Reimplemented from TPhoton.

Definition at line 132 of file TPhoton.h.

00132 {return 0;};

double TPhotonS::GetENorm (  )  [inline, virtual]

Reimplemented from TPhoton.

Definition at line 149 of file TPhoton.h.

References TPhoton::fNorm.

00149 {return fNorm;}

double TPhoton::GetMaximum (  )  [inline, inherited]

Definition at line 30 of file TPhoton.h.

References TPhoton::fxmax.

00030 {return fxmax;}

double TPhoton::GetMinimum (  )  [inline, inherited]

Definition at line 29 of file TPhoton.h.

References TPhoton::fxmin.

00029 {return fxmin;}

double TPhoton::GetPhC (  )  [inline, inherited]

Definition at line 68 of file TPhoton.h.

References TPhoton::fCosTheta.

00068 {return fCosTheta;}

double TPhoton::GetPhE (  )  [inline, inherited]

Definition at line 67 of file TPhoton.h.

References TPhoton::fX.

00067 {return fX;}

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().

00037                                    {
00038     double k = fBetaI*fCosTheta;
00039     return fLnD*(1 - k*k);
00040   }

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().

00047                                     {
00048     double k = fBetaI*fCosTheta;
00049     return -0.5*fiBetaI*fLnD_n*(1 - k*k);
00050   }

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.

00057                                      {
00058     double k = fBetaI*fCosTheta;
00059     return fiBetaI*fLnD_n2*(1 - k);
00060   }

double TPhotonS::GetX (  )  [inline]

Definition at line 151 of file TPhoton.h.

References TPhoton::fX.

00151 {return fX;}

double TPhotonS::GetXNorm (  )  [inline]

Definition at line 150 of file TPhoton.h.

References exp(), fP2, fP3, and TPhoton::fX.

00150 {return fP2*exp(fP3*fX);}

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

Definition at line 47 of file TPhoton.C.

References TPhoton::fBetaI, TPhoton::fLnD, TPhoton::fNorm, TPhoton::fP0, TPhoton::fP1, fP2, fP3, TRadGlobal::Get_BetaI(), TRadGlobal::Get_LnD(), and gGlobal.

00047                                                             {
00048   // Initializing photons in final state 
00049   // by distribution 1/x
00050   fP0 = delta;
00051   fP1 = 2/beta;
00052   fP2 = pow(2/beta*pow(delta,-beta/2),4);
00053   fP3 = 1.-beta/2;
00054   fNorm = pow(pow(delta,beta/2),4);
00055   fBetaI = gGlobal->Get_BetaI();
00056   fLnD   = gGlobal->Get_LnD();
00057 }

void TPhotonS::Init (  )  [virtual]

Reimplemented from TPhoton.

Definition at line 39 of file TPhoton.C.

References TPhoton::fBetaI, TPhoton::fLnD, TRadGlobal::Get_Beta(), TRadGlobal::Get_BetaI(), TRadGlobal::Get_LnD(), TRadGlobal::Get_XMin(), and gGlobal.

00039                    {
00040   // Initializing photons in final state 
00041   // by distribution 1/x
00042   Init(gGlobal->Get_XMin(), gGlobal->Get_Beta());
00043   fBetaI = gGlobal->Get_BetaI();
00044   fLnD   = gGlobal->Get_LnD();
00045 }

void TPhoton::SetCosTheta ( const double &  x  )  [inline, inherited]

Definition at line 72 of file TPhoton.h.

References TPhoton::fCosTheta.

Referenced by TEvent::MakeEvent().

00072 {fCosTheta = x;}

void TPhoton::SetEnergy ( const double &  x  )  [inline, inherited]

Definition at line 73 of file TPhoton.h.

References TPhoton::fX.

Referenced by TEvent::MakeEvent().

00073 {fX = x;}


Member Data Documentation

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(), TPhotonD::Init(), 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(), TPhotonD::Init(), 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 TPhotonD::GetEnergy(), TPhotonD::GetENorm(), GetENorm(), TPhotonF::GetENorm(), TPhotonI::GetENorm(), TPhotonD::Init(), Init(), TPhotonF::Init(), and TPhotonI::Init().

double TPhoton::fP0 [protected, inherited]

Definition at line 10 of file TPhoton.h.

Referenced by TPhotonD::GetEnergy(), GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), TPhotonD::Init(), Init(), TPhotonF::Init(), and TPhotonI::Init().

double TPhoton::fP1 [protected, inherited]

Definition at line 11 of file TPhoton.h.

Referenced by TPhotonD::GetEnergy(), GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), TPhotonD::Init(), Init(), TPhotonF::Init(), and TPhotonI::Init().

double TPhotonS::fP2 [protected]

Reimplemented from TPhoton.

Definition at line 127 of file TPhoton.h.

Referenced by GetXNorm(), and Init().

double TPhotonS::fP3 [protected]

Reimplemented from TPhoton.

Definition at line 127 of file TPhoton.h.

Referenced by GetXNorm(), and Init().

double TPhoton::fX [protected, inherited]

Definition at line 16 of file TPhoton.h.

Referenced by TPhotonD::GetEnergy(), GetEnergy(), TPhotonF::GetEnergy(), TPhotonI::GetEnergy(), TPhotonF::GetENorm(), TPhotonI::GetENorm(), TPhoton::GetPhE(), GetX(), GetXNorm(), and TPhoton::SetEnergy().

double TPhoton::fxmax [protected, inherited]

Definition at line 15 of file TPhoton.h.

Referenced by TPhoton::GetMaximum().

double TPhoton::fxmin [protected, inherited]

Definition at line 14 of file TPhoton.h.

Referenced by TPhoton::GetMinimum().


Generated on Tue Nov 29 23:36:08 2016 for BOSS_7.0.2 by  doxygen 1.4.7