BmnRoot
Loading...
Searching...
No Matches
BmnEventHeader.cxx
Go to the documentation of this file.
1#include "BmnEventHeader.h"
2
3// ----- Default constructor -------------------------------------------
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 , fSpillStartTS(0, 0)
19 , fSpillId(-1)
20{}
21
23 UInt_t event_id,
24 TTimeStamp event_time,
25 BmnEventType event_type,
26 Bool_t trip,
27 BmnTrigInfo& trig_info)
28 : FairEventHeader()
29 , fHeaderName("BmnEventHeader.")
30 , fEventId(event_id)
31 , fEventTimeTS(event_time)
32 , fEventVspTS(0, 0)
33 , fEventType(event_type)
34 , fTripWord(trip)
35 , fSpillStart(kFALSE)
36 , fStartSignalTime(0)
37 , fStartSignalWidth(0)
38 , fTrigInfo(trig_info)
39 , fInputsAR(0)
40 , fInputsBR(0)
41 , fSpillStartTS(0, 0)
42 , fSpillId(-1)
43{
44 SetRunId(run_id);
45 SetEventTime(fEventTimeTS.AsDouble());
46}
47
49 UInt_t event_id,
50 TTimeStamp event_time,
51 BmnEventType event_type,
52 Bool_t trip,
53 BmnTrigInfo& trig_info,
54 unordered_map<UInt_t, Long64_t> time_shift)
55 : FairEventHeader()
56 , fHeaderName("BmnEventHeader.")
57 , fEventId(event_id)
58 , fEventTimeTS(event_time)
59 , fEventVspTS(0, 0)
60 , fEventType(event_type)
61 , fTripWord(trip)
62 , fSpillStart(kFALSE)
63 , fStartSignalTime(0)
64 , fStartSignalWidth(0)
65 , fTrigInfo(trig_info)
66 , fInputsAR(0)
67 , fInputsBR(0)
68 , fSpillStartTS(0, 0)
69 , fSpillId(-1)
70 , fTimeShift(time_shift)
71{
72 SetRunId(run_id);
73 SetEventTime(event_time.AsDouble());
74}
75
76// ----- Destructor ----------------------------------------------------
78{
79 // if (fTrigInfo) delete fTrigInfo;
80}
81
83{
84 fHeaderName = "";
85 fEventId = 0;
86 fPeriodId = 0;
87 fEventTimeTS = TTimeStamp(0, 0);
88 fEventVspTS = TTimeStamp(0, 0);
89 fEventType = (BmnEventType)0;
90 fTripWord = kFALSE;
91 fSpillStart = kFALSE;
92 fStartSignalTime = 0.0;
93 fStartSignalWidth = 0.0;
94 fInputsAR = 0;
95 fInputsBR = 0;
96 fInputsVec.clear();
97 fSpillStartTS = TTimeStamp(0, 0);
98 fSpillId = -1;
99 fTimeShift.clear();
100}
BmnEventType
Definition BmnEnums.h:69
@ kBMNPAYLOAD
Definition BmnEnums.h:71
virtual ~BmnEventHeader()