BOSS 6.6.4.p03
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 ()
 

Detailed Description

Definition at line 14 of file BesEventHeader.h.

Constructor & Destructor Documentation

◆ BesEventHeader()

BesEventHeader::BesEventHeader ( )

◆ ~BesEventHeader()

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}

Member Function Documentation

◆ GetE()

virtual Float_t BesEventHeader::GetE ( )
inlinevirtual

Definition at line 86 of file BesEventHeader.h.

86{ return fE; }

◆ GetEventDay()

Int_t BesEventHeader::GetEventDay ( )
inline

Definition at line 69 of file BesEventHeader.h.

69{ return fDay; }

Referenced by BesEvent::GetDay().

◆ GetEventHour()

Int_t BesEventHeader::GetEventHour ( )
inline

Definition at line 70 of file BesEventHeader.h.

70{ return fHour;}

Referenced by BesEvent::GetHour().

◆ GetEventMC()

Bool_t BesEventHeader::GetEventMC ( )
inline

Definition at line 61 of file BesEventHeader.h.

61{ return fMC; }

Referenced by BesEvent::GetMC().

◆ GetEventMin()

Int_t BesEventHeader::GetEventMin ( )
inline

Definition at line 71 of file BesEventHeader.h.

71{ return fMin;}

Referenced by BesEvent::GetMin().

◆ GetEventMonth()

Int_t BesEventHeader::GetEventMonth ( )
inline

Definition at line 68 of file BesEventHeader.h.

68{ return fMonth; }

Referenced by BesEvent::GetMonth().

◆ GetEventNumber()

Long64_t BesEventHeader::GetEventNumber ( )
inline

Definition at line 60 of file BesEventHeader.h.

60{ return fEvent; }

Referenced by BesEvent::GetEvent().

◆ GetEventSec()

Int_t BesEventHeader::GetEventSec ( )
inline

Definition at line 72 of file BesEventHeader.h.

72{ return fSec;}

Referenced by BesEvent::GetSec().

◆ GetEventYear()

Int_t BesEventHeader::GetEventYear ( )
inline

Definition at line 67 of file BesEventHeader.h.

67{ return fYear; }

Referenced by BesEvent::GetYear().

◆ GetEvTime()

Double_t BesEventHeader::GetEvTime ( )
inline

Definition at line 74 of file BesEventHeader.h.

74{ return fEvTime; }

Referenced by BesVisDisplay::DrawHeader(), and MdcROOTGeo::SetHits().

◆ GetEvTimeQuality()

Double_t BesEventHeader::GetEvTimeQuality ( )
inline

Definition at line 76 of file BesEventHeader.h.

76{ return fEvTimeQuality; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetEvTimeStatus()

Int_t BesEventHeader::GetEvTimeStatus ( )
inline

Definition at line 75 of file BesEventHeader.h.

75{ return fEvTimeStatus; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetP()

virtual Float_t BesEventHeader::GetP ( )
inlinevirtual

Definition at line 78 of file BesEventHeader.h.

78{ return fP; }

◆ GetPt()

virtual Float_t BesEventHeader::GetPt ( )
inlinevirtual

Definition at line 79 of file BesEventHeader.h.

79{ return fPt; }

◆ GetPx()

virtual Float_t BesEventHeader::GetPx ( )
inlinevirtual

Definition at line 80 of file BesEventHeader.h.

80{ return fPx; }

◆ GetPy()

virtual Float_t BesEventHeader::GetPy ( )
inlinevirtual

Definition at line 81 of file BesEventHeader.h.

81{ return fPy; }

◆ GetPz()

virtual Float_t BesEventHeader::GetPz ( )
inlinevirtual

Definition at line 82 of file BesEventHeader.h.

82{ return fPz; }

◆ GetRunNumber()

Long64_t BesEventHeader::GetRunNumber ( )
inline

Definition at line 59 of file BesEventHeader.h.

59{ return fRun; }

Referenced by BesEvent::GetRun().

◆ GetT()

virtual Float_t BesEventHeader::GetT ( )
inlinevirtual

Definition at line 84 of file BesEventHeader.h.

84{ return fT; }

◆ GetTimeType()

Int_t BesEventHeader::GetTimeType ( )
inline

Definition at line 63 of file BesEventHeader.h.

63{ return fTimeType; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigChannelVector()

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

Definition at line 64 of file BesEventHeader.h.

64{ return fTrigChannelVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ GetTrigConditionVector()

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

Definition at line 65 of file BesEventHeader.h.

65{ return fTrigConditionVector; }

Referenced by BesVisDisplay::DrawHeader().

◆ PrintWord()

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}
short int word(short i, const _T &v)
Definition: bitmanip.h:27

◆ SetEventEmc()

void BesEventHeader::SetEventEmc ( Double_t  e)
virtual

Definition at line 152 of file BesEventHeader.cxx.

153{
154 fE = e;
155}

Referenced by BesEvent::SetEvent().

◆ SetEventEvTime()

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

◆ SetEventHeaderGeneral()

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

◆ SetEventMC()

void BesEventHeader::SetEventMC ( Bool_t  mc)
virtual

Definition at line 118 of file BesEventHeader.cxx.

119{
120 fMC = mc;
121}

Referenced by BesEvent::SetEvent().

◆ SetEventMdc()

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

◆ SetEventTof()

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

◆ SetEventTrig()

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


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