effective_area_per_energy_and_fov

pyirf.irf.effective_area_per_energy_and_fov(selected_events, simulation_info, true_energy_bins, fov_offset_bins)[source]

Calculate effective area in bins of true energy and field of view offset.

Parameters:
selected_events: astropy.table.QTable

DL2 events table, required columns for this function: - true_energy - true_source_fov_offset

simulation_info: pyirf.simulations.SimulatedEventsInfo

The overall statistics of the simulated events

true_energy_bins: astropy.units.Quantity[energy]

The true energy bin edges in which to calculate effective area.

fov_offset_bins: astropy.units.Quantity[angle]

The field of view radial bin edges in which to calculate effective area.