BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEventHeader Class Reference

#include <BesEventHeader.h>

+ Inheritance diagram for BesEventHeader:

Public Member Functions

 BesEventHeader ()
 
virtual ~BesEventHeader ()
 
virtual void SetEventHeaderGeneral (Long64_t run, Long64_t event, Int_t time1, Int_t time2)
 
virtual void SetEventTrig (Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector)
 
virtual void SetEventMC (Bool_t mc)
 
virtual void SetEventEvTime (Double_t time, Int_t status, Double_t quality)
 
virtual void SetEventMdc (Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz)
 
virtual void SetEventTof (Double_t t)
 
virtual void SetEventEmc (Double_t e)
 
void PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const
 
Long64_t GetRunNumber ()
 
Long64_t GetEventNumber ()
 
Bool_t GetEventMC ()
 
Int_t GetTimeType ()
 
vector< Int_t > & GetTrigChannelVector ()
 
vector< Int_t > & GetTrigConditionVector ()
 
Int_t GetEventYear ()
 
Int_t GetEventMonth ()
 
Int_t GetEventDay ()
 
Int_t GetEventHour ()
 
Int_t GetEventMin ()
 
Int_t GetEventSec ()
 
Double_t GetEvTime ()
 
Int_t GetEvTimeStatus ()
 
Double_t GetEvTimeQuality ()
 
virtual Float_t GetP ()
 
virtual Float_t GetPt ()
 
virtual Float_t GetPx ()
 
virtual Float_t GetPy ()
 
virtual Float_t GetPz ()
 
virtual Float_t GetT ()
 
virtual Float_t GetE ()
 
 BesEventHeader ()
 
virtual ~BesEventHeader ()
 
virtual void SetEventHeaderGeneral (Long64_t run, Long64_t event, Int_t time1, Int_t time2)
 
virtual void SetEventTrig (Int_t timeType, vector< Int_t > &trigConditionVector, vector< Int_t > &trigChannelVector)
 
virtual void SetEventMC (Bool_t mc)
 
virtual void SetEventEvTime (Double_t time, Int_t status, Double_t quality)
 
virtual void SetEventMdc (Double_t p, Double_t pt, Double_t px, Double_t py, Double_t pz)
 
virtual void SetEventTof (Double_t t)
 
virtual void SetEventEmc (Double_t e)
 
void PrintWord (TString &word, Int_t nbits, Int_t trigger, Int_t trigger2=0) const
 
Long64_t GetRunNumber ()
 
Long64_t GetEventNumber ()
 
Bool_t GetEventMC ()
 
Int_t GetTimeType ()
 
vector< Int_t > & GetTrigChannelVector ()
 
vector< Int_t > & GetTrigConditionVector ()
 
Int_t GetEventYear ()
 
Int_t GetEventMonth ()
 
Int_t GetEventDay ()
 
Int_t GetEventHour ()
 
Int_t GetEventMin ()
 
Int_t GetEventSec ()
 
Double_t GetEvTime ()
 
Int_t GetEvTimeStatus ()
 
Double_t GetEvTimeQuality ()
 
virtual Float_t GetP ()
 
virtual Float_t GetPt ()
 
virtual Float_t GetPx ()
 
virtual Float_t GetPy ()
 
virtual Float_t GetPz ()
 
virtual Float_t GetT ()
 
virtual Float_t GetE ()
 

Detailed Description

Constructor & Destructor Documentation

◆ BesEventHeader() [1/2]

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader() [1/2]

BesEventHeader::~BesEventHeader ( )
virtual

Definition at line 50 of file BesEventHeader.cxx.

50 {
51 //
52 // BesEventHeader default destructor
53 if ( gDebug ) cout << "BesEventHeader dtor called" << endl;
54
55}

◆ BesEventHeader() [2/2]

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader() [2/2]

virtual BesEventHeader::~BesEventHeader ( )
virtual

Member Function Documentation

◆ GetE() [1/2]

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 86 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

86{ return fE; }

◆ GetE() [2/2]

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 86 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

86{ return fE; }

◆ GetEventDay() [1/2]

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 69 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

69{ return fDay; }

Referenced by BesEvent::GetDay().

◆ GetEventDay() [2/2]

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 69 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

69{ return fDay; }

◆ GetEventHour() [1/2]

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 70 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

70{ return fHour;}

Referenced by BesEvent::GetHour().

◆ GetEventHour() [2/2]

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 70 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

70{ return fHour;}

◆ GetEventMC() [1/2]

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 61 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

61{ return fMC; }

Referenced by BesEvent::GetMC().

◆ GetEventMC() [2/2]

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 61 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

61{ return fMC; }

◆ GetEventMin() [1/2]

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 71 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

71{ return fMin;}

Referenced by BesEvent::GetMin().

◆ GetEventMin() [2/2]

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 71 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

71{ return fMin;}

◆ GetEventMonth() [1/2]

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 68 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

68{ return fMonth; }

Referenced by BesEvent::GetMonth().

◆ GetEventMonth() [2/2]

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 68 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

68{ return fMonth; }

◆ GetEventNumber() [1/2]

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 60 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

60{ return fEvent; }

Referenced by BesEvent::GetEvent().

◆ GetEventNumber() [2/2]

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 60 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

60{ return fEvent; }

◆ GetEventSec() [1/2]

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 72 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

72{ return fSec;}

Referenced by BesEvent::GetSec().

◆ GetEventSec() [2/2]

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 72 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

72{ return fSec;}

◆ GetEventYear() [1/2]

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 67 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

67{ return fYear; }

Referenced by BesEvent::GetYear().

◆ GetEventYear() [2/2]

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 67 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

67{ return fYear; }

◆ GetEvTime() [1/2]

Double_t BesEventHeader::GetEvTime ( )
inline

◆ GetEvTime() [2/2]

Double_t BesEventHeader::GetEvTime ( )
inline

Definition at line 74 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

74{ return fEvTime; }

◆ GetEvTimeQuality() [1/2]

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 76 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

76{ return fEvTimeQuality; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeQuality() [2/2]

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 76 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

76{ return fEvTimeQuality; }

◆ GetEvTimeStatus() [1/2]

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 75 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

75{ return fEvTimeStatus; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeStatus() [2/2]

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 75 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

75{ return fEvTimeStatus; }

◆ GetP() [1/2]

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 78 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

78{ return fP; }

◆ GetP() [2/2]

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 78 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

78{ return fP; }

◆ GetPt() [1/2]

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 79 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

79{ return fPt; }

◆ GetPt() [2/2]

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 79 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

79{ return fPt; }

◆ GetPx() [1/2]

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 80 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

80{ return fPx; }

◆ GetPx() [2/2]

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 80 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

80{ return fPx; }

◆ GetPy() [1/2]

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 81 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

81{ return fPy; }

◆ GetPy() [2/2]

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 81 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

81{ return fPy; }

◆ GetPz() [1/2]

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 82 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

82{ return fPz; }

◆ GetPz() [2/2]

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 82 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

82{ return fPz; }

◆ GetRunNumber() [1/2]

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 59 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

59{ return fRun; }

Referenced by BesEvent::GetRun().

◆ GetRunNumber() [2/2]

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 59 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

59{ return fRun; }

◆ GetT() [1/2]

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 84 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

84{ return fT; }

◆ GetT() [2/2]

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 84 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

84{ return fT; }

◆ GetTimeType() [1/2]

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 63 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

63{ return fTimeType; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTimeType() [2/2]

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 63 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

63{ return fTimeType; }

◆ GetTrigChannelVector() [1/2]

vector< Int_t > & BesEventHeader::GetTrigChannelVector ( )
inline

Definition at line 64 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

64{ return fTrigChannelVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigChannelVector() [2/2]

vector< Int_t > & BesEventHeader::GetTrigChannelVector ( )
inline

Definition at line 64 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

64{ return fTrigChannelVector; }

◆ GetTrigConditionVector() [1/2]

vector< Int_t > & BesEventHeader::GetTrigConditionVector ( )
inline

Definition at line 65 of file EventDisplay/BesVisLib/BesVisLib-00-04-04/BesVisLib/BesEventHeader.h.

65{ return fTrigConditionVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigConditionVector() [2/2]

vector< Int_t > & BesEventHeader::GetTrigConditionVector ( )
inline

Definition at line 65 of file InstallArea/include/BesVisLib/BesVisLib/BesEventHeader.h.

65{ return fTrigConditionVector; }

◆ PrintWord() [1/2]

void BesEventHeader::PrintWord ( TString &  word,
Int_t  nbits,
Int_t  trigger,
Int_t  trigger2 = 0 
) const

Definition at line 158 of file BesEventHeader.cxx.

158 {
159 Int_t j;
160 if (trigger!=0){
161 for (j=0;j<nbits;j++){
162 if ((trigger>>j)&0x1) word+=Form(" %.2d",j+1);
163 }
164 }
165 if (trigger2!=0){
166 for (j=0;j<nbits;j++){
167 if ((trigger2>>j)&0x1) word+=Form(" %.2d",j+17);
168 }
169 }
170}

◆ PrintWord() [2/2]

void BesEventHeader::PrintWord ( TString &  word,
Int_t  nbits,
Int_t  trigger,
Int_t  trigger2 = 0 
) const

◆ SetEventEmc() [1/2]

void BesEventHeader::SetEventEmc ( Double_t  e)
virtual

Definition at line 152 of file BesEventHeader.cxx.

153{
154 fE = e;
155}

Referenced by BesEvent::SetEvent().

◆ SetEventEmc() [2/2]

virtual void BesEventHeader::SetEventEmc ( Double_t  e)
virtual

◆ SetEventEvTime() [1/2]

void BesEventHeader::SetEventEvTime ( Double_t  time,
Int_t  status,
Double_t  quality 
)
virtual

Definition at line 125 of file BesEventHeader.cxx.

126{
127 fEvTime = time;
128 fEvTimeStatus = status;
129 fEvTimeQuality = quality;
130}
Double_t time

Referenced by BesEvent::SetEvent().

◆ SetEventEvTime() [2/2]

virtual void BesEventHeader::SetEventEvTime ( Double_t  time,
Int_t  status,
Double_t  quality 
)
virtual

◆ SetEventHeaderGeneral() [1/2]

void BesEventHeader::SetEventHeaderGeneral ( Long64_t  run,
Long64_t  event,
Int_t  time1,
Int_t  time2 
)
virtual

Definition at line 84 of file BesEventHeader.cxx.

84 {
85 //
86 // Set general event header
87 fRun = run;
88 fEvent = event;
89
90
91 // modify date
92 if (time1 > 0) {
93 int a,b;
94 a=time1%100;
95 fDay=a;
96
97 b=(time1-a)%10000;
98 fMonth=b/100;
99
100 fYear=(time1-a-b)/10000;
101 }
102
103 //modify time
104 if (time2 > 0) {
105 int c,d;
106 c=time2%100;
107 fSec=c;
108
109 d=(time2-c)%10000;
110 fMin=d/100;
111
112 fHour=(time2-c-d)/10000;
113 }
114}

Referenced by BesEvent::SetEvent().

◆ SetEventHeaderGeneral() [2/2]

virtual void BesEventHeader::SetEventHeaderGeneral ( Long64_t  run,
Long64_t  event,
Int_t  time1,
Int_t  time2 
)
virtual

◆ SetEventMC() [1/2]

void BesEventHeader::SetEventMC ( Bool_t  mc)
virtual

Definition at line 118 of file BesEventHeader.cxx.

119{
120 fMC = mc;
121}

Referenced by BesEvent::SetEvent().

◆ SetEventMC() [2/2]

virtual void BesEventHeader::SetEventMC ( Bool_t  mc)
virtual

◆ SetEventMdc() [1/2]

void BesEventHeader::SetEventMdc ( Double_t  p,
Double_t  pt,
Double_t  px,
Double_t  py,
Double_t  pz 
)
virtual

Definition at line 134 of file BesEventHeader.cxx.

135{
136 fP = p;
137 fPt = pt;
138 fPx = px;
139 fPy = py;
140 fPz = pz;
141}

Referenced by BesEvent::SetEvent().

◆ SetEventMdc() [2/2]

virtual void BesEventHeader::SetEventMdc ( Double_t  p,
Double_t  pt,
Double_t  px,
Double_t  py,
Double_t  pz 
)
virtual

◆ SetEventTof() [1/2]

void BesEventHeader::SetEventTof ( Double_t  t)
virtual

Definition at line 145 of file BesEventHeader.cxx.

146{
147 fT = t;
148}
int t()
Definition: t.c:1

◆ SetEventTof() [2/2]

virtual void BesEventHeader::SetEventTof ( Double_t  t)
virtual

◆ SetEventTrig() [1/2]

void BesEventHeader::SetEventTrig ( Int_t  timeType,
vector< Int_t > &  trigConditionVector,
vector< Int_t > &  trigChannelVector 
)
virtual

Definition at line 58 of file BesEventHeader.cxx.

60 {
61
62 fTimeType = timeType;
63 fTrigChannelVector.clear();
64 fTrigConditionVector.clear();
65 fTrigChannelVector = trigChannelVector;
66 fTrigConditionVector = trigConditionVector;
67 //************************************
68 cout << "BesEventHeader::time Type: " << timeType << endl;
69 vector<Int_t>::iterator pTrigVector;
70 for (pTrigVector = trigConditionVector.begin();
71 pTrigVector != trigConditionVector.end();
72 pTrigVector++){
73 cout << "BesEventHeader::trigCondition: " << *pTrigVector << endl;
74 }
75 for (pTrigVector = trigChannelVector.begin();
76 pTrigVector != trigChannelVector.end();
77 pTrigVector++){
78 cout << "BesEventHeader::trigChannel: " << *pTrigVector << endl;
79 }
80 //************************************
81}

Referenced by BesEvent::SetEvent().

◆ SetEventTrig() [2/2]

virtual void BesEventHeader::SetEventTrig ( Int_t  timeType,
vector< Int_t > &  trigConditionVector,
vector< Int_t > &  trigChannelVector 
)
virtual

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