Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic MC support #5

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from
Draft

Magic MC support #5

wants to merge 33 commits into from

Conversation

IevgenVovk
Copy link
Collaborator

@IevgenVovk IevgenVovk commented Oct 24, 2023

Support for MAGIC Monte Carlo files via ROOT -> HDF5 converter.

Changes:

  • new magic_to_dl2 converter to transform the MAGIC ROOT-format MC files ("Melibea" level) to minimally necessary DL2-level HDF5. Optionally splits MC into "pointings" following a HEALPix grid of the specified resolution, which allows to keep the rest of the simulation logic (largely based on SimTel fixed pointing approach) intact;
  • adds support for different focal lengths based on the telescope ID to enable both LST and MAGIC camera coordinate system transformations;
  • fixes compatibility with the recent dependency modules versions.

Presently missing:

  • "off" data loading or ROOT->HDF5 conversion;
  • support for ROOT output in MAGIC format
  • test if the generated "minimal" HDF5 files are sufficient for gammapy

Ievgen Vovk added 30 commits October 18, 2023 18:40
… position instead of the averaged one.

Required for cases when telescope postion in MC is not fixed (e.g. for
MAGIC).
Ievgen Vovk added 3 commits October 24, 2023 13:48
…elescope position instead of the averaged one."

This reverts commit 1704aba.
Reason: commit breaks the MCSample.dndo() logic, which needs to be
substantially revised before implementing it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant