EffectiveAreaMakerBase#
- class ctapipe.irf.irfs.EffectiveAreaMakerBase(**kwargs: Any)[source]#
Bases:
DefaultTrueEnergyBins
Base class for calculating the effective area.
Methods Summary
__call__
(events, spatial_selection_applied, ...)Calculate the effective area and create a fits binary table HDU in GADF format.
Methods Documentation
- abstract __call__(events: QTable, spatial_selection_applied: bool, signal_is_point_like: bool, sim_info: SimulatedEventsInfo, extname: str = 'EFFECTIVE AREA') BinTableHDU [source]#
Calculate the effective area and create a fits binary table HDU in GADF format.
- Parameters:
- events: astropy.table.QTable
Reconstructed events to be used.
- spatial_selection_applied: bool
If a direction cut was applied on
events
, passTrue
, elseFalse
.- signal_is_point_like: bool
If
events
were simulated only at a single point in the field of view, passTrue
, elseFalse
.- sim_info: pyirf.simulations.SimulatedEventsInfoa
The overall statistics of the simulated events.
- extname: str
Name of the BinTableHDU.
- Returns:
- BinTableHDU