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