BmnRoot
Loading...
Searching...
No Matches
DstEventHeader.h
Go to the documentation of this file.
1#ifndef DSTEVENTHEADER_H
2#define DSTEVENTHEADER_H
3
4#include "BmnEnums.h"
5#include "FairEventHeader.h"
6#include "FairRootManager.h"
7#include "TTimeStamp.h"
8
9class DstEventHeader : public FairEventHeader
10{
11 private:
13 TString fHeaderName;
14
16 UInt_t fEventId;
18 UInt_t fPeriodId;
20 TTimeStamp fEventTimeTS;
22 BmnTriggerType fTriggerType;
24 Double_t fB;
26 Double_t fZ2in;
27 Double_t fZ2out;
28 Double_t fADCin;
29 Double_t fADCout;
30 Double_t fZ1, fZ2, fZ3, fZ4; // for charge calculation from single scintilator, currently not used
31 Double_t fADC1, fADC2, fADC3, fADC4; // for 2D charge cuts
32 Short_t fZin;
33
34 public:
37
39 DstEventHeader(UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnTriggerType trigger_type, Double_t b);
40
42 virtual ~DstEventHeader();
43
44 virtual void Register(Bool_t Persistence = kTRUE)
45 {
46 FairRootManager::Instance()->Register(fHeaderName.Data(), "EvtHeader", this, Persistence);
47 }
48
50 TString GetHeaderName() { return fHeaderName; }
51
53 UInt_t GetEventId() { return fEventId; }
54
56 UInt_t GetPeriodId() { return fPeriodId; }
57
59 TTimeStamp GetEventTimeTS() { return fEventTimeTS; }
60
62 BmnTriggerType GetTriggerType() { return fTriggerType; }
63
65 Double_t GetB() { return fB; }
66
68 Double_t GetZ2in() { return fZ2in; }
69 Double_t GetZ2out() { return fZ2out; }
70 Double_t GetADCin() { return fADCin; }
71 Double_t GetADCout() { return fADCout; }
72 Double_t GetZ1() { return fZ1; }
73 Double_t GetZ2() { return fZ2; }
74 Double_t GetZ3() { return fZ3; }
75 Double_t GetZ4() { return fZ4; }
76
77 Double_t GetADC1() { return fADC1; }
78 Double_t GetADC2() { return fADC2; }
79 Double_t GetADC3() { return fADC3; }
80 Double_t GetADC4() { return fADC4; }
81
82 Short_t GetZin() { return fZin; }
83
85 void SetHeaderName(TString header_name) { fHeaderName = header_name; }
86
88 void SetEventId(UInt_t event_id) { fEventId = event_id; }
89
93 void SetPeriodId(UInt_t period_id) { fPeriodId = period_id; }
94
96 void SetEventTimeTS(TTimeStamp event_time) { fEventTimeTS = event_time; }
97
101 void SetTriggerType(BmnTriggerType trigger_type) { fTriggerType = trigger_type; }
102
104 void SetB(Double_t b) { fB = b; }
105
107 void SetZ2in(Double_t z2in) { fZ2in = z2in; }
108 void SetZ2out(Double_t z2out) { fZ2out = z2out; }
109 void SetADCin(Double_t adcin) { fADCin = adcin; }
110 void SetADCout(Double_t adcout) { fADCout = adcout; }
111
112 void SetZ1(Double_t z1) { fZ1 = z1; }
113 void SetZ2(Double_t z2) { fZ2 = z2; }
114 void SetZ3(Double_t z3) { fZ3 = z3; }
115 void SetZ4(Double_t z4) { fZ4 = z4; }
116 void SetADC1(Double_t adc1) { fADC1 = adc1; }
117 void SetADC2(Double_t adc2) { fADC2 = adc2; }
118 void SetADC3(Double_t adc3) { fADC3 = adc3; }
119 void SetADC4(Double_t adc4) { fADC4 = adc4; }
120
121 void SetZin(Short_t Zin) { fZin = Zin; }
122
123 void CopyFrom(DstEventHeader* hdr);
125};
126
127#endif /* DstEventHeader_H */
vector< vector< bitset< ASIC_channel > > > adc1
vector< vector< bitset< ASIC_channel > > > adc2
BmnTriggerType
Definition BmnEnums.h:61
void SetEventId(UInt_t event_id)
Double_t GetADC1()
Double_t GetB()
Double_t GetZ2in()
BmnTriggerType GetTriggerType()
void SetADCin(Double_t adcin)
Double_t GetZ4()
void SetTriggerType(BmnTriggerType trigger_type)
virtual void Register(Bool_t Persistence=kTRUE)
void SetADC3(Double_t adc3)
Double_t GetZ2()
void SetZ4(Double_t z4)
Double_t GetZ2out()
void SetADCout(Double_t adcout)
void SetHeaderName(TString header_name)
UInt_t GetEventId()
ClassDef(DstEventHeader, 3)
TTimeStamp GetEventTimeTS()
void CopyFrom(DstEventHeader *hdr)
Double_t GetZ1()
void SetZ2out(Double_t z2out)
Double_t GetADC3()
UInt_t GetPeriodId()
void SetB(Double_t b)
virtual ~DstEventHeader()
void SetADC4(Double_t adc4)
void SetZin(Short_t Zin)
Double_t GetADCout()
void SetADC1(Double_t adc1)
void SetADC2(Double_t adc2)
void SetZ2in(Double_t z2in)
TString GetHeaderName()
void SetPeriodId(UInt_t period_id)
Double_t GetADCin()
void SetZ1(Double_t z1)
void SetZ2(Double_t z2)
Double_t GetZ3()
Double_t GetADC2()
void SetZ3(Double_t z3)
void SetEventTimeTS(TTimeStamp event_time)
Double_t GetADC4()