load_dl2_data_file#

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

Loads a DL2 data file for processing to DL3.

Parameters:
input_filestr

Path to an input 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 of the MC DL2 events surviving the cuts

on_timeastropy.units.quantity.Quantity

ON time of the input data

deadcfloat

Dead time correction factor

Raises:
ValueError

If the input event type is not known