CGEM BOSS 6.6.5.i
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 119 of file TEvent.h.

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

◆ dDeltaPhi()

double TEvent::dDeltaPhi ( )
inline

Definition at line 110 of file TEvent.h.

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

◆ dDeltaTheta()

double TEvent::dDeltaTheta ( )
inline

Definition at line 101 of file TEvent.h.

101 {
102 if ( !fIsSmear ) return 0;
103 double sigma = 0;
104 if(gRandom->Rndm()<fdPar[0])
105 sigma = fdPar[1];
106 else
107 sigma = fdPar[2];
108 return gRandom->Gaus(0,sigma);
109 }

◆ Get4Vector()

TLorentzVector TEvent::Get4Vector ( unsigned int i)
inline

Definition at line 71 of file TEvent.h.

71 {
72 return TLorentzVector(fp[i]*fsth[i]*fcph[i],fp[i]*fsth[i]*fsph[i],fp[i]*fcth[i],fen[i]);
73 }
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 74 of file TEvent.h.

74 {
75 return fen[i]*fen[Ng1] - fp[i]*fp[Ng1]*(fsth[i]*fsth[Ng1]*(fcph[i]*fcph[Ng1]+fsph[i]*fsph[Ng1])+fcth[i]*fcth[Ng1]);
76 }
#define Ng1
Definition TEvent.h:11

◆ GetCosPsi()

double TEvent::GetCosPsi ( )
inline

Definition at line 67 of file TEvent.h.

67{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 56 of file TEvent.h.

57 {
58 p0 = fp[Ne]; t0 = fth[Ne]; ph0 = fph[Ne];
59 p1 = fp[Np]; t1 = fth[Np]; ph1 = fph[Np];
60 }
#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

Referenced by TVCrossPart::GetEvent(), and TVCrossPart::GetEvent().

◆ GetEvent() [2/2]

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

◆ GetPhi()

double TEvent::GetPhi ( )
inline

Definition at line 61 of file TEvent.h.

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

◆ GetPPar()

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

Definition at line 68 of file TEvent.h.

68 {
69 e = fen[i]; p = fp[i]; c = fcth[i];
70 }

◆ GetSumComponent()

double TEvent::GetSumComponent ( unsigned int i)
inline

Definition at line 77 of file TEvent.h.

77 {
78 switch(i){
79 case 0:
80 return fen[Ne] + fen[Np] + fen[Ng1];
81 break;
82 case 1:
83 return fp[Ne]*fsth[Ne]*fcph[Ne] + fp[Np]*fsth[Np]*fcph[Np] + fp[Ng1]*fsth[Ng1]*fcph[Ng1];
84 break;
85 case 2:
86 return fp[Ne]*fsth[Ne]*fsph[Ne] + fp[Np]*fsth[Np]*fsph[Np] + fp[Ng1]*fsth[Ng1]*fsph[Ng1];
87 break;
88 case 3:
89 return fp[Ne]*fcth[Ne] + fp[Np]*fcth[Np] + fp[Ng1]*fcth[Ng1];
90 break;
91 }
92 return 0;
93 }

◆ GetY()

double TEvent::GetY ( unsigned int i)
inline

Definition at line 62 of file TEvent.h.

62{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 ( )

Referenced by TVCrossPart::PrintEvent().

◆ PrintSelectStat()

void TEvent::PrintSelectStat ( )
inline

Definition at line 64 of file TEvent.h.

64 {
65 for(unsigned int i=0; i<fNSelStat; i++)std::cout<<"Cut #"<<i<<" "<<fSelStat[i]<<std::endl;
66 }
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 96 of file TEvent.h.

96 {
97 fIsSmear = true;
98 for(int i=0; i<9; i++) fdPar[i] = p[i];
99 }

◆ 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: