FitIntensityScan#
- class lstcam_calib.tools.create_fit_intensity_scan_file.FitIntensityScan(**kwargs: Any)#
Bases:
Tool
Tool that generates a file with the results of the fit of an intensity scan.
This is useful to estimate the quadratic noise term to include in the standard F-factor formula.
Attributes Summary
Fit parameters initialization [gain (ADC/pe), B term] for HG and LG
Constant fractional error assumed for the y fit coordinate (variance)
Gain channel to process (HG=0, LG=1)
directory with the input files
Prefix to select calibration files to fit
Path the output hdf5 file
Path to pdf file with check plots
List of runs
Signal range to include in the fit for [HG,LG] (camera median in [ADC])
Excess noise factor squared: 1+ Var(gain)/Mean(Gain)**2
Sub run number to process
Methods Summary
finish
()Write fit results in h5 file and the check-plots in pdf file.
setup
()Read input data.
start
()Loop to fit each pixel.
Attributes Documentation
- aliases: StrDict = {'gain-channels': 'FitIntensityScan.gain_channels', 'input-dir': 'FitIntensityScan.input_dir', 'input-prefix': 'FitIntensityScan.input_prefix', 'output-path': 'FitIntensityScan.output_path', 'plot-path': 'FitIntensityScan.plot_path', 'run-list': 'FitIntensityScan.run_list', 'signal-range': 'FitIntensityScan.signal_range', 'sub-run': 'FitIntensityScan.sub_run'}#
- fit_initialization#
Fit parameters initialization [gain (ADC/pe), B term] for HG and LG
- fractional_variance_error#
Constant fractional error assumed for the y fit coordinate (variance)
- gain_channels#
Gain channel to process (HG=0, LG=1)
- input_dir#
directory with the input files
- input_prefix#
Prefix to select calibration files to fit
- output_path#
Path the output hdf5 file
- plot_path#
Path to pdf file with check plots
- run_list#
List of runs
- signal_range#
Signal range to include in the fit for [HG,LG] (camera median in [ADC])
- squared_excess_noise_factor#
Excess noise factor squared: 1+ Var(gain)/Mean(Gain)**2
- sub_run#
Sub run number to process
Methods Documentation
- finish()#
Write fit results in h5 file and the check-plots in pdf file.
- setup()#
Read input data.
- start()#
Loop to fit each pixel.