TPhoton Class Reference

#include <TPhoton.h>

Inheritance diagram for TPhoton:

TPhotonD TPhotonF TPhotonI TPhotonS TPhotonFS List of all members.

Public Member Functions

 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)

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

Detailed Description

Definition at line 7 of file TPhoton.h.


Constructor & Destructor Documentation

TPhoton::TPhoton (  )  [inline]

Definition at line 26 of file TPhoton.h.

References Init().

00026 {Init();};

virtual TPhoton::~TPhoton (  )  [inline, virtual]

Definition at line 27 of file TPhoton.h.

00027 {};


Member Function Documentation

virtual double TPhoton::GetCosTheta (  )  [inline, virtual]

Reimplemented in TPhotonFS.

Definition at line 32 of file TPhoton.h.

References exp(), fBetaI, fCosTheta, and 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]

Definition at line 42 of file TPhoton.h.

References exp(), fBetaI, fBt, fCosTheta, and 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]

Definition at line 52 of file TPhoton.h.

References exp(), fBt2, fCosTheta, fiBetaI, and fLnD_n2.

00052                                        {
00053     double d = fBt2*exp(fLnD_n2*gRandom->Rndm());
00054     fCosTheta = (1-d)*fiBetaI;
00055     return fCosTheta;
00056   }

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

Reimplemented in TPhotonI, TPhotonF, TPhotonS, and TPhotonD.

Definition at line 70 of file TPhoton.h.

Referenced by TGGCrossPart::GetValue(), and TEvent::MakeEvent().

00070 {return 0;};

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

Reimplemented in TPhotonI, TPhotonF, TPhotonS, and TPhotonD.

Definition at line 69 of file TPhoton.h.

Referenced by TGGCrossPart::GetValue().

00069 {return 1;};

double TPhoton::GetMaximum (  )  [inline]

Definition at line 30 of file TPhoton.h.

References fxmax.

00030 {return fxmax;}

double TPhoton::GetMinimum (  )  [inline]

Definition at line 29 of file TPhoton.h.

References fxmin.

00029 {return fxmin;}

double TPhoton::GetPhC (  )  [inline]

Definition at line 68 of file TPhoton.h.

References fCosTheta.

00068 {return fCosTheta;}

double TPhoton::GetPhE (  )  [inline]

Definition at line 67 of file TPhoton.h.

References fX.

00067 {return fX;}

static double TPhoton::GetPhi (  )  [inline, static]

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]

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]

Reimplemented in TPhotonFS.

Definition at line 37 of file TPhoton.h.

References fBetaI, fCosTheta, and 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]

Definition at line 47 of file TPhoton.h.

References fBetaI, fCosTheta, fiBetaI, and 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]

Definition at line 57 of file TPhoton.h.

References fBetaI, fCosTheta, fiBetaI, and fLnD_n2.

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

virtual void TPhoton::Init (  )  [inline, virtual]

Reimplemented in TPhotonI, TPhotonF, TPhotonS, and TPhotonD.

Definition at line 28 of file TPhoton.h.

Referenced by TGGCrossPart::Init(), and TPhoton().

00028 {};

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

Definition at line 72 of file TPhoton.h.

References fCosTheta.

Referenced by TEvent::MakeEvent().

00072 {fCosTheta = x;}

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

Definition at line 73 of file TPhoton.h.

References fX.

Referenced by TEvent::MakeEvent().

00073 {fX = x;}


Member Data Documentation

double TPhoton::fBetaI [protected]

Definition at line 19 of file TPhoton.h.

Referenced by GetCosTheta(), GetCosThetaF(), GetThNorm(), GetThNormF(), GetThNormF2(), TPhotonD::Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().

double TPhoton::fBt [protected]

Definition at line 22 of file TPhoton.h.

Referenced by GetCosThetaF(), and TPhotonF::Init().

double TPhoton::fBt2 [protected]

Definition at line 24 of file TPhoton.h.

Referenced by GetCosThetaF2(), and TPhotonF::Init().

double TPhoton::fCosTheta [protected]

Definition at line 17 of file TPhoton.h.

Referenced by TPhotonFS::GetCosTheta(), GetCosTheta(), GetCosThetaF(), GetCosThetaF2(), GetPhC(), GetThNorm(), GetThNormF(), GetThNormF2(), and SetCosTheta().

double TPhoton::fiBetaI [protected]

Definition at line 20 of file TPhoton.h.

Referenced by GetCosThetaF2(), GetThNormF(), GetThNormF2(), and TPhotonF::Init().

double TPhoton::fLnD [protected]

Definition at line 18 of file TPhoton.h.

Referenced by GetCosTheta(), GetThNorm(), TPhotonD::Init(), TPhotonS::Init(), TPhotonF::Init(), and TPhotonI::Init().

double TPhoton::fLnD_n [protected]

Definition at line 21 of file TPhoton.h.

Referenced by GetCosThetaF(), GetThNormF(), and TPhotonF::Init().

double TPhoton::fLnD_n2 [protected]

Definition at line 23 of file TPhoton.h.

Referenced by GetCosThetaF2(), GetThNormF2(), and TPhotonF::Init().

double TPhoton::fNorm [protected]

Definition at line 9 of file TPhoton.h.

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

double TPhoton::fP0 [protected]

Definition at line 10 of file TPhoton.h.

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

double TPhoton::fP1 [protected]

Definition at line 11 of file TPhoton.h.

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

double TPhoton::fP2 [protected]

Reimplemented in TPhotonS.

Definition at line 12 of file TPhoton.h.

double TPhoton::fP3 [protected]

Reimplemented in TPhotonS.

Definition at line 13 of file TPhoton.h.

double TPhoton::fX [protected]

Definition at line 16 of file TPhoton.h.

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

double TPhoton::fxmax [protected]

Definition at line 15 of file TPhoton.h.

Referenced by GetMaximum().

double TPhoton::fxmin [protected]

Definition at line 14 of file TPhoton.h.

Referenced by GetMinimum().


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