BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnEventHeader.cxx
Go to the documentation of this file.
1#include "BmnEventHeader.h"
2
3// ----- Default constructor -------------------------------------------
6 , fHeaderName("BmnEventHeader.")
7 , fEventId(0)
8 , fPeriodId(0)
9 , fEventTimeTS(0, 0)
10 , fEventVspTS(0, 0)
16 , fInputsAR(0)
17 , fInputsBR(0)
18{}
19
21 UInt_t event_id,
22 TTimeStamp event_time,
23 BmnEventType event_type,
24 Bool_t trip,
25 BmnTrigInfo& trig_info)
27 , fHeaderName("BmnEventHeader.")
28 , fEventId(event_id)
29 , fEventTimeTS(event_time)
30 , fEventVspTS(0, 0)
31 , fEventType(event_type)
32 , fTripWord(trip)
36 , fTrigInfo(trig_info)
37 , fInputsAR(0)
38 , fInputsBR(0)
39{
40 SetRunId(run_id);
41 SetEventTime(fEventTimeTS.AsDouble());
42}
43
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)
52 , fHeaderName("BmnEventHeader.")
53 , fEventId(event_id)
54 , fEventTimeTS(event_time)
55 , fEventVspTS(0, 0)
56 , fEventType(event_type)
57 , fTripWord(trip)
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 ----------------------------------------------------
72{
73 // if (fTrigInfo) delete fTrigInfo;
74}
75
77{
78 fHeaderName = "";
79 fEventId = 0;
80 fPeriodId = 0;
82 fEventVspTS = TTimeStamp(0, 0);
86 fStartSignalTime = 0.0;
88 fInputsAR = 0;
89 fInputsBR = 0;
90 fInputsVec.clear();
91 fTimeShift.clear();
92}
bool Bool_t
unsigned int UInt_t
constexpr Bool_t kFALSE
BmnEventType
Define type of event.
Definition BmnEnums.h:143
@ kBMNPAYLOAD
spill event.
Definition BmnEnums.h:145
Double_t fStartSignalWidth
Bool_t fTripWord
Tripped Gems (1 bit for 1 GEM module).
BmnEventHeader()
Default constructor.
TTimeStamp fEventTimeTS
Event Time in TTimeStamp.
unordered_map< UInt_t, Long64_t > fTimeShift
UInt_t fPeriodId
Period Id.
Double_t fStartSignalTime
T0 information for current event.
virtual ~BmnEventHeader()
Destructor.
BmnTrigInfo fTrigInfo
UInt_t fEventId
Event Id.
vector< uint32_t > fInputsVec
TString fHeaderName
Event Header branch name.
Bool_t fSpillStart
start of new spill
TTimeStamp fEventVspTS
VSP Trigger Time in TTimeStamp.
BmnEventType fEventType
Event Type (payload = 0 or pedestal = 1).
Class BmnTrigInfo Trigger counters of the current spill from U40VE card.
Definition BmnTrigInfo.h:15
Double_t AsDouble() const