angular_resolution

pyirf.benchmarks.angular_resolution(events, energy_bins, energy_type='true', quantile=0.6826894921370859)[source]

Calculate the angular resolution.

This implementation corresponds to the 68% containment of the angular distance distribution.

Parameters:
eventsastropy.table.QTable

Astropy Table object containing the reconstructed events information.

energy_bins: numpy.ndarray(dtype=float, ndim=1)

Bin edges in energy.

energy_type: str

Either “true” or “reco” energy. Default is “true”.

quantilefloat

Which quantile to use for the angular resolution, by default, the containment of the 1-sigma region of the normal distribution (~68%) is used.

Returns:
resultastropy.table.QTable

QTable containing the 68% containment of the angular distance distribution per each reconstructed energy bin.