Pyg4ometry: A Tool to Create Geometries for Geant4, BDSIM, G4Beamline and FLUKA for Particle Loss and Energy Deposit Studies

Stewart Boogert, Andrey Abramov, Joshua Albrecht, Gian Luigi D'Alessandro, Laurence Nevay, William Shields, Stuart Walker

Research output: Chapter in Book/Report/Conference proceedingConference contribution


Studying the energy deposits in accelerator components, mechanical supports, services, ancillary equipment and shielding requires a detailed computer readable description of the component geometry. The creation of geometries is a significant bottleneck in producing complete simulation models and reducing the effort required will provide the abil- ity of non-experts to simulate the effects of beam losses on realistic accelerators. The paper describes a flexible and easy to use Python package to create geometries usable by either Geant4 (and so BDSIM or G4Beamline) or FLUKA either from scratch or by conversion from common engineering formats, such as STEP or IGES created by industry standard CAD/CAM packages. The conversion requires an intermediate conversion to STL or similar triangular or tetrahedral tessellation description. A key capability of pyg4ometry is to mix GDML/STEP/STL geometries and visualisation of the resulting geometry and determine if there are any geometric overlaps. An example conversion of a complex geometry used in Geant4/BDSIM is presented.
Original languageEnglish
Title of host publication10th International Particle Accelerator Conference
PublisherJACoW Publishing
Number of pages4
ISBN (Electronic)978-3-95450-208-0
Publication statusPublished - 21 Jun 2019
Event10th International Particle Accelerator Conference, IPAC 2019 - Melbourne, Australia
Duration: 19 May 201924 May 2019


Conference10th International Particle Accelerator Conference, IPAC 2019

Cite this