View on GitHub

Geant4 Zero to Hero

The Definitive Guide for End Users

Replicated Placement

Detector Definition YouTube

Geant4 basic example B4 (also extended example movies) demonstrates how to fill a parent volume entirely with the same daughter volume multiple times (replicas) in C++. Replicated placement is also available in pure text description of Geant4 geometry, and is demonstrated in detector.tg,

// replicate volume, layer, 10 times in volume, calorimeter
:repl layer calorimeter Z 10 15

The resulting geometry can be animated using mingle.mac (or gears.mac) assuming [MinGLE][] (or [GEARS][]) is available:

git clone https://github.com/jintonic/geant4
cd geant4/detector/replica
G4VIS_DEFAULT_DRIVER=TSG_FILE mingle mingle.mac