BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnEventHeader.cxx
Go to the documentation of this file.
1
#include "
BmnEventHeader.h
"
2
3
// ----- Default constructor -------------------------------------------
4
BmnEventHeader::BmnEventHeader
()
5
:
FairEventHeader
()
6
,
fHeaderName
(
"BmnEventHeader."
)
7
,
fEventId
(0)
8
,
fPeriodId
(0)
9
,
fEventTimeTS
(0, 0)
10
,
fEventVspTS
(0, 0)
11
,
fEventType
(
kBMNPAYLOAD
)
12
,
fTripWord
(
kFALSE
)
13
,
fSpillStart
(
kFALSE
)
14
,
fStartSignalTime
(0)
15
,
fStartSignalWidth
(0)
16
,
fInputsAR
(0)
17
,
fInputsBR
(0)
18
{}
19
20
BmnEventHeader::BmnEventHeader
(
UInt_t
run_id,
21
UInt_t
event_id,
22
TTimeStamp
event_time,
23
BmnEventType
event_type,
24
Bool_t
trip,
25
BmnTrigInfo
& trig_info)
26
:
FairEventHeader
()
27
,
fHeaderName
(
"BmnEventHeader."
)
28
,
fEventId
(event_id)
29
,
fEventTimeTS
(event_time)
30
,
fEventVspTS
(0, 0)
31
,
fEventType
(event_type)
32
,
fTripWord
(trip)
33
,
fSpillStart
(
kFALSE
)
34
,
fStartSignalTime
(0)
35
,
fStartSignalWidth
(0)
36
,
fTrigInfo
(trig_info)
37
,
fInputsAR
(0)
38
,
fInputsBR
(0)
39
{
40
SetRunId(run_id);
41
SetEventTime(
fEventTimeTS
.AsDouble());
42
}
43
44
BmnEventHeader::BmnEventHeader
(
UInt_t
run_id,
45
UInt_t
event_id,
46
TTimeStamp
event_time,
47
BmnEventType
event_type,
48
Bool_t
trip,
49
BmnTrigInfo
& trig_info,
50
unordered_map<UInt_t, Long64_t> time_shift)
51
:
FairEventHeader
()
52
,
fHeaderName
(
"BmnEventHeader."
)
53
,
fEventId
(event_id)
54
,
fEventTimeTS
(event_time)
55
,
fEventVspTS
(0, 0)
56
,
fEventType
(event_type)
57
,
fTripWord
(trip)
58
,
fSpillStart
(
kFALSE
)
59
,
fStartSignalTime
(0)
60
,
fStartSignalWidth
(0)
61
,
fTrigInfo
(trig_info)
62
,
fInputsAR
(0)
63
,
fInputsBR
(0)
64
,
fTimeShift
(time_shift)
65
{
66
SetRunId(run_id);
67
SetEventTime(event_time.
AsDouble
());
68
}
69
70
// ----- Destructor ----------------------------------------------------
71
BmnEventHeader::~BmnEventHeader
()
72
{
73
// if (fTrigInfo) delete fTrigInfo;
74
}
75
76
void
BmnEventHeader::Clear
()
77
{
78
fHeaderName
=
""
;
79
fEventId
= 0;
80
fPeriodId
= 0;
81
fEventTimeTS
=
TTimeStamp
(0, 0);
82
fEventVspTS
=
TTimeStamp
(0, 0);
83
fEventType
= (
BmnEventType
)0;
84
fTripWord
=
kFALSE
;
85
fSpillStart
=
kFALSE
;
86
fStartSignalTime
= 0.0;
87
fStartSignalWidth
= 0.0;
88
fInputsAR
= 0;
89
fInputsBR
= 0;
90
fInputsVec
.clear();
91
fTimeShift
.clear();
92
}
Bool_t
bool Bool_t
UInt_t
unsigned int UInt_t
kFALSE
constexpr Bool_t kFALSE
BmnEventType
BmnEventType
Define type of event.
Definition
BmnEnums.h:143
kBMNPAYLOAD
@ kBMNPAYLOAD
spill event.
Definition
BmnEnums.h:145
BmnEventHeader.h
BmnEventHeader::fStartSignalWidth
Double_t fStartSignalWidth
Definition
BmnEventHeader.h:45
BmnEventHeader::fTripWord
Bool_t fTripWord
Tripped Gems (1 bit for 1 GEM module).
Definition
BmnEventHeader.h:40
BmnEventHeader::fInputsBR
UInt_t fInputsBR
Definition
BmnEventHeader.h:49
BmnEventHeader::BmnEventHeader
BmnEventHeader()
Default constructor.
Definition
BmnEventHeader.cxx:4
BmnEventHeader::fEventTimeTS
TTimeStamp fEventTimeTS
Event Time in TTimeStamp.
Definition
BmnEventHeader.h:34
BmnEventHeader::fTimeShift
unordered_map< UInt_t, Long64_t > fTimeShift
Definition
BmnEventHeader.h:52
BmnEventHeader::fPeriodId
UInt_t fPeriodId
Period Id.
Definition
BmnEventHeader.h:32
BmnEventHeader::Clear
void Clear()
Definition
BmnEventHeader.cxx:76
BmnEventHeader::fStartSignalTime
Double_t fStartSignalTime
T0 information for current event.
Definition
BmnEventHeader.h:44
BmnEventHeader::~BmnEventHeader
virtual ~BmnEventHeader()
Destructor.
Definition
BmnEventHeader.cxx:71
BmnEventHeader::fTrigInfo
BmnTrigInfo fTrigInfo
Definition
BmnEventHeader.h:46
BmnEventHeader::fEventId
UInt_t fEventId
Event Id.
Definition
BmnEventHeader.h:30
BmnEventHeader::fInputsVec
vector< uint32_t > fInputsVec
Definition
BmnEventHeader.h:50
BmnEventHeader::fHeaderName
TString fHeaderName
Event Header branch name.
Definition
BmnEventHeader.h:27
BmnEventHeader::fSpillStart
Bool_t fSpillStart
start of new spill
Definition
BmnEventHeader.h:42
BmnEventHeader::fEventVspTS
TTimeStamp fEventVspTS
VSP Trigger Time in TTimeStamp.
Definition
BmnEventHeader.h:36
BmnEventHeader::fInputsAR
UInt_t fInputsAR
Definition
BmnEventHeader.h:48
BmnEventHeader::fEventType
BmnEventType fEventType
Event Type (payload = 0 or pedestal = 1).
Definition
BmnEventHeader.h:38
BmnTrigInfo
Class BmnTrigInfo Trigger counters of the current spill from U40VE card.
Definition
BmnTrigInfo.h:15
FairEventHeader
TTimeStamp
TTimeStamp::AsDouble
Double_t AsDouble() const
base
header
BmnEventHeader.cxx
Generated on
for BmnRoot by
1.17.0