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_file
str Path to an input DL2 data file
- quality_cuts
str Quality cuts applied to the input events
- event_type
str 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_dl2
str Type of the weight for averaging telescope-wise DL2 parameters - “simple”, “variance” or “intensity” are allowed
- input_file
- Returns:
- event_table
astropy.table.table.QTable Table of the MC DL2 events surviving the cuts
- on_time
astropy.units.quantity.Quantity ON time of the input data
- deadc
float Dead time correction factor
- event_table
- Raises:
ValueErrorIf the input event type is not known