g4ppyy: automated Python bindings for GEANT4

Patrick Stowell,Robert Foster,Almahdi Elhamri
2024-12-07
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.
High Energy Physics - Experiment
What problem does this paper attempt to address?