g4system
Loading...
Searching...
No Matches

High-level builder that turns a GEMC world description into Geant4 geometry. More...

#include "gworld.h"
#include "g4volume.h"
#include "g4objectsFactories/g4objectsFactory.h"
#include "g4system/g4systemConventions.h"
#include <memory>
#include <string>
#include <unordered_map>
#include "G4NistManager.hh"
Include dependency graph for g4world.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  G4World
 Builds a full Geant4 geometry "world" from a GEMC GWorld description. More...
 

Detailed Description

G4World orchestrates the following phases:

  1. Create and initialize the Geant4 object factories used by each system.
  2. Build materials (including dependency-resolving material composition).
  3. Build default materials/elements/isotopes required by common detector configurations.
  4. Convert every GVolume into a G4Volume (solid/logical/physical), resolving mother/child dependencies.

The built volumes are cached in a map keyed by the Geant4 volume name, so later stages (for example field assignments) can locate volumes by name.

Note
Geant4 owns most created objects via its internal stores. This class primarily manages construction order and provides lookup helpers.

Definition in file g4world.h.