BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TEvent Class Reference

#include <TEvent.h>

Public Member Functions

 TEvent ()
virtual ~TEvent ()
void Init ()
bool MakeEvent (const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &)
bool MakeEvent (const double &, const double &, const double &)
bool MakeEventgg (const double &, const double &, const double &)
bool MakeEventN (const double &, const double &)
bool MakeEvent (const double &, const double &, const double &, const double &, const double &)
bool MakeEvent (const double &)
bool MakeEvent (const double &, TPhoton *, const unsigned int)
bool Select ()
bool Selectgg ()
void GetEvent (double &p0, double &t0, double &ph0, double &p1, double &t1, double &ph1)
double GetPhi ()
double GetY (unsigned int i)
void Print ()
void PrintSelectStat ()
double GetCosPsi ()
void GetPPar (unsigned int i, double &e, double &p, double &c)
TLorentzVector Get4Vector (unsigned int i)
double GetChiPrime (unsigned int i)
double GetSumComponent (unsigned int i)
void Swap ()
void CosPrint ()
void SetdPar (double *p)
double dDeltaTheta ()
double dDeltaPhi ()
double dATheta ()
void GetEvent (double *, int &)

Protected Attributes

double fen [3]
double fp [3]
double fY [3]
double fth [3]
double fcth [3]
double fsth [3]
double fph [3]
double fcph [3]
double fsph [3]
bool fIsSmear
double fdPar [9]
double fxg [4]
double fCosPsi
unsigned int fNSelStat
unsigned int * fSelStat

Detailed Description

Definition at line 13 of file TEvent.h.

Constructor & Destructor Documentation

◆ TEvent()

TEvent::TEvent ( )

◆ ~TEvent()

virtual TEvent::~TEvent ( )
virtual

Member Function Documentation

◆ CosPrint()

void TEvent::CosPrint ( )

◆ dATheta()

double TEvent::dATheta ( )
inline

Definition at line 124 of file TEvent.h.

124 {
125 if ( !fIsSmear ) return 0;
126 double sigma = 0;
127 if ( gRandom->Rndm() < fdPar[6] ) sigma = fdPar[7];
128 else sigma = fdPar[8];
129 return gRandom->Gaus( 0, sigma );
130 }
double fdPar[9]
Definition TEvent.h:28
bool fIsSmear
Definition TEvent.h:27

◆ dDeltaPhi()

double TEvent::dDeltaPhi ( )
inline

Definition at line 117 of file TEvent.h.

117 {
118 if ( !fIsSmear ) return 0;
119 double sigma = 0;
120 if ( gRandom->Rndm() < fdPar[3] ) sigma = fdPar[4];
121 else sigma = fdPar[5];
122 return gRandom->Gaus( 0, sigma );
123 }

◆ dDeltaTheta()

double TEvent::dDeltaTheta ( )
inline

Definition at line 110 of file TEvent.h.

110 {
111 if ( !fIsSmear ) return 0;
112 double sigma = 0;
113 if ( gRandom->Rndm() < fdPar[0] ) sigma = fdPar[1];
114 else sigma = fdPar[2];
115 return gRandom->Gaus( 0, sigma );
116 }

◆ Get4Vector()

TLorentzVector TEvent::Get4Vector ( unsigned int i)
inline

Definition at line 77 of file TEvent.h.

77 {
78 return TLorentzVector( fp[i] * fsth[i] * fcph[i], fp[i] * fsth[i] * fsph[i],
79 fp[i] * fcth[i], fen[i] );
80 }
double fsph[3]
Definition TEvent.h:26
double fcth[3]
Definition TEvent.h:21
double fp[3]
Definition TEvent.h:16
double fen[3]
Definition TEvent.h:15
double fcph[3]
Definition TEvent.h:25
double fsth[3]
Definition TEvent.h:22

◆ GetChiPrime()

double TEvent::GetChiPrime ( unsigned int i)
inline

Definition at line 81 of file TEvent.h.

81 {
82 return fen[i] * fen[Ng1] -
83 fp[i] * fp[Ng1] *
84 ( fsth[i] * fsth[Ng1] * ( fcph[i] * fcph[Ng1] + fsph[i] * fsph[Ng1] ) +
85 fcth[i] * fcth[Ng1] );
86 }
#define Ng1
Definition TEvent.h:11

◆ GetCosPsi()

double TEvent::GetCosPsi ( )
inline

Definition at line 71 of file TEvent.h.

71{ return fCosPsi; };
double fCosPsi
Definition TEvent.h:30

◆ GetEvent() [1/2]

void TEvent::GetEvent ( double & p0,
double & t0,
double & ph0,
double & p1,
double & t1,
double & ph1 )
inline

Definition at line 55 of file TEvent.h.

56 {
57 p0 = fp[Ne];
58 t0 = fth[Ne];
59 ph0 = fph[Ne];
60 p1 = fp[Np];
61 t1 = fth[Np];
62 ph1 = fph[Np];
63 }
double p1[4]
int ph0
#define Np
Definition TEvent.h:10
#define Ne
Definition TEvent.h:9
double fph[3]
Definition TEvent.h:24
double fth[3]
Definition TEvent.h:20

◆ GetEvent() [2/2]

void TEvent::GetEvent ( double * ,
int &  )

◆ GetPhi()

double TEvent::GetPhi ( )
inline

Definition at line 64 of file TEvent.h.

64{ return gRandom->Rndm() * 2 * gConst->Pi(); }
TConstants * gConst
Definition Mcgpj.cxx:49
static double Pi()
Definition TConstants.h:43

◆ GetPPar()

void TEvent::GetPPar ( unsigned int i,
double & e,
double & p,
double & c )
inline

Definition at line 72 of file TEvent.h.

72 {
73 e = fen[i];
74 p = fp[i];
75 c = fcth[i];
76 }

◆ GetSumComponent()

double TEvent::GetSumComponent ( unsigned int i)
inline

Definition at line 87 of file TEvent.h.

87 {
88 switch ( i )
89 {
90 case 0: return fen[Ne] + fen[Np] + fen[Ng1]; break;
91 case 1:
92 return fp[Ne] * fsth[Ne] * fcph[Ne] + fp[Np] * fsth[Np] * fcph[Np] +
93 fp[Ng1] * fsth[Ng1] * fcph[Ng1];
94 break;
95 case 2:
96 return fp[Ne] * fsth[Ne] * fsph[Ne] + fp[Np] * fsth[Np] * fsph[Np] +
97 fp[Ng1] * fsth[Ng1] * fsph[Ng1];
98 break;
99 case 3: return fp[Ne] * fcth[Ne] + fp[Np] * fcth[Np] + fp[Ng1] * fcth[Ng1]; break;
100 }
101 return 0;
102 }

◆ GetY()

double TEvent::GetY ( unsigned int i)
inline

Definition at line 65 of file TEvent.h.

65{ return fY[i]; }
double fY[3]
Definition TEvent.h:17

◆ Init()

void TEvent::Init ( )

◆ MakeEvent() [1/5]

bool TEvent::MakeEvent ( const double & )

◆ MakeEvent() [2/5]

bool TEvent::MakeEvent ( const double & ,
const double & ,
const double &  )

◆ MakeEvent() [3/5]

bool TEvent::MakeEvent ( const double & ,
const double & ,
const double & ,
const double & ,
const double &  )

◆ MakeEvent() [4/5]

bool TEvent::MakeEvent ( const double & ,
const double & ,
const double & ,
const double & ,
const double & ,
const double & ,
const double & ,
const double &  )

◆ MakeEvent() [5/5]

bool TEvent::MakeEvent ( const double & ,
TPhoton * ,
const unsigned int  )

◆ MakeEventgg()

bool TEvent::MakeEventgg ( const double & ,
const double & ,
const double &  )

◆ MakeEventN()

bool TEvent::MakeEventN ( const double & ,
const double &  )

◆ Print()

void TEvent::Print ( )

◆ PrintSelectStat()

void TEvent::PrintSelectStat ( )
inline

Definition at line 67 of file TEvent.h.

67 {
68 for ( unsigned int i = 0; i < fNSelStat; i++ )
69 std::cout << "Cut #" << i << " " << fSelStat[i] << std::endl;
70 }
unsigned int fNSelStat
Definition TEvent.h:31
unsigned int * fSelStat
Definition TEvent.h:32

◆ Select()

bool TEvent::Select ( )

◆ Selectgg()

bool TEvent::Selectgg ( )

◆ SetdPar()

void TEvent::SetdPar ( double * p)
inline

Definition at line 105 of file TEvent.h.

105 {
106 fIsSmear = true;
107 for ( int i = 0; i < 9; i++ ) fdPar[i] = p[i];
108 }

◆ Swap()

void TEvent::Swap ( )

Member Data Documentation

◆ fCosPsi

double TEvent::fCosPsi
protected

Definition at line 30 of file TEvent.h.

Referenced by GetCosPsi().

◆ fcph

double TEvent::fcph[3]
protected

Definition at line 25 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), and GetSumComponent().

◆ fcth

double TEvent::fcth[3]
protected

Definition at line 21 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), GetPPar(), and GetSumComponent().

◆ fdPar

double TEvent::fdPar[9]
protected

Definition at line 28 of file TEvent.h.

Referenced by dATheta(), dDeltaPhi(), dDeltaTheta(), and SetdPar().

◆ fen

double TEvent::fen[3]
protected

Definition at line 15 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), GetPPar(), and GetSumComponent().

◆ fIsSmear

bool TEvent::fIsSmear
protected

Definition at line 27 of file TEvent.h.

Referenced by dATheta(), dDeltaPhi(), dDeltaTheta(), and SetdPar().

◆ fNSelStat

unsigned int TEvent::fNSelStat
protected

Definition at line 31 of file TEvent.h.

Referenced by PrintSelectStat().

◆ fp

double TEvent::fp[3]
protected

Definition at line 16 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), GetEvent(), GetPPar(), and GetSumComponent().

◆ fph

double TEvent::fph[3]
protected

Definition at line 24 of file TEvent.h.

Referenced by GetEvent().

◆ fSelStat

unsigned int* TEvent::fSelStat
protected

Definition at line 32 of file TEvent.h.

Referenced by PrintSelectStat().

◆ fsph

double TEvent::fsph[3]
protected

Definition at line 26 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), and GetSumComponent().

◆ fsth

double TEvent::fsth[3]
protected

Definition at line 22 of file TEvent.h.

Referenced by Get4Vector(), GetChiPrime(), and GetSumComponent().

◆ fth

double TEvent::fth[3]
protected

Definition at line 20 of file TEvent.h.

Referenced by GetEvent().

◆ fxg

double TEvent::fxg[4]
protected

Definition at line 29 of file TEvent.h.

◆ fY

double TEvent::fY[3]
protected

Definition at line 17 of file TEvent.h.

Referenced by GetY().


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