BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnRunInfo.h
Go to the documentation of this file.
1#ifndef BMNRUNINFO_H
2#define BMNRUNINFO_H
3
4#include "UniRun.h"
5
6class BmnRunInfo : public TObject
7{
8 public:
11 virtual ~BmnRunInfo(); // Getters
12 /// get period number of the current run
14 /// get run number of the current run
16 /// get file path of the current run
18 /// get beam particle of the current run
20 /// get target particle of the current run
22 /// get energy of the current run
24 // /// get start datetime of the current run
25 // TDatime GetStartDatetime() {return dt_start_datetime;}
26 // /// get end datetime of the current run
27 // TDatime GetEndDatetime() {return dt_end_datetime;}
28 /// get event count of the current run
30 /// get field voltage of the current run
32
33 // Setters
34 /// set period number of the current run
35 void SetPeriodNumber(Int_t period_number) { i_period_number = period_number; }
36 /// set run number of the current run
37 void SetRunNumber(Int_t run_number) { i_run_number = run_number; }
38 /// set file path of the current run
39 void SetFilePath(TString file_path) { str_file_path = file_path; }
40 /// set beam particle of the current run
41 void SetBeamParticle(TString beam_particle) { str_beam_particle = beam_particle; }
42 /// set target particle of the current run
43 void SetTargetParticle(TString target_particle) { str_target_particle = target_particle; }
44 /// set energy of the current run
45 void SetEnergy(Double_t energy) { d_energy = energy; }
46 // /// set start datetime of the current run
47 // void SetStartDatetime(TDatime start_datetime){
48 // dt_start_datetime = start_datetime;
49 // }
50 // /// set end datetime of the current run
51 // void SetEndDatetime(TDatime end_datetime){
52 // dt_end_datetime = end_datetime;
53 // }
54 /// set event count of the current run
55 void SetEventCount(Int_t event_count) { i_event_count = event_count; }
56 /// set field voltage of the current run
57 void SetFieldVoltage(Double_t field_voltage) { d_field_voltage = field_voltage; }
58 /// set trigger id of the current run
59 void SetTriggerId(Int_t trigger_id) { i_trigger_id = trigger_id; }
60
61 private:
62 /// period number
64 /// run number
66 /// file path
68 /// beam particle
70 /// target particle
72 /// energy
74 /// start datetime
75 // TDatime dt_start_datetime;
76 /// end datetime
77 // TDatime dt_end_datetime;
78 /// event count
80 /// field voltage
82 /// trigger id
84
86};
87
88#endif /* BMNRUNINFO_H */
int Int_t
double Double_t
#define ClassDef(name, id)
Int_t i_period_number
period number
Definition BmnRunInfo.h:63
Int_t i_event_count
start datetime
Definition BmnRunInfo.h:79
BmnRunInfo(UniRun *orig)
Double_t d_field_voltage
field voltage
Definition BmnRunInfo.h:81
void SetPeriodNumber(Int_t period_number)
set period number of the current run
Definition BmnRunInfo.h:35
TString GetBeamParticle()
get beam particle of the current run
Definition BmnRunInfo.h:19
virtual ~BmnRunInfo()
Double_t GetFieldVoltage()
get field voltage of the current run
Definition BmnRunInfo.h:31
void SetTriggerId(Int_t trigger_id)
set trigger id of the current run
Definition BmnRunInfo.h:59
void SetEventCount(Int_t event_count)
set event count of the current run
Definition BmnRunInfo.h:55
void SetFilePath(TString file_path)
set file path of the current run
Definition BmnRunInfo.h:39
Int_t GetPeriodNumber()
get period number of the current run
Definition BmnRunInfo.h:13
void SetFieldVoltage(Double_t field_voltage)
set field voltage of the current run
Definition BmnRunInfo.h:57
void SetTargetParticle(TString target_particle)
set target particle of the current run
Definition BmnRunInfo.h:43
Int_t GetEventCount()
get event count of the current run
Definition BmnRunInfo.h:29
void SetEnergy(Double_t energy)
set energy of the current run
Definition BmnRunInfo.h:45
TString str_file_path
file path
Definition BmnRunInfo.h:67
Double_t GetEnergy()
get energy of the current run
Definition BmnRunInfo.h:23
void SetBeamParticle(TString beam_particle)
set beam particle of the current run
Definition BmnRunInfo.h:41
void SetRunNumber(Int_t run_number)
set run number of the current run
Definition BmnRunInfo.h:37
TString str_target_particle
target particle
Definition BmnRunInfo.h:71
TString str_beam_particle
beam particle
Definition BmnRunInfo.h:69
TString GetFilePath()
get file path of the current run
Definition BmnRunInfo.h:17
Int_t i_trigger_id
trigger id
Definition BmnRunInfo.h:83
TString GetTargetParticle()
get target particle of the current run
Definition BmnRunInfo.h:21
Int_t GetRunNumber()
get run number of the current run
Definition BmnRunInfo.h:15
Int_t i_run_number
run number
Definition BmnRunInfo.h:65
Double_t d_energy
energy
Definition BmnRunInfo.h:73
UniRun.h Class for the table: run_.
Definition UniRun.h:21