gaps-online-software 0.10
online software for the TOF system for the GAPS experiment
Loading...
Searching...
No Matches
database.h
1#ifndef GOS_DB_HEADER_INCLUDED
2#define GOS_DB_HEADER_INCLUDED
3
4#include "tof_typedefs.h"
5#include "sqlite_orm.h"
6
7#include <map>
8
9namespace Gaps {
10
11 struct TofPaddle {
12 u8 paddle_id ;
13 u64 volume_id ;
14 u8 panel_id ;
15 u8 mtb_link_id ;
16 u8 rb_id ;
17 u8 rb_chA ;
18 u8 rb_chB ;
21 u8 ltb_id ;
22 u8 ltb_chA ;
23 u8 ltb_chB ;
24 u8 pb_id ;
25 u8 pb_chA ;
26 u8 pb_chB ;
27 f32 cable_len ;
28 u8 dsi ;
29 u8 j_rb ;
30 u8 j_ltb ;
31 f32 height ;
32 f32 width ;
33 f32 length ;
34 f32 global_pos_x_l0 ;
35 f32 global_pos_y_l0 ;
36 f32 global_pos_z_l0 ;
37 f32 global_pos_x_l0_A ;
38 f32 global_pos_y_l0_A ;
39 f32 global_pos_z_l0_A ;
40
41 std::string to_string() const;
42 };
43
44
45
47 std::map<u8, TofPaddle> get_tofpaddles(std::string dbname);
48}
49
50std::ostream& operator<<(std::ostream& os, const Gaps::TofPaddle& paddle);
51
52
53#endif
‍**
Definition caraspace.hpp:8
std::map< u8, TofPaddle > get_tofpaddles(std::string dbname)
Get a paddle from the database.
Definition database.h:11
u8 ltb_id
Definition database.h:21