English

MinGLE: A Minimalist, Configurable, and Pedagogical Geant4 Application Template

High Energy Physics - Experiment 2026-01-14 v1 Computational Physics

Abstract

The Geant4 toolkit is the leading software for the simulation of particle transport through matter, widely used in nuclear physics, high-energy physics, and medical physics. However, the initial learning curve for new developers can be steep, often due to the complexity and experiment-specific nature of many introductory examples. This paper introduces MinGLE (Mini Geant4 Learning Example), a dedicated application template designed to be a universal, flexible, and educational starting point for Geant4 projects. MinGLE achieves a complete, functional simulation kernel using fewer than 70 lines of core C++ code. This minimalism is realized by leveraging contemporary Geant4 features, including factory classes for run management and physics, and the Text Geometry format for detector definition. Furthermore, MinGLE employs a unique pedagogical structure, using Git tags to document the incremental development of eleven core Geant4 components, with each tagged version being fully compilable, executable, and testable, providing a clear, step-by-step learning resource.

Keywords

Cite

@article{arxiv.2601.08469,
  title  = {MinGLE: A Minimalist, Configurable, and Pedagogical Geant4 Application Template},
  author = {Jing Liu},
  journal= {arXiv preprint arXiv:2601.08469},
  year   = {2026}
}

Comments

submitted to CPC

R2 v1 2026-07-01T09:02:37.262Z