BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/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
void initialize(Int_t Id, Int_t runId, UInt_t evenTag)
Definition: TEvtHeader.cxx:23
virtual ~TEvtHeader()
Definition: TEvtHeader.cxx:18
void Print(Option_t *option="") const
Definition: TEvtHeader.cxx:41
void Clear(Option_t *option="")
Definition: TEvtHeader.cxx:30