gaps_online.db#
Higher level functions to access the sqlite database shipped with this project.
Functions
|
Get the high gain (HG) connection for a given low gain connection (LG) |
|
Get all TOF paddles |
|
Get a tracker mask from the db and return a dictionary strip_id -> bool |
Get a list of all tracker strips |
|
Return a map of volume id to hardware id. |
- gaps_online.db.get_HG_for_LG(dsi, j, ch)#
Get the high gain (HG) connection for a given low gain connection (LG)
LG => LTB HG => RB For a dsi/j/channel connection as emitted by the MTB, get the respective RB/CH
# Arguments:
dsi - LG DSI connection on the MTB
j - LG DSI/J connection on the MTB
ch - channel on the connected LTB
# Returns:
RB ID, RB channel
- gaps_online.db.get_tof_paddles(panel_id=None) dict #
Get all TOF paddles
- gaps_online.db.get_cube_paddles()#
- gaps_online.db.get_umbrella_paddles()#
- gaps_online.db.get_tracker_strips() list[TrackerStrip] #
Get a list of all tracker strips
- gaps_online.db.get_tracker_strip_mask(name) dict #
Get a tracker mask from the db and return a dictionary strip_id -> bool
- # Arguments:
- nameEach strip mask has a unique name
under which it can be retrieved from the db
- gaps_online.db.get_vid_hid_map() dict #
Return a map of volume id to hardware id. This is in case of tof paddles a number from 1-160 and for the tracker it is a number per strip which contains layer, row, module, strip