Module api

Source
Expand description

Higher level functions, to deal with events/binary reprentation of it, configure the drs4, etc.

Constants§

DATAPORT
Dataport is 0MQ PUB for publishing waveform/event data

Functions§

enable_poisson_self_trigger
The poisson self trigger mode of the board triggers automatically, this means we don’t have to send a forced trigger signal every 1/rate.
experimental_ram_buffer_handler
Manage the RAM buffers for event data
get_active_buffer
Get the active half of the RAM buffer
get_buff_size
Get the blob buffer size from occupancy register
get_runconfig
Get a runconfig from a file.
is_systemd_process
Check for the environmental variable LIFTOF_IS_SYSTEMD which is set in the liftof.service file to determine wether liftof is executed through systemd.
prefix_board_id
prefix_board_id_noquery
add the board id to the bytestream in front of the tof response
prefix_local
Add the prefix “LOCAL” to a bytestream.
ram_buffer_handler
Manage the RAM buffers for event data
rb_calibration
A full set of RB calibration
rb_noi_subcalibration
rb_start_run
rb_stop_run
rb_timing_subcalibration
rb_voltage_subcalibration
reset_dma_and_buffers
Reset DMA pointer and buffer occupancy registers
run_check
Check if the buffers are actually filling
send_ltb_all_thresholds_reset
send_ltb_all_thresholds_set
send_ltb_threshold_set
setup_drs4
Prepare the whole readoutboard for data taking.
wait_while_run_active
Wait as long as a run is active. This call blocks the current thread until no run is active anymore.