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_file
str Path to an input MC 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 with the MC DL2 events surviving the cuts
- pointing
np.ndarray Telescope pointing direction (zd, az) in the unit of degree
- sim_info
pyirf.simulations.SimulatedEventsInfo Container of the simulation information
- event_table
- Raises:
ValueErrorIf the input event type is not known