Offline Storage

class larpixdaq.offline_storage.OfflineStorage(core_address, log_address, output_dir)[source]

Record all received packets in offline storage.

The offline storage script stores LArPix data to disk using the LArPix+HDF5 file format.

Variables
  • consumer – the xylem Consumer object used to receive data

  • state – the DAQ State of the xylem Consumer component

  • logger – the LArPix Logger object used to save data to disk. Can be None if current state is not READY or RUN.

Parameters
  • core_address – the full TCP address (including port number) of the DAQ core

  • log_address – the full TCP address (including port number) of the DAQ Log

  • output_dir – the directory to save all output files

handle_new_data(origin, header, data)[source]

Save new data to disk.

Parameters are defined by the xylem.EventHandler interface.

run()[source]

Initiate the event loop of reading and saving data.