nectarchain.trr_test_suite.pedestal.main#

main()[source]#

The main function that runs the pedestal subtraction test. It parses command-line arguments, processes the specified runs, and generates two plots:

  1. A 2D heatmap of the pedestal RMS for all events and pixels.

  2. A line plot of the mean pedestal RMS for each pixel, with the CTA requirement range highlighted.

The function also saves the generated plots to the specified output directory, and optionally saves the first plot to a temporary output file.