Skip to content

zoglauer/megalib

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91cf203 · Mar 19, 2025
Sep 30, 2020
Mar 18, 2025
Feb 11, 2025
Jul 24, 2024
Sep 15, 2022
Mar 19, 2025
Jan 22, 2025
Mar 29, 2022
Jan 30, 2017
Jun 3, 2024
Jun 3, 2024
Feb 27, 2023
Mar 17, 2022
Nov 17, 2023
Jan 12, 2021
Jan 22, 2025
Jan 8, 2025

Repository files navigation

MEGAlib - the Medium-Energy Gamma-ray Astronomy library

Overview

The Medium Energy Gamma-ray Astronomy library (MEGAlib) is a set of software tools which are designed to simulate, calibrate, and analyze data of hard X-ray and gamma-ray detectors, with a specialization on Compton telescopes. While MEGAlib was originally developed for astrophysics, it has been expanded and used for ground based applications such as medical imaging and environmental monitoring. The library comprises all necessary data analysis steps for these telescopes, from simulation/measurements via calibration, event reconstruction to image reconstruction.

MEGAlib contains a geometry and detector description tool for the detailed modeling of different detector types and characteristics, and provides an easy to use simulation program based on Geant4. For different Compton telescope detector types (electron tracking, multiple Compton or time of flight based) specialized Compton event reconstruction algorithms are implemented in different approaches (Chi-square and Bayesian). The high level data analysis tools allow to calculate response matrices, perform image deconvolution (specialized in list-mode-likelihood-based Compton image reconstruction), determine detector resolutions and sensitivities, retrieve spectra, determine polarization modulations, etc.

For a more complete list of features and more documentation please visit MEGAlib's homepage.

Installation

To run, MEGAlib requires ROOT and Geant4 to be installed. MEGAlib's setup.sh script will automatically install the correct version of those libraries for you. For all the installation details, please consult the setup page on MEGAlib's homepage.