load_mc_dl2_data_file#

magicctapipe.io.load_mc_dl2_data_file(input_file, quality_cuts, event_type, weight_type_dl2)[source]#

Loads a MC DL2 data file for creating the IRFs.

Parameters:
input_filestr

Path to an input MC DL2 data file

quality_cutsstr

Quality cuts applied to the input events

event_typestr

Type of the events which will be used - “software” uses software coincident events, “software_only_3tel” uses only 3-tel combination events, “magic_only” uses only MAGIC-stereo combination events, and “hardware” uses all the telescope combination events

weight_type_dl2str

Type of the weight for averaging telescope-wise DL2 parameters - “simple”, “variance” or “intensity” are allowed

Returns:
event_tableastropy.table.table.QTable

Table with the MC DL2 events surviving the cuts

pointingnp.ndarray

Telescope pointing direction (zd, az) in the unit of degree

sim_infopyirf.simulations.SimulatedEventsInfo

Container of the simulation information

Raises:
ValueError

If the input event type is not known