g4system
Loading...
Searching...
No Matches

Thin wrapper that stores the Geant4 solid/logical/physical triple for one GEMC volume. More...

#include <memory>
#include "glogger.h"
#include "G4FieldManager.hh"
#include "G4LogicalVolume.hh"
#include "G4VPhysicalVolume.hh"
#include "G4VSolid.hh"
Include dependency graph for g4volume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  G4Volume
 Convenience container holding a Geant4 solid, logical, and physical volume. More...
 

Detailed Description

g4system factories progressively build Geant4 geometry in three stages:

  1. create a G4VSolid
  2. wrap it into a G4LogicalVolume (material + visualization)
  3. place it into the geometry tree as a G4VPhysicalVolume

This class caches the three pointers so that different build steps can share the same already-created objects without having to re-query Geant4 stores.

Note
This wrapper does not own any Geant4 object. Pointer lifetimes are managed by Geant4 stores and by the code that registers volumes into those stores.

Definition in file g4volume.h.