gondola.db#
Gondola (in-flight) database. The database holds geometry, calibration and detector status data
Functions
Get all rb ids from paddles which are stored in the database |
|
Create a mapping of DSI/J(LTB) -> PaddleID |
|
Get a map of hardware id -> volume id (Paddle id in case of TOF paddke, strip id in case of tracker strip) |
|
Get a map of volume id -> hardware id (Paddle id in case of TOF paddke, strip id in case of tracker strip) |
Classes
A Readoutboard with paddles connected |
|
A single TOF paddle with 2 ends comnected |
|
Masking of unusable strips as curated by the tracker team |
|
A single Tracker strip |
|
Common noise subtraction - pulse channels on the wafers and get the average adc. |
|
|
Masking of unusable strips as curated by the tracker team |
Measurement of tracker pedestal values for each strip |
|
- class gondola.db.TofPaddle#
A single TOF paddle with 2 ends comnected
- static all()#
Retrieve all 160 paddles from the database
- static all_as_dict()#
Retrieve all paddles from the database and return a dictionary as dict([rbid, TofPaddle])
- static by_rbid(rbid)#
Retrieve all paddles connected to a certain ReadoutBoard from the database
- # Arguments
rbid : RB id of the desired ReadoutBoard (typically < 50)
- cable_len#
DEPRECATED - the length of the Harting cable connected to this paddle
- center_pos#
The center position of the paddle (middle of all 3 local dimensions)
- draw_xy(fill=False, lw=0.8, edgecolor='b', facecolor='b', alpha=0.7) Rectangle#
Draw a matplotlib patch for xy projection
- draw_xz(fill=False, lw=0.8, edgecolor='b', facecolor='b', alpha=0.7) Rectangle#
Draw a matplotlib patch for xy projection
- draw_yz(fill=False, lw=0.8, edgecolor='b', facecolor='b', alpha=0.7) Rectangle#
Draw a matplotlib patch for xy projection
- dsi#
Retrive the DSI connector this paddle is connected through the RB/LTB to the MTB
- global_pos_x_l0#
The x-coordinate of the center position of the paddle
- global_pos_y_l0#
The y-coordinate of the center position of the paddle
- global_pos_z_l0#
The z-coordinate of the center position of the paddle
- height#
Get the (local) height of the paddle
- j_ltb#
Retrieve the j address of the DSI connector this paddle is connected through the LTB to the MTB
- j_rb#
Retrieve the j address of the DSI connector this paddle is connected through the RB to the MTB
- length#
Get the (local) length of the paddle
- lowest_rb_ch_py#
Get the (numerically) lower of the two RB channels the TOF paddle is connected with to its associate ReadoutBoard
- lt_slot#
Convert DSI and J connection to the actual slot they are plugged in on the MTB (0-24)
- ltb_chA#
Get the LTB channel the A-side of this paddle is connected to
- ltb_chB#
Get the LTB channel the B-side of this paddle is connected to
- ltb_id#
Get the LTB id the low-gain channels of this paddle are connected to
- mtb_link_id#
The MTB link id is an internal number used by the MTB to identify ReadoutBoards
- normal#
Return normal axis - that is orthogonal to the principal ans paralel to the axis of "width"
- paddle_id#
The paddle id of the paddle in range [1,160]
- panel_id#
Retrieve the panel id.
Panel 1-6 : Cube Panel 7-14 : Umbrella Panel > 14 : Cortina
- pb_chA#
Get the channel on the powerboard the paddle A-side is connected to
- pb_chB#
Get the channel on the powerboard the paddle b-side is connected to
- pb_id#
Get the powerboard id for the respective powerboard which provides the driving voltage for this paddle
- principal#
The principal is the direction along the longest dimension from A -> B
- rb_chA#
Get the ReadoutBoard channel to which the A-side of the Paddle is connected
- rb_chB#
Get the ReadoutBoard channel to which the b-side of the Paddle is connected
- rb_id#
Retrieve the Readoutboard id for the Readoutboard the paddle is connected to
- rb_slot#
Convert DSI and J connection to the actual slot they are plugged in on the MTB (0-24)
- sideA_pos#
The position of the SiPm at the A-side
- volume_id#
Retrieve the volume id. The volume id is assigned by the simulation
- width#
Get the (local) width of the paddle
- class gondola.db.ReadoutBoard#
A Readoutboard with paddles connected
- static all()#
- static all_as_dict()#
- dsi#
- j#
- load_calibration(path)#
Load a calibration file for this specific Readoutboard
- mtb_link_id#
- paddle12#
- paddle34#
- paddle56#
- paddle78#
- rb_id#
- class gondola.db.TofPaddleTimingConstant#
Masking of unusable strips as curated by the tracker team
- static all()#
- static all_names()#
Get all names for registered datasets. These can be used in .as_dict_by_name() to query the db for a set of values
- static as_dict_by_name(name)#
Get the TOF paddle timing constants as associated by a specific name
- # Arguments
name : The name the constants are associated with
- name#
- paddle_id#
- timing_constant#
- utc_timestamp_start#
- utc_timestamp_stop#
- version#
- volume_id#
- class gondola.db.TrackerStrip#
A single Tracker strip
- static all()#
- static all_as_dict()#
- channel#
- coordinates#
- detector_coordinates#
- global_pos_x_det_l0#
- global_pos_x_l0#
- global_pos_y_det_l0#
- global_pos_y_l0#
- global_pos_z_det_l0#
- global_pos_z_l0#
- layer#
- module#
- principal_x#
- principal_y#
- principal_z#
- row#
- strip_id#
- volume_id#
- class gondola.db.TrackerStripPedestal#
Measurement of tracker pedestal values for each strip
- static all()#
- static all_names()#
Get all names for registered datasets. These can be used in .as_dict_by_name() to query the db for a set of values
- static as_dict_by_name(name)#
- is_mean_value#
- pedestal_mean#
- pedestal_sigam#
- strip_id#
- utc_timestamp_start#
- utc_timestamp_stop#
- volume_id#
- gondola.db.TrackerStripTransferFunction#
alias of
TrackerStripTransferFunction
- class gondola.db.TrackerStripCmnNoise#
Common noise subtraction - pulse channels on the wafers and get the average adc. The gain is available as well. Data from Mengjiao's group
- static all()#
- static all_names()#
Get all names for registered datasets. These can be used in .as_dict_by_name() to query the db for a set of values
- static as_dict_by_name(name)#
- gain#
- gain_is_mean#
- get_common_level(adc)#
- name#
- pulse_avg#
- pulse_cn#
- pulse_is_mean#
- strip_id#
- utc_timestamp_start#
- utc_timestamp_stop#
- volume_id#
- gondola.db.get_all_rbids_in_db()#
Get all rb ids from paddles which are stored in the database
- gondola.db.get_hid_vid_map()#
Get a map of hardware id -> volume id (Paddle id in case of TOF paddke, strip id in case
of tracker strip)
- gondola.db.get_vid_hid_map()#
Get a map of volume id -> hardware id (Paddle id in case of TOF paddke, strip id in case
of tracker strip)
- gondola.db.get_dsi_j_ch_pid_map()#
Create a mapping of DSI/J(LTB) -> PaddleID
This will basically tell you for a given LTB hit which paddle has triggered.