TP latencies to TA latencies converter script¶
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 taken to process the very last TP, which results in a TA being made.
-
Time taken to process all the TPs from TA's
time_startto the very last TP that results in TA being made (inclusive). -
Time taken to process all the TPs in TA's window.
-
Mean TP processing time extracted from the TA's window.
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:
-
--latenciesor-lis the.csvfile with the full ta latency output from theprocess_tpstreamexecutable. -
--rawor-ris the.hdf5output file from theprocess_tpstreamexecutable.
Example¶
python convert_tplatencies.py -r file.hdf5 -l ta_timings_file.csv
Last git commit to the markdown source of this page:
Author: Artur Sztuc
Date: Wed May 8 17:21:47 2024 +0200
If you see a problem with the documentation on this page, please file an Issue at https://github.com/DUNE-DAQ/trgtools/issues