nectarchain.trr_test_suite.trigger_timing.main#
- main()[source]#
Runs the deadtime test script, which performs deadtime tests B-TEL-1260 and B-TEL-1270.
The script takes command-line arguments to specify the list of runs, corresponding sources, number of events to process, and output directory. It then processes the data for each run, performs an exponential fit to the deadtime distribution, and generates two plots:
A plot of deadtime percentage vs. collected trigger rate, with the CTA requirement indicated.
A plot of the rate from the fit vs. the collected trigger rate, with the relative difference shown in the bottom panel.
The script also saves the generated plots to the specified output directory, and optionally saves them to a temporary output directory for use in a GUI.