read_DL2_pyirf#

protopipe.perf.read_DL2_pyirf(infile, run_header)[source]#

Read a DL2 HDF5 protopipe file and adapt them to pyirf format.

Parameters
infile: str or pathlib.Path

Path to the input fits file

run_header: dict

Dictionary with info about simulated particle informations

Returns
events: astropy.QTable

Astropy Table object containing the reconstructed events information.

simulated_events: ~pyirf.simulations.SimulatedEventsInfo