BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
DstRunHeader.h
Go to the documentation of this file.
1#ifndef DSTRUNHEADER_H
2#define DSTRUNHEADER_H
3
4#include "BmnEnums.h"
5#include "TNamed.h"
6#include "TTimeStamp.h"
7
8class DstRunHeader : public TNamed
9{
10 public:
11 /** Default constructor */
13
14 /** Constructor (short) */
15 DstRunHeader(UInt_t period_number, UInt_t run_number, TTimeStamp start_time, TTimeStamp end_time);
16
17 /** Constructor (full) */
18 DstRunHeader(UInt_t period_number,
19 UInt_t run_number,
20 TTimeStamp start_time,
21 TTimeStamp end_time,
22 Int_t beam_a,
23 Int_t beam_z,
24 Float_t beam_energy,
25 Int_t target_a,
26 Int_t target_z,
27 Int_t field_type,
28 Double_t field_scale,
29 TString field_name,
30 TString geo_name);
31
32 /** Destructor */
33 virtual ~DstRunHeader();
34
35 /** Get period number for this run */
37 /** Get run number for this run */
41 TString GetBeam() { return fBeam; }
42 Int_t GetBeamA() { return fBeamA; }
43 Int_t GetBeamZ() { return fBeamZ; }
51
52 /** Set the period number for this run **/
53 void SetPeriodId(UInt_t period_number) { fPeriodNumber = period_number; }
54 /** Set the run number for this run **/
55 void SetRunId(UInt_t run_number) { fRunNumber = run_number; }
56 /** Set the period and number numbers for this run **/
57 void SetPeriodRun(UInt_t period_number, UInt_t run_number)
58 {
59 fPeriodNumber = period_number;
60 fRunNumber = run_number;
61 }
62 void SetStartTime(TTimeStamp start_time) { fStartTime = start_time; }
63 void SetFinishTime(TTimeStamp end_time) { fFinishTime = end_time; }
64 void SetBeam(TString beam) { fBeam = beam; }
65 void SetBeamA(Int_t beam_a) { fBeamA = beam_a; }
66 void SetBeamZ(Int_t beam_z) { fBeamZ = beam_z; }
67 void SetBeamEnergy(Float_t beam_energy) { fBeamEnergy = beam_energy; }
68 void SetTarget(TString target) { fTarget = target; }
69 void SetTargetA(Int_t target_a) { fTargetA = target_a; }
70 void SetTargetZ(Int_t target_z) { fTargetZ = target_z; }
71 void SetFieldType(Int_t field_type) { fFieldType = field_type; }
72 void SetFieldScale(Double_t field_scale) { fFieldScale = field_scale; }
73 void SetFieldName(TString field_name) { fFieldName = field_name; }
74
75 private:
76 /** Period Number **/
78 /** Run Number **/
80 /** Start time of run **/
82 /** Finish time of run **/
84
85 /** Beam name, e.g. 'Xe', empty string - beam was not defined **/
87 /** Beam, A (atomic weight) **/
89 /** Beam, Z (charge) **/
91 /** Beam energy, GeV **/
93 /** Target name, e.g. 'CsI (2%)', 'Empty' - the empty target, empty string - target was not defined **/
95 /** Target, A (atomic weight): 0 - empty target, -1 - target was not defined **/
97 /** Target, Z (charge): 0 - compound target or empty target, -1 - target was not defined **/
99
100 /** Magnetic field type **/
102 /** Magnetic field scale **/
104 /** File name with magnetic field **/
106
108};
109
110#endif /* DSTRUNHEADER_H */
int Int_t
unsigned int UInt_t
float Float_t
double Double_t
#define ClassDef(name, id)
void SetPeriodId(UInt_t period_number)
Set the period number for this run.
void SetRunId(UInt_t run_number)
Set the run number for this run.
TString GetTarget()
Int_t fFieldType
Magnetic field type.
TTimeStamp GetFinishTime()
void SetBeam(TString beam)
Int_t GetTargetA()
TString fBeam
Beam name, e.g.
TTimeStamp GetStartTime()
void SetTargetZ(Int_t target_z)
void SetFieldName(TString field_name)
TTimeStamp fStartTime
Start time of run.
void SetFieldType(Int_t field_type)
UInt_t fPeriodNumber
Period Number.
TString GetFieldName()
UInt_t GetRunId()
Get run number for this run.
Double_t GetFieldScale()
TString GetBeam()
DstRunHeader()
Default constructor.
void SetPeriodRun(UInt_t period_number, UInt_t run_number)
Set the period and number numbers for this run.
Int_t fBeamZ
Beam, Z (charge).
TTimeStamp fFinishTime
Finish time of run.
Double_t fFieldScale
Magnetic field scale.
void SetTargetA(Int_t target_a)
Int_t GetFieldType()
void SetStartTime(TTimeStamp start_time)
UInt_t fRunNumber
Run Number.
void SetBeamZ(Int_t beam_z)
Int_t GetTargetZ()
TString fFieldName
File name with magnetic field.
void SetTarget(TString target)
Int_t fTargetZ
Target, Z (charge): 0 - compound target or empty target, -1 - target was not defined.
void SetBeamA(Int_t beam_a)
void SetFieldScale(Double_t field_scale)
Int_t GetBeamA()
Int_t GetBeamZ()
Float_t GetBeamEnergy()
virtual ~DstRunHeader()
Destructor.
void SetFinishTime(TTimeStamp end_time)
TString fTarget
Target name, e.g.
void SetBeamEnergy(Float_t beam_energy)
Int_t fBeamA
Beam, A (atomic weight).
UInt_t GetPeriodId()
Get period number for this run.
Int_t fTargetA
Target, A (atomic weight): 0 - empty target, -1 - target was not defined.
Float_t fBeamEnergy
Beam energy, GeV.