BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
6
class
BmnRunInfo
:
public
TObject
7
{
8
public
:
9
BmnRunInfo
();
10
BmnRunInfo
(
UniRun
* orig);
11
virtual
~BmnRunInfo
();
// Getters
12
/// get period number of the current run
13
Int_t
GetPeriodNumber
() {
return
i_period_number
; }
14
/// get run number of the current run
15
Int_t
GetRunNumber
() {
return
i_run_number
; }
16
/// get file path of the current run
17
TString
GetFilePath
() {
return
str_file_path
; }
18
/// get beam particle of the current run
19
TString
GetBeamParticle
() {
return
str_beam_particle
; }
20
/// get target particle of the current run
21
TString
GetTargetParticle
() {
return
str_target_particle
; }
22
/// get energy of the current run
23
Double_t
GetEnergy
() {
return
d_energy
; }
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
29
Int_t
GetEventCount
() {
return
i_event_count
; }
30
/// get field voltage of the current run
31
Double_t
GetFieldVoltage
() {
return
d_field_voltage
; }
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
63
Int_t
i_period_number
;
64
/// run number
65
Int_t
i_run_number
;
66
/// file path
67
TString
str_file_path
;
68
/// beam particle
69
TString
str_beam_particle
;
70
/// target particle
71
TString
str_target_particle
;
72
/// energy
73
Double_t
d_energy
;
74
/// start datetime
75
// TDatime dt_start_datetime;
76
/// end datetime
77
// TDatime dt_end_datetime;
78
/// event count
79
Int_t
i_event_count
;
80
/// field voltage
81
Double_t
d_field_voltage
;
82
/// trigger id
83
Int_t
i_trigger_id
;
84
85
ClassDef
(
BmnRunInfo
, 1)
86
};
87
88
#endif
/* BMNRUNINFO_H */
Int_t
int Int_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
BmnRunInfo::i_period_number
Int_t i_period_number
period number
Definition
BmnRunInfo.h:63
BmnRunInfo::i_event_count
Int_t i_event_count
start datetime
Definition
BmnRunInfo.h:79
BmnRunInfo::d_field_voltage
Double_t d_field_voltage
field voltage
Definition
BmnRunInfo.h:81
BmnRunInfo::SetPeriodNumber
void SetPeriodNumber(Int_t period_number)
set period number of the current run
Definition
BmnRunInfo.h:35
BmnRunInfo::GetBeamParticle
TString GetBeamParticle()
get beam particle of the current run
Definition
BmnRunInfo.h:19
BmnRunInfo::GetFieldVoltage
Double_t GetFieldVoltage()
get field voltage of the current run
Definition
BmnRunInfo.h:31
BmnRunInfo::SetTriggerId
void SetTriggerId(Int_t trigger_id)
set trigger id of the current run
Definition
BmnRunInfo.h:59
BmnRunInfo::SetEventCount
void SetEventCount(Int_t event_count)
set event count of the current run
Definition
BmnRunInfo.h:55
BmnRunInfo::SetFilePath
void SetFilePath(TString file_path)
set file path of the current run
Definition
BmnRunInfo.h:39
BmnRunInfo::GetPeriodNumber
Int_t GetPeriodNumber()
get period number of the current run
Definition
BmnRunInfo.h:13
BmnRunInfo::~BmnRunInfo
virtual ~BmnRunInfo()
Definition
BmnRunInfo.cxx:37
BmnRunInfo::SetFieldVoltage
void SetFieldVoltage(Double_t field_voltage)
set field voltage of the current run
Definition
BmnRunInfo.h:57
BmnRunInfo::SetTargetParticle
void SetTargetParticle(TString target_particle)
set target particle of the current run
Definition
BmnRunInfo.h:43
BmnRunInfo::GetEventCount
Int_t GetEventCount()
get event count of the current run
Definition
BmnRunInfo.h:29
BmnRunInfo::SetEnergy
void SetEnergy(Double_t energy)
set energy of the current run
Definition
BmnRunInfo.h:45
BmnRunInfo::str_file_path
TString str_file_path
file path
Definition
BmnRunInfo.h:67
BmnRunInfo::GetEnergy
Double_t GetEnergy()
get energy of the current run
Definition
BmnRunInfo.h:23
BmnRunInfo::SetBeamParticle
void SetBeamParticle(TString beam_particle)
set beam particle of the current run
Definition
BmnRunInfo.h:41
BmnRunInfo::SetRunNumber
void SetRunNumber(Int_t run_number)
set run number of the current run
Definition
BmnRunInfo.h:37
BmnRunInfo::str_target_particle
TString str_target_particle
target particle
Definition
BmnRunInfo.h:71
BmnRunInfo::str_beam_particle
TString str_beam_particle
beam particle
Definition
BmnRunInfo.h:69
BmnRunInfo::GetFilePath
TString GetFilePath()
get file path of the current run
Definition
BmnRunInfo.h:17
BmnRunInfo::i_trigger_id
Int_t i_trigger_id
trigger id
Definition
BmnRunInfo.h:83
BmnRunInfo::GetTargetParticle
TString GetTargetParticle()
get target particle of the current run
Definition
BmnRunInfo.h:21
BmnRunInfo::GetRunNumber
Int_t GetRunNumber()
get run number of the current run
Definition
BmnRunInfo.h:15
BmnRunInfo::i_run_number
Int_t i_run_number
run number
Definition
BmnRunInfo.h:65
BmnRunInfo::BmnRunInfo
BmnRunInfo()
Definition
BmnRunInfo.cxx:10
BmnRunInfo::d_energy
Double_t d_energy
energy
Definition
BmnRunInfo.h:73
TObject::TObject
TObject()
TString
UniRun
UniRun.h Class for the table: run_.
Definition
UniRun.h:21
UniRun.h
install
include
BmnRunInfo.h
Generated on
for BmnRoot by
1.17.0