Geant4-11
|
#include <G4GeometryManager.hh>
Public Member Functions | |
G4bool | CloseGeometry (G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=nullptr) |
void | OpenGeometry (G4VPhysicalVolume *vol=nullptr) |
void | SetWorldMaximumExtent (G4double worldExtent) |
~G4GeometryManager () | |
Static Public Member Functions | |
static G4GeometryManager * | GetInstance () |
static G4GeometryManager * | GetInstanceIfExist () |
static G4bool | IsGeometryClosed () |
Protected Member Functions | |
G4GeometryManager ()=default | |
Private Member Functions | |
void | BuildOptimisations (G4bool allOpt, G4bool verbose=false) |
void | BuildOptimisations (G4bool allOpt, G4VPhysicalVolume *vol) |
void | DeleteOptimisations () |
void | DeleteOptimisations (G4VPhysicalVolume *vol) |
Static Private Member Functions | |
static void | ReportVoxelStats (std::vector< G4SmartVoxelStat > &stats, G4double totalCpuTime) |
Static Private Attributes | |
static G4ThreadLocal G4GeometryManager * | fgInstance = nullptr |
static G4ThreadLocal G4bool | fIsClosed = false |
Definition at line 52 of file G4GeometryManager.hh.
G4GeometryManager::~G4GeometryManager | ( | ) |
Definition at line 65 of file G4GeometryManager.cc.
References fgInstance, and fIsClosed.
|
protecteddefault |
Referenced by GetInstance().
Definition at line 155 of file G4GeometryManager.cc.
References FatalException, G4cout, G4endl, G4Exception(), G4LogicalVolume::GetDaughter(), G4LogicalVolumeStore::GetInstance(), G4LogicalVolume::GetName(), G4LogicalVolume::GetNoDaughters(), G4VPhysicalVolume::GetRegularStructureId(), G4Timer::GetSystemElapsed(), G4Timer::GetUserElapsed(), G4LogicalVolume::GetVoxelHeader(), G4VPhysicalVolume::IsReplicated(), G4LogicalVolume::IsToOptimise(), kMinVoxelVolumesLevel1, CLHEP::detail::n, ReportVoxelStats(), G4LogicalVolume::SetVoxelHeader(), G4Timer::Start(), and G4Timer::Stop().
Referenced by BuildOptimisations(), and CloseGeometry().
|
private |
Definition at line 231 of file G4GeometryManager.cc.
References BuildOptimisations(), FatalException, G4cout, G4endl, G4Exception(), G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetName(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetVoxelHeader(), G4VPhysicalVolume::IsReplicated(), G4LogicalVolume::IsToOptimise(), kMinVoxelVolumesLevel1, and G4LogicalVolume::SetVoxelHeader().
G4bool G4GeometryManager::CloseGeometry | ( | G4bool | pOptimise = true , |
G4bool | verbose = false , |
||
G4VPhysicalVolume * | vol = nullptr |
||
) |
Definition at line 78 of file G4GeometryManager.cc.
References BuildOptimisations(), and fIsClosed.
Referenced by G4GeometryMessenger::CheckGeometry(), G4TheRayTracer::CreateBitMap(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::HandleStandaloneInitialization(), G4RunManagerKernel::ResetNavigator(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
|
private |
Definition at line 289 of file G4GeometryManager.cc.
References G4LogicalVolumeStore::GetInstance(), G4LogicalVolume::GetVoxelHeader(), CLHEP::detail::n, and G4LogicalVolume::SetVoxelHeader().
Referenced by DeleteOptimisations(), and OpenGeometry().
|
private |
Definition at line 306 of file G4GeometryManager.cc.
References DeleteOptimisations(), G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetVoxelHeader(), and G4LogicalVolume::SetVoxelHeader().
|
static |
Definition at line 132 of file G4GeometryManager.cc.
References fgInstance, and G4GeometryManager().
Referenced by G4GeometryMessenger::CheckGeometry(), G4ErrorPropagatorManager::CloseGeometry(), ExN03DetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructVolumes(), G4TheRayTracer::CreateBitMap(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::HandleStandaloneInitialization(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::ResetNavigator(), G4GDMLMessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and G4RunManagerKernel::~G4RunManagerKernel().
|
static |
Definition at line 145 of file G4GeometryManager.cc.
References fgInstance.
Referenced by G4RunManagerKernel::~G4RunManagerKernel().
|
static |
Definition at line 122 of file G4GeometryManager.cc.
References fIsClosed.
Referenced by G4GeometryMessenger::CheckGeometry(), G4LogicalVolumeStore::Clean(), G4PhysicalVolumeStore::Clean(), G4RegionStore::Clean(), G4SolidStore::Clean(), G4AssemblyStore::Clean(), and export_G4GeometryManager().
void G4GeometryManager::OpenGeometry | ( | G4VPhysicalVolume * | vol = nullptr | ) |
Definition at line 102 of file G4GeometryManager.cc.
References DeleteOptimisations(), and fIsClosed.
Referenced by G4GeometryMessenger::CheckGeometry(), G4ErrorPropagatorManager::CloseGeometry(), ExN03DetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructVolumes(), G4TheRayTracer::CreateBitMap(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::HandleStandaloneInitialization(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::ResetNavigator(), G4GDMLMessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), and G4RunManagerKernel::~G4RunManagerKernel().
|
staticprivate |
Definition at line 351 of file G4GeometryManager.cc.
References G4cout, G4endl, perMillion, and G4INCL::CrossSections::total().
Referenced by BuildOptimisations().
void G4GeometryManager::SetWorldMaximumExtent | ( | G4double | worldExtent | ) |
Definition at line 332 of file G4GeometryManager.cc.
References FatalException, G4Exception(), G4SolidStore::GetInstance(), G4GeometryTolerance::GetInstance(), and G4GeometryTolerance::SetSurfaceTolerance().
Referenced by export_G4GeometryManager().
|
staticprivate |
Definition at line 99 of file G4GeometryManager.hh.
Referenced by GetInstance(), GetInstanceIfExist(), and ~G4GeometryManager().
|
staticprivate |
Definition at line 100 of file G4GeometryManager.hh.
Referenced by CloseGeometry(), IsGeometryClosed(), OpenGeometry(), and ~G4GeometryManager().