gondola.db#

Gondola core database functionality. This is a wrapper around the database functions in gondola-db

Classes

TofPaddle()

A single TOF paddle with 2 ends comnected

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

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