BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
10{
11 private:
12 /** Event Header branch name **/
14
15 /** Event Identifier **/
17 /** Period Id **/
19 /** Event Time in TTimeStamp **/
21 /** Trigger Type (beam = 6 or target = 1) **/
23 /** Impact parameter [fm] **/
25 /** Total charge before and after the target **/
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
33
34 public:
35 /** Default constructor */
37
38 /** Constructor with parameters */
39 DstEventHeader(UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnTriggerType trigger_type, Double_t b);
40
41 /** Destructor */
42 virtual ~DstEventHeader();
43
44 virtual void Register(Bool_t Persistence = kTRUE)
45 {
46 FairRootManager::Instance()->Register(fHeaderName.Data(), "EvtHeader", this, Persistence);
47 }
48
49 /** Get Event Header branch name */
51
52 /** Get run ID for this run */
54
55 /** Get the period ID for this run */
57
58 /** Get time for this event */
60
61 /** Get type of this event */
63
64 /** Get impact parameter - b, fm */
65 Double_t GetB() { return fB; }
66
67 /** Get total charge before and after the target */
68 Double_t GetZ2in() { return fZ2in; }
69 Double_t GetZ2out() { return fZ2out; }
70 Double_t GetADCin() { return fADCin; }
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
84 /** Set Event Header branch name */
85 void SetHeaderName(TString header_name) { fHeaderName = header_name; }
86
87 /** Set event ID for this run */
88 void SetEventId(UInt_t event_id) { fEventId = event_id; }
89
90 /** Set the period ID for this run
91 * @param period_id : period id
92 */
93 void SetPeriodId(UInt_t period_id) { fPeriodId = period_id; }
94
95 /** Set time for this event in */
96 void SetEventTimeTS(TTimeStamp event_time) { fEventTimeTS = event_time; }
97
98 /** Set trigger type for this event
99 * @param trigger_type : trigger type (beam = 6 or target = 1)
100 */
101 void SetTriggerType(BmnTriggerType trigger_type) { fTriggerType = trigger_type; }
102
103 /** Set impact parameter - b, fm */
104 void SetB(Double_t b) { fB = b; }
105
106 /** Set total charge before and after the target */
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 */
bool Bool_t
unsigned int UInt_t
short Short_t
double Double_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
BmnTriggerType
Define type of event.
Definition BmnEnums.h:134
void SetEventId(UInt_t event_id)
Set event ID for this run.
Double_t GetADC1()
Double_t GetB()
Get impact parameter - b, fm.
Double_t GetZ2in()
Get total charge before and after the target.
BmnTriggerType GetTriggerType()
Get type of this event.
void SetADCin(Double_t adcin)
UInt_t fEventId
Event Identifier.
Double_t GetZ4()
void SetTriggerType(BmnTriggerType trigger_type)
Set trigger type for this event.
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)
Set Event Header branch name.
UInt_t GetEventId()
Get run ID for this run.
TTimeStamp GetEventTimeTS()
Get time for this event.
void CopyFrom(DstEventHeader *hdr)
Double_t GetZ1()
void SetZ2out(Double_t z2out)
BmnTriggerType fTriggerType
Trigger Type (beam = 6 or target = 1).
Double_t GetADC3()
UInt_t GetPeriodId()
Get the period ID for this run.
void SetB(Double_t b)
Set impact parameter - b, fm.
virtual ~DstEventHeader()
Destructor.
void SetADC4(Double_t adc4)
void SetZin(Short_t Zin)
Double_t GetADCout()
DstEventHeader()
Default constructor.
void SetADC1(Double_t adc1)
UInt_t fPeriodId
Period Id.
void SetADC2(Double_t adc2)
void SetZ2in(Double_t z2in)
Set total charge before and after the target.
TString fHeaderName
Event Header branch name.
TString GetHeaderName()
Get Event Header branch name.
void SetPeriodId(UInt_t period_id)
Set the period ID for this run.
Double_t fB
Impact parameter [fm].
Double_t GetADCin()
Double_t fZ2in
Total charge before and after the target.
void SetZ1(Double_t z1)
void SetZ2(Double_t z2)
TTimeStamp fEventTimeTS
Event Time in TTimeStamp.
Double_t GetZ3()
Double_t GetADC2()
void SetZ3(Double_t z3)
void SetEventTimeTS(TTimeStamp event_time)
Set time for this event in.
Double_t GetADC4()