allpix::GeometryConstructionG4

Constructs the Geant4 geometry during Geant4 initialization.

#include <GeometryConstructionG4.hpp>

Inherits from G4VUserDetectorConstruction

Public Functions

Name
GeometryConstructionG4(GeometryManager * geo_manager, Configuration & config)
Constructs geometry construction module.
G4VPhysicalVolume * Construct() override
Constructs the world geometry with all detectors.

Public Functions Documentation

function GeometryConstructionG4

GeometryConstructionG4(
    GeometryManager * geo_manager,
    Configuration & config
)

Constructs geometry construction module.

Parameters:

  • geo_manager Pointer to the geometry manager, containing the detectors
  • config Configuration object of the geometry builder module

function Construct

G4VPhysicalVolume * Construct() override

Constructs the world geometry with all detectors.

Return: Physical volume representing the world

First initializes all the materials. Then constructs the world from the internally calculated world size with a certain margin. Finally builds all the individual detectors.


Updated on 2024-12-13 at 08:31:36 +0000