BOSS 7.0.6
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
40 inline void setEtsT1(unsigned long value) { m_etsT1 = value; }
41 inline void setEtsT2(unsigned long value) { m_etsT2 = value; }
42
43 inline ULong_t getEtsT1() { return m_etsT1; }
44 inline ULong_t getEtsT2() { return m_etsT2; }
45
46private:
47
48 /// Event Number
49 Int_t m_eventId;
50
51 /// Run number
52 Int_t m_runId;
53
54 UInt_t m_time;
55
56 //eventTag
57 UInt_t m_eventTag;
58
59 // flags
60 UInt_t m_flag1;
61 UInt_t m_flag2;
62
63 // ETS
64 ULong_t m_etsT1;
65 ULong_t m_etsT2;
66
67 ClassDef(TEvtHeader,8)
68
69};
70
71#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:24
UInt_t time() const
Definition: TEvtHeader.h:28
ULong_t getEtsT1()
Definition: TEvtHeader.h:43
void setEtsT1(unsigned long value)
Definition: TEvtHeader.h:40
void setTime(int value)
Definition: TEvtHeader.h:30
virtual ~TEvtHeader()
Definition: TEvtHeader.cxx:19
UInt_t getEventTag()
Definition: TEvtHeader.h:32
void Print(Option_t *option="") const
Definition: TEvtHeader.cxx:44
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 setEtsT2(unsigned long value)
Definition: TEvtHeader.h:41
ULong_t getEtsT2()
Definition: TEvtHeader.h:44
void Clear(Option_t *option="")
Definition: TEvtHeader.cxx:31
void setFlag1(int value)
Definition: TEvtHeader.h:34