BmnRoot
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 {
7public:
10 virtual ~BmnRunInfo();// Getters
12 Int_t GetPeriodNumber() {return i_period_number;}
14 Int_t GetRunNumber() {return i_run_number;}
16 TString GetFilePath() {return str_file_path;}
18 TString GetBeamParticle() {return str_beam_particle;}
20 TString GetTargetParticle() {return str_target_particle;}
22 Double_t GetEnergy() {return d_energy;}
23// /// get start datetime of the current run
24// TDatime GetStartDatetime() {return dt_start_datetime;}
25// /// get end datetime of the current run
26// TDatime GetEndDatetime() {return dt_end_datetime;}
28 Int_t GetEventCount() {return i_event_count;}
30 Double_t GetFieldVoltage() {return d_field_voltage;}
32 Int_t GetGeometryId() {return i_geometry_id;}
33
34 // Setters
36 void SetPeriodNumber(Int_t period_number){
37 i_period_number = period_number;
38 }
40 void SetRunNumber(Int_t run_number){
41 i_run_number = run_number;
42 }
44 void SetFilePath(TString file_path){
45 str_file_path = file_path;
46 }
48 void SetBeamParticle(TString beam_particle){
49 str_beam_particle = beam_particle;
50 }
52 void SetTargetParticle(TString target_particle){
53 str_target_particle = target_particle;
54 }
56 void SetEnergy(Double_t energy){
57 d_energy = energy;
58 }
59// /// set start datetime of the current run
60// void SetStartDatetime(TDatime start_datetime){
61// dt_start_datetime = start_datetime;
62// }
63// /// set end datetime of the current run
64// void SetEndDatetime(TDatime end_datetime){
65// dt_end_datetime = end_datetime;
66// }
68 void SetEventCount(Int_t event_count){
69 i_event_count = event_count;
70 }
72 void SetFieldVoltage(Double_t field_voltage){
73 d_field_voltage = field_voltage;
74 }
76 void SetGeometryId(Int_t geometry_id){
77 i_geometry_id = geometry_id;
78 }
80 void SetTriggerId(Int_t trigger_id){
81 i_trigger_id = trigger_id;
82 }
83private:
85 Int_t i_period_number;
87 Int_t i_run_number;
89 TString str_file_path;
91 TString str_beam_particle;
93 TString str_target_particle;
95 Double_t d_energy;
97 //TDatime dt_start_datetime;
99 //TDatime dt_end_datetime;
101 Int_t i_event_count;
103 Double_t d_field_voltage;
105 Int_t i_geometry_id;
107 Int_t i_trigger_id;
108
109 ClassDef(BmnRunInfo, 1)
110
111};
112
113#endif /* BMNRUNINFO_H */
114
BmnRunInfo(UniRun *orig)
void SetPeriodNumber(Int_t period_number)
set period number of the current run
Definition BmnRunInfo.h:36
TString GetBeamParticle()
get beam particle of the current run
Definition BmnRunInfo.h:18
virtual ~BmnRunInfo()
Double_t GetFieldVoltage()
get field voltage of the current run
Definition BmnRunInfo.h:30
void SetTriggerId(Int_t trigger_id)
set geometry id of the current run
Definition BmnRunInfo.h:80
void SetEventCount(Int_t event_count)
set event count of the current run
Definition BmnRunInfo.h:68
Int_t GetGeometryId()
get geometry id of the current run
Definition BmnRunInfo.h:32
void SetFilePath(TString file_path)
set file path of the current run
Definition BmnRunInfo.h:44
Int_t GetPeriodNumber()
get period number of the current run
Definition BmnRunInfo.h:12
void SetFieldVoltage(Double_t field_voltage)
set field voltage of the current run
Definition BmnRunInfo.h:72
void SetTargetParticle(TString target_particle)
set target particle of the current run
Definition BmnRunInfo.h:52
Int_t GetEventCount()
get event count of the current run
Definition BmnRunInfo.h:28
void SetEnergy(Double_t energy)
set energy of the current run
Definition BmnRunInfo.h:56
Double_t GetEnergy()
get energy of the current run
Definition BmnRunInfo.h:22
void SetBeamParticle(TString beam_particle)
set beam particle of the current run
Definition BmnRunInfo.h:48
void SetRunNumber(Int_t run_number)
set run number of the current run
Definition BmnRunInfo.h:40
TString GetFilePath()
get file path of the current run
Definition BmnRunInfo.h:16
void SetGeometryId(Int_t geometry_id)
set geometry id of the current run
Definition BmnRunInfo.h:76
TString GetTargetParticle()
get target particle of the current run
Definition BmnRunInfo.h:20
Int_t GetRunNumber()
get run number of the current run
Definition BmnRunInfo.h:14