G4VG

May 23, 2025 ยท View on GitHub

G4VG builds a VecGeom geometry representation from a Geant4 user application using the in-memory Geant4 volume representation. The code is entirely derivative from Celeritas, written primarily by @sethrj and @mrguilima , and adapted to an independent repository with the help of @drbenmorgan and supervision of @agheata et al. The original code was inspired by similar conversion work done by @sawenzel and @jonapost in G4VecGeomNav.

Installation

G4VG can be installed with [Spack][spack], or using CMake to configure and build, using CMAKE_PREFIX_PATH to inform the configuration script of your existing VecGeom and Geant4 installations.

Development

A spack environment can be used to set up your development toolchain. Please install pre-commit to ensure that code is formatted properly:

$ pre-commit install
pre-commit installed at .git/hooks/pre-commit