angular_resolution#

protopipe.perf.angular_resolution(events, energy_bins, energy_type='true')[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”.

Returns
resultastropy.table.Table

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