1#ifndef GOS_DB_HEADER_INCLUDED
2#define GOS_DB_HEADER_INCLUDED
4#include "tof_typedefs.h"
11 enum class TofPaddleEnd : i16 {
47 f32 global_pos_x_l0_A ;
48 f32 global_pos_y_l0_A ;
49 f32 global_pos_z_l0_A ;
50 f32 global_pos_x_l0_B ;
51 f32 global_pos_y_l0_B ;
52 f32 global_pos_z_l0_B ;
54 f32 harting_cable_time;
56 auto to_string() const -> std::
string;
86 f32 global_pos_x_det_l0;
87 f32 global_pos_y_det_l0;
88 f32 global_pos_z_det_l0;
94 auto to_string()
const -> std::string;
95 auto create_id()
const -> u32;
96 static auto create_id(u32 layer, u32 row, u32 module, u32 channel) -> u32;
116 std::string mask_name;
119 auto to_string()
const -> std::string;
123 typedef std::map<u32, bool> TrkStripMaskMap;
125 auto get_trackerstripmasks(std::string mask_name =
"") -> TrkStripMaskMap;
135 auto to_string()
const -> std::string;
138 typedef std::map<u32, TrackerStripPedestal> TrkStripPedMap;
140 auto get_trackerstrippedestals() -> TrkStripPedMap;
143std::ostream& operator<<(std::ostream& os,
const Gaps::TofPaddle& paddle);
Definition calibration.h:105
auto get_rb_id_paddles() -> RbIdChannelPaddleIdMap
Get a paddle if the rb id and channel is known (HG)
auto get_trackerstrips() -> TrkStripMap
Retrieve all tracker strips from the database.
auto get_tofpaddles() -> TofPaddleMap
Get a paddle from the database.
std::map< u8, std::map< u8, std::tuple< u8, TofPaddleEnd > > > RbIdChannelPaddleIdMap
A map of RBID, RBCh -> TofPaddle.
Definition database.h:64
std::map< u8, TofPaddle > TofPaddleMap
A map of paddle id -> TofPaddle.
Definition database.h:62
auto get_dsi_j_paddles() -> DsiJChnPaddleIdMap
Get a paddle if the dsi,j connection of a paddle is known (LTB, LG)
auto get_module_position(u8 layer, u8 row, u8 mod, const TrkStripMap &) -> Vec< f32 >
Get the position of a module - returns in cm.
std::map< u32, TrackerStrip > TrkStripMap
A map of strip identifier (layer-row-module-channel -> Tracker strip.
Definition database.h:102
std::map< u8, std::map< u8, std::map< u8, u8 > > > DsiJChnPaddleIdMap
A map of DSI,J -> TofPaddle.
Definition database.h:66
auto get_principal() const -> Vec< f32 >
Vector along the longest axis.
u8 ltb_id
Definition database.h:28
Definition database.h:112
Definition database.h:127
auto get_principal() const -> Vec< f32 >
Vector along the longest axis.