Determining the Performance of Future High-energy Space Missions with MEGAlib

2018 HEAD Meeting: High Energy Astrophysics in the 2020’s and Beyond
March 20, 2018

The Medium-Energy Gamma-ray Astronomy library (MEGAlib) is a set of software tools for the simulation and data analysis of hard X-ray and gamma-ray instruments used for astrophysical and terrestrial applications.

The library includes all necessary data analysis tools for detector calibrations, simulations in the space and terrestrial radiation environment, visualization of detector and events, creation of various response files, reconstruction of events using conventional and machine learning tools, performing high-level analysis such as image reconstruction, polarization analysis, and many more. MEGAlib is open source and available at GitHub (, has a completely object-oriented design, is written in C++, and is based on ROOT and Geant4.

MEGAlib was from the ground up designed to be able to simulate a wide variety of instruments and technologies in the space radiation environment. This makes MEGAlib the perfect tool to determine the performance (e.g. sensitivity, effective area) of such instruments and perform trade-off studies between various designs and technologies. MEGAlib has been applied to a wide range of past (e.g. COMPTEL, MEGA, NCT, Hitomi), existing (e.g. COSI, GRIPS, NuSTAR), under construction (e.g. COSI-X, ComPair, BurstCube), and envisioned (e.g. AMEGO, eASTROGAM) instruments.

This poster contains more details and the latest developments in MEGAlib. It was presented by Andreas Zoglauer at the 2018 HEAD Meeting (High-Energy Astrophysics Division): High Energy Astrophysics in the 2020’s and Beyond, on 18–21 March 2018, in Rosemont, Illinois.