English

g4ppyy: automated Python bindings for GEANT4

High Energy Physics - Experiment 2024-12-10 v1

Abstract

GEANT4 is a particle physics simulation tool used to develop and optimize radiation detectors. While C++ based examples exist, Python's growing popularity necessitates the development of a more accessible Python bindings interface. This work demonstrates the use of cppyy, the automated C++-Python binding package, to provide an accessible interface for developing applications with GEANT4. Coupled with newly developed Python visualization tools and a Python-specific helper layer, we demonstrate the suitability of the interface for use in constructing simplistic simulation scenarios showing some initial benchmarking studies when compared to a pure C++ equivalent simulation example.

Keywords

Cite

@article{arxiv.2412.05593,
  title  = {g4ppyy: automated Python bindings for GEANT4},
  author = {Patrick Stowell and Robert Foster and Almahdi Elhamri},
  journal= {arXiv preprint arXiv:2412.05593},
  year   = {2024}
}

Comments

14 pages, 4 figures