Online Monitor¶
$ python -m larpixdaq.online_monitor --help
usage: online_monitor.py [-h] [--core CORE] [--log-address LOG_ADDRESS]
Launch the data consumer providing the online data monitor
optional arguments:
-h, --help show this help message and exit
--core CORE The address of the DAQ Core, not including port number
--log-address LOG_ADDRESS
Address to connect to global log, including port
number
-
class
larpixdaq.online_monitor.
OnlineMonitor
(core_address, log_address)[source]¶ Record packets from the current run and compute various statistics.
Run data provides the online data monitor for the LArPix DAQ. It tracks the packet rate and can send packets for manual inspection. It also tracks each pixel’s recent and max data rate as well as an ADC histogram.
- Parameters
core_address – the full TCP address (including port number) that data will be published to
log_address – the full TCP address (including port number) of the DAQ Log
-
maybe_send_update
(*args)[source]¶ Send an update to the webserver once per second.
- Parameters
args – ignored
-
send_message_update
(*args)[source]¶ Send an update containing info messages.
- Parameters
args – ignored
-
create_pixel_lookup
(chip_pixel_list)[source]¶ Create a pixel lookup from a given list of chip-pixel assignments.
chip_pixel_list is of the form:
[ [chip0id, [ch0pixel, ch1pixel, ...]], [chip1id, [ch0pixel, ch1pixel, ...]], ... ]
-
create_chip_lookup
(chip_pixel_list)[source]¶ Create a chip+channel lookup based on pixel ID.
The input chip_pixel_list is of the form:
[ [chip0id, [ch0pixel, ch1pixel, ...]], [chip1id, [ch0pixel, ch1pixel, ...]], ... ]
The output is of the form:
{ pixel0id: {'channel': pixel0channel, 'chip': pixel0chip}, pixel1id: {'channel': pixel1channel, 'chip': pixel1chip}, ... }