nectarchain.trr_verification_package.utils.plot_deadtime_and_expo_fit#
- plot_deadtime_and_expo_fit(total_delta_t_for_busy_time, deadtime_us, run, verbose=False, output_plot=None, run_type=None, temp_output=None)[source]#
Compute the deadtime and exponential fit parameters for a given dataset.
- Parameters:
- total_delta_t_for_busy_timefloat
The total time of the dataset.
- deadtime_usnumpy.ndarray
The deadtime of the dataset in microseconds.
- runint
The run number.
- verbosebool
Whether to print the fit results or not.
- output_plotstr, optional
The path to save the output plot.
- run_typestr, optional
The run type, as extracted from ctapipe.containters.EventType
- temp_outputstr, optional
The path for the temporary output directory for the GUI for the deadtime tests
- Returns:
- deadtimefloat
The deadtime of the dataset.
- deadtime_binfloat
The bin edge corresponding to the deadtime.
- deadtime_errfloat
The error on the deadtime.
- deadtime_bin_lengthfloat
The length of the deadtime bin.
- total_delta_t_for_busy_timefloat
The total time of the dataset.
- parameter_A_newfloat
The amplitude parameter of the exponential fit.
- parameter_R_newfloat
The rate parameter of the exponential fit.
- parameter_A_err_newfloat
The error on the amplitude parameter.
- parameter_R_err_newfloat
The error on the rate parameter.
- first_bin_lengthfloat
The length of the first bin.
- tot_nr_events_histoint
The total number of events in the histogram.