nectarchain.trr_test_suite.pix_couple_tim_uncertainty.main#

main()[source]#

Generates a plot of the RMS of the time-of-maximum (TOM) difference for pairs of pixels, with a visualization of the CTA requirement.

The script processes a list of runs, calculates the TOM difference with and without transit time corrections, and plots the distribution of the RMS of the corrected TOM differences. The CTA requirement of 2 ns RMS is visualized on the plot.

The script takes several command-line arguments, including the list of runs to process, the number of events to process per run, the path to a CSV file with PMT transit time corrections, and the output directory for the plot.

If a temporary output directory is specified, the plot is also saved to a pickle file in that directory for the gui to use.