FitIntensityScan
- class lstchain.tools.lstchain_fit_intensity_scan.FitIntensityScan(**kwargs: Any)
Bases:
Tool
Tool that generates a HDF5 file with the results of the fit of the signal of an intensity scan (filter scan in the case of LST), this is useful to estimate the quadratic noise term to include in the standard F-factor formula
To be run with lstchain_fit_intensity_scan –config config.json
Attributes Summary
An instance of a Python dict.
Fit parameters initalization [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
()Set up the tool.
start
()loop to fit each pixel
Attributes Documentation
- aliases: StrDict
An instance of a Python dict.
One or more traits can be passed to the constructor to validate the keys and/or values of the dict. If you need more detailed validation, you may use a custom validator method.
Changed in version 5.0: Added key_trait for validating dict keys.
Changed in version 5.0: Deprecated ambiguous
trait
,traits
args in favor ofvalue_trait
,per_key_traits
.
- fit_initialization
Fit parameters initalization [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()
Set up the tool.
This method runs after the configuration and command line options have been parsed.
Here the tool should construct all
Components
, open files, etc.
- start()
loop to fit each pixel