tof_dataclasses

Module database

Source
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§

Structs§

  • The DB wrapper for the LocalTriggerBoard, for easy implementation there are no joins, we do them manually in the public implementation of the LocaltriggerBoard
  • A TOF Panel is a larger unit of paddles next to each other
  • A Readoutboard with paddles connected
  • 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’
  • A single TOF paddle with 2 ends comnected
  • Representation of a local trigger board.
  • A Readoutboard with paddles connected
  • A representation of a run

Functions§

  • Universal function to connect to the database
  • Create a mapping of mtb link ids to rb ids
  • 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
  • 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
  • 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
  • Create a mapping of rb id to mtb link ids

Type Aliases§