Expand description
Database access & entities of the TOF
A local .sqlite database is shipped with this packet and allows to access all mapping relevant TOF information, e.g. paddle connection to LTBs anr RBs, paddle information, paddle cordinates, panel ids and so on.
Re-exports§
pub use crate::RbChPidMapping;
Structs§
- DBLocal
Trigger Board - The DB wrapper for the LocalTriggerBoard, for easy implementation there are no joins, we do them manually in the public implementation of the LocaltriggerBoard
- DBPanel
- A TOF Panel is a larger unit of paddles next to each other
- DBReadout
Board - A Readoutboard with paddles connected
- DSICard
- A DSI card which is plugged into one of five slots on the MTB The DSI card provides the connection to RBs and LTBs and has a subdivision, which is called ‘j’
- Local
Trigger Board - MTBChannel
- Paddle
- A single TOF paddle with 2 ends comnected
- Panel
- RAT
- Representation of a local trigger board.
- Readout
Board - A Readoutboard with paddles connected
- Run
- A representation of a run
- Tracker
Strip - A single Tracker strip
Functions§
- connect_
to_ db - Universal function to connect to the database
- get_
dsi_ j_ ch_ pid_ map - get_
linkid_ rbid_ map - Create a mapping of mtb link ids to rb ids
- get_
rb_ ch_ pid_ a_ map - Create a map for rbid, ch -> paddle id. This is only for the A side and will not have an entry in case the given RB channel is connected to the B side of the paddle
- get_
rb_ ch_ pid_ b_ map - Create a map for rbid, ch -> paddle id. This is only for the B side and will not have an entry in case the given RB channel is connected to the A side of the paddle
- get_
rb_ ch_ pid_ map - Create a map for rbid, ch -> paddle id. This is for both sides and will always return a paddle id independent of A or B
- get_
rbid_ linkid_ map - Create a mapping of rb id to mtb link ids
- get_
tofpaddles - Get all tof paddles in the database
- get_
trackerstrips - Get all trackerstrips from the database