|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
convert_tplatencies.py is a script that takes the huge ta latencies CSV output when running the emulation with --latencies enabled, and converts it to a simpler per-TA format. The raw HDF5 output from that emulation run also needs to be provided to the script to extract the TCs. This script will not deal with the TC latencies output. Each row represents one TA created, and the columns represent:
time_start to the very last TP that results in TA being made (inclusive).The new CSV is saved in the same folder as the large CSV input, with the same name but and extra _simplified postfix before the file extension.
There are two compulsory inputs for the script to run:
--latencies or -l is the .csv file with the full ta latency output from the process_tpstream executable.--raw or -r is the .hdf5 output file from the process_tpstream executable.