BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TEvtHeader.h
Go to the documentation of this file.
1#ifndef ROOT_TEvtHeader_H
2#define ROOT_TEvtHeader_H 1
3
4#include "TObject.h"
5#include "TObjArray.h"
6
7
8class TEvtHeader : public TObject {
9
10public:
11
13 virtual ~TEvtHeader();
14
15 void initialize( Int_t Id, Int_t runId, UInt_t evenTag);
16
17 void Clear(Option_t *option="");
18
19 void Print(Option_t *option="") const;
20
21
22 /// Access the TEvtHeader number
23 inline Int_t getEventId() { return m_eventId; };
24
25 /// Access the run number
26 inline Int_t getRunId() { return m_runId; };
27
28 inline UInt_t time() const { return m_time; }
29
30 inline void setTime(int value) { m_time = value; }
31
32 inline UInt_t getEventTag() { return m_eventTag;}
33
34 inline void setFlag1(int value) { m_flag1 = value; }
35 inline void setFlag2(int value) { m_flag2 = value; }
36
37 inline UInt_t getFlag1() { return m_flag1; }
38 inline UInt_t getFlag2() { return m_flag2; }
39
40private:
41
42 /// Event Number
43 Int_t m_eventId;
44
45 /// Run number
46 Int_t m_runId;
47
48 UInt_t m_time;
49
50 //eventTag
51 UInt_t m_eventTag;
52
53 // flags
54 UInt_t m_flag1;
55 UInt_t m_flag2;
56
57 ClassDef(TEvtHeader,7)
58
59};
60
61#endif
Int_t getEventId()
Access the TEvtHeader number.
Definition: TEvtHeader.h:23
void setFlag2(int value)
Definition: TEvtHeader.h:35
void initialize(Int_t Id, Int_t runId, UInt_t evenTag)
Definition: TEvtHeader.cxx:23
UInt_t time() const
Definition: TEvtHeader.h:28
void setTime(int value)
Definition: TEvtHeader.h:30
virtual ~TEvtHeader()
Definition: TEvtHeader.cxx:18
UInt_t getEventTag()
Definition: TEvtHeader.h:32
void Print(Option_t *option="") const
Definition: TEvtHeader.cxx:41
Int_t getRunId()
Access the run number.
Definition: TEvtHeader.h:26
UInt_t getFlag1()
Definition: TEvtHeader.h:37
UInt_t getFlag2()
Definition: TEvtHeader.h:38
void Clear(Option_t *option="")
Definition: TEvtHeader.cxx:30
void setFlag1(int value)
Definition: TEvtHeader.h:34