|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4GeometryWorkspace is a class managing the per-thread state of the geometry, spanning those which have a per-thread state and their dependents. In particular, it owns the arrays that implement 'split' classes and owns classes/objects which are owned by the split classes. More...
#include <G4GeometryWorkspace.hh>
Public Types | |
| using | pool_type = G4TWorkspacePool<G4GeometryWorkspace> |
Public Member Functions | |
| G4GeometryWorkspace () | |
| ~G4GeometryWorkspace ()=default | |
| void | UseWorkspace () |
| void | ReleaseWorkspace () |
| void | DestroyWorkspace () |
| void | InitialiseWorkspace () |
Static Public Member Functions | |
| static pool_type * | GetPool () |
Protected Member Functions | |
| void | InitialisePhysicalVolumes () |
| G4bool | CloneReplicaSolid (G4PVReplica *) |
G4GeometryWorkspace is a class managing the per-thread state of the geometry, spanning those which have a per-thread state and their dependents. In particular, it owns the arrays that implement 'split' classes and owns classes/objects which are owned by the split classes.
Definition at line 63 of file G4GeometryWorkspace.hh.
Definition at line 67 of file G4GeometryWorkspace.hh.
| G4GeometryWorkspace::G4GeometryWorkspace | ( | ) |
Constructor and default Destructor.
Definition at line 50 of file G4GeometryWorkspace.cc.
|
default |
|
protected |
Creates a clone of the solid for the given replica in this thread.
Definition at line 141 of file G4GeometryWorkspace.cc.
Referenced by InitialisePhysicalVolumes().
| void G4GeometryWorkspace::DestroyWorkspace | ( | ) |
Definition at line 189 of file G4GeometryWorkspace.cc.
Referenced by G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
|
static |
Static accessor returning the global geometry pool.
Definition at line 43 of file G4GeometryWorkspace.cc.
Referenced by G4WorkerThread::BuildGeometryAndPhysicsVector(), G4WorkerThread::DestroyGeometryAndPhysicsVector(), G4VisManager::G4VisSubThread(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
|
protected |
Initialises the workspace for all physical volumes in the store.
Definition at line 108 of file G4GeometryWorkspace.cc.
Referenced by InitialiseWorkspace().
| void G4GeometryWorkspace::InitialiseWorkspace | ( | ) |
Initialisation of the workspace. To be called at start of each run (especially 2nd and further runs).
Definition at line 174 of file G4GeometryWorkspace.cc.
Referenced by G4GeometryWorkspace(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().
| void G4GeometryWorkspace::ReleaseWorkspace | ( | ) |
Definition at line 97 of file G4GeometryWorkspace.cc.
| void G4GeometryWorkspace::UseWorkspace | ( | ) |
Methods for the handling of the workspace. To take/release ownership and destroy.
Definition at line 78 of file G4GeometryWorkspace.cc.