SensitivityMakerBase#
- class ctapipe.irf.benchmarks.SensitivityMakerBase(**kwargs: Any)[source]#
 Bases:
DefaultRecoEnergyBinsBase class for calculating the point source sensitivity.
This uses
pyirf.binning.create_bins_per_decadeto create an energy binning with exactlyreco_energy_n_bins_per_decadebins per decade, to comply with CTAO requirements. All other benchmarks/ IRF components prioritize respecting the lower and upper bounds for the energy binning over creating exactlyn_bins_per_decadebins per decade.Attributes Summary
Size ratio of on region / off region.
Methods Summary
__call__(signal_events, background_events, ...)Calculate the point source sensitivity based on
pyirf.sensitivity.calculate_sensitivity.Attributes Documentation
- alpha#
 Size ratio of on region / off region.
Methods Documentation
- abstract __call__(signal_events: QTable, background_events: QTable, spatial_selection_table: QTable, gamma_spectrum: Spectra, extname: str = 'SENSITIVITY') BinTableHDU[source]#
 Calculate the point source sensitivity based on
pyirf.sensitivity.calculate_sensitivity.- Parameters:
 - signal_events: astropy.table.QTable
 Reconstructed signal events to be used.
- background_events: astropy.table.QTable
 Reconstructed background events to be used.
- spatial_selection_table: QTable
 Direction cut that was applied on
signal_events.- gamma_spectrum: ctapipe.irf.Spectra
 Spectra by which to scale the relative sensitivity to get the flux sensitivity.
- extname: str
 Name of the BinTableHDU.
- Returns:
 - BinTableHDU