magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

create_irf#

magicctapipe.scripts.create_irf(input_file_gamma, input_file_proton, input_file_electron, output_dir, config)[source]#

Processes MC DL2 events and creates the IRFs.

Parameters:
input_file_gammastr

Path to an input gamma MC DL2 data file

input_file_protonstr

Path to an input proton MC DL2 data file

input_file_electronstr

Path to an input electron MC DL2 data file

output_dirstr

Path to a directory where to save an output IRF file

configdict

Configuration for the LST-1 + MAGIC analysis

Raises:
RuntimeError

If the pointing direction does not match between the input MCs

ValueError

If the input type of gammaness or theta cut is not known