29 void Print(Option_t* =
"")
const;
31 void SetSystem(std::string sys) { system_ = std::move(sys); }
32 void SetBeamMomentum(
float mom,
float m_target = 0.938,
float m_beam = 0.938);
33 void SetDetectorPosition(
const TVector3& pos) {
34 det_pos_.emplace_back(pos);
36 void SetTimeSliceLength(
float tslength) { ts_length_ = tslength; }
38 ANALYSISTREE_ATTR_NODISCARD Floating_t GetBeamRapidity()
const {
return beam_y_; }
39 ANALYSISTREE_ATTR_NODISCARD std::string GetSystem()
const {
return system_; }
40 ANALYSISTREE_ATTR_NODISCARD
const TVector3& GetDetectorPosition(
int i)
const {
return det_pos_.at(i); }
41 ANALYSISTREE_ATTR_NODISCARD Floating_t GetTimeSliceLength()
const {
return ts_length_; }
43 ANALYSISTREE_ATTR_NODISCARD
const ModulePositions& GetModulePositions(Integer_t idet)
const {
47 ANALYSISTREE_ATTR_NODISCARD Floating_t GetModulePhi(
int det_id,
int module_id)
const {
48 return modules_pos_.at(det_id).GetChannel(module_id).GetPhi();
53 std::vector<TVector3> det_pos_{};
56 Floating_t beam_mom_{UndefValueFloat};
57 Floating_t beam_y_{UndefValueFloat};
58 Floating_t sqrtsNN_{UndefValueFloat};
59 Floating_t ts_length_{UndefValueFloat};
61 ClassDef(DataHeader, 1)