Skip to content

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

… position instead of the averaged one.

Required for cases when telescope postion in MC is not fixed (e.g. for
MAGIC).
…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.
@IevgenVovk IevgenVovk requested a review from mstrzys October 24, 2023 05:47
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.

2 participants