Sensitivity2dMaker#
- class ctapipe.irf.Sensitivity2dMaker(**kwargs: Any)[source]#
Bases:
SensitivityMakerBase
,DefaultFoVOffsetBins
Calculates the point source sensitivity in bins of reconstructed energy and fov offset.
Methods Summary
__call__
(signal_events, background_events, ...)Calculate the point source sensitivity based on
pyirf.sensitivity.calculate_sensitivity
.Methods Documentation
- __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