BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/EventModel/EventModel-01-05-34/EventModel/EventHeader.h
Go to the documentation of this file.
1#ifndef Event_EVENTHeader_H
2#define Event_EVENTHeader_H
3
4#include <iostream>
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/StreamBuffer.h"
7#include "GaudiKernel/DataObject.h"
8#include "EventModel/EventModel.h"
9
10extern const CLID& CLID_EventHeader;
11
12/** class EventHeader
13* brief Essential header information of the event.
14* It can be identified by "/Event" on the TDS.
15*
16* It contains:
17* - run number
18* - event number
19**/
20
21namespace Event{
22
23class EventHeader : public DataObject {
24
25public:
26
28 : DataObject(), m_event(-1), m_run(-1), m_etsT1(0), m_etsT2(0) {}
29
30 virtual ~EventHeader() {}
31
32 /// Retrieve reference to class definition structure
33 virtual const CLID& clID() const { return EventHeader::classID(); }
34 static const CLID& classID() { return CLID_EventHeader; }
35
36 /// Retrieve event number
37 int eventNumber () const { return m_event; }
38 /// Update event number
39 void setEventNumber (int value) { m_event = value; }
40
41 /// Retrieve run number
42 int runNumber () const { return m_run; }
43 /// Update run number
44 void setRunNumber (int value) { m_run = value; }
45
46 unsigned int time() const { return m_time; }
47
48 void setTime(int value) { m_time = value; }
49
50/// Retrieve EventTag
51 unsigned int eventTag(){return m_EventTag; }
52 /// Update EventTag
53 void setEventTag(unsigned int value){ m_EventTag=value;}
54
55 /// Retrieve flags
56 unsigned int flag1() { return m_flag1; };
57 unsigned int flag2() { return m_flag2; };
58 /// Update flags
59 void setFlag1(unsigned int value) { m_flag1 = value; }
60 void setFlag2(unsigned int value) { m_flag2 = value; }
61
62 /// Retrieve ETS
63 unsigned long etsT1() { return m_etsT1; }
64 unsigned long etsT2() { return m_etsT2; }
65
66 /// Update ETS
67 void setEtsT1(unsigned long value) { m_etsT1 = value; }
68 void setEtsT2(unsigned long value) { m_etsT2 = value; }
69
70private:
71 /// Event number
72 int m_event;
73
74 /// Run number
75 int m_run;
76
77 unsigned int m_time;
78
79 // EventTag
80 unsigned int m_EventTag ;
81
82 // flag1-HV, bit(11):has-MDC-HV, bit(8-10):MDC-HV-status
83 // bit(7):has-TOF-HV, bit(4-6):TOF-HV-status
84 // bit(3):has-MUC-HV, bit(0-2):MUC-HV-status
85 unsigned int m_flag1;
86
87 // flag2
88 unsigned int m_flag2;
89
90 // ETS time
91 unsigned long m_etsT1;
92 unsigned long m_etsT2;
93};
94
95} // namespace Event
96#endif // Event_EVENTHeader_H
97
const CLID & CLID_EventHeader
Definition: EventModel.cxx:196
virtual const CLID & clID() const
Retrieve reference to class definition structure.
void setEventTag(unsigned int value)
Update EventTag.