Commit 2624f035 authored by Moritz Huetten's avatar Moritz Huetten
Browse files

Merge branch 'dev-mhuetten-unify-datamc' into 'master'

Dev mhuetten unify datamc

See merge request !2
parents 0e97a041 aee62552
Pipeline #65840 failed with stage
......@@ -30,3 +30,22 @@ with MAGICEventSource(input_url=file_name) as source:
...some processing...
The reader also works with multiple files parsed as wildcards, e.g.,
This is necessary to load and match stereo events, which are automatically created if data files from M1 and M2 for the same run are loaded.
The reader is able to handle data or Monte Carlo files, which are automatically recognized. Note that the file names have to follow the convention:
- `*_M[1-2]_RUNNUMBER.SUBRUNNR_Y_*.root` for data
- `*_M[1-2]_za??to??_?_RUNNUMBER_Y_*.root` for Monte Carlos.
Note that currently, when loading multiple runs at once, the event ID is not unique.
#### Changelog
- v0.1: Initial version
- v0.2.0: Unification of data and MC reading
This diff is collapsed.
......@@ -10,7 +10,7 @@ with open(path.join(this_directory, ''), encoding='utf-8') as f:
description='ctapipe plugin for reading of the calibrated MAGIC files',
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment