Geant4
10.02
|
#include <G4GeometryManager.hh>
Public Member Functions | |
G4bool | CloseGeometry (G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=0) |
void | OpenGeometry (G4VPhysicalVolume *vol=0) |
G4bool | IsGeometryClosed () |
void | SetWorldMaximumExtent (G4double worldExtent) |
Static Public Member Functions | |
static G4GeometryManager * | GetInstance () |
Protected Member Functions | |
G4GeometryManager () | |
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) |
Private Attributes | |
G4bool | fIsClosed |
Static Private Attributes | |
static G4ThreadLocal G4GeometryManager * | fgInstance = 0 |
Definition at line 55 of file G4GeometryManager.hh.
|
protected |
Definition at line 69 of file G4GeometryManager.cc.
Referenced by GetInstance().
Definition at line 149 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, n, ReportVoxelStats(), G4LogicalVolume::SetVoxelHeader(), G4Timer::Start(), and G4Timer::Stop().
Referenced by BuildOptimisations(), and CloseGeometry().
|
private |
Definition at line 225 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 = 0 |
||
) |
Definition at line 81 of file G4GeometryManager.cc.
References BuildOptimisations(), and fIsClosed.
Referenced by CML2PhantomConstruction::applyNewCentre(), G4GeometryMessenger::CheckGeometry(), G4TheRayTracer::CreateBitMap(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::InitializeThread(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().
|
private |
Definition at line 283 of file G4GeometryManager.cc.
References G4LogicalVolumeStore::GetInstance(), G4LogicalVolume::GetVoxelHeader(), n, and G4LogicalVolume::SetVoxelHeader().
Referenced by DeleteOptimisations(), and OpenGeometry().
|
private |
Definition at line 300 of file G4GeometryManager.cc.
References DeleteOptimisations(), G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetVoxelHeader(), and G4LogicalVolume::SetVoxelHeader().
|
static |
Definition at line 135 of file G4GeometryManager.cc.
References fgInstance, and G4GeometryManager().
Referenced by CML2PhantomConstruction::applyNewCentre(), G4GeometryMessenger::CheckGeometry(), G4LogicalVolumeStore::Clean(), G4PhysicalVolumeStore::Clean(), G4SolidStore::Clean(), G4RegionStore::Clean(), G4ErrorPropagatorManager::CloseGeometry(), LXeDetectorConstruction::Construct(), F04DetectorConstruction::Construct(), ExN02DetectorConstruction::Construct(), WLSDetectorConstruction::Construct(), DetectorConstruction::ConstructCalorimeter(), F01DetectorConstruction::ConstructCalorimeter(), F02DetectorConstruction::ConstructCalorimeter(), ExN03DetectorConstruction::ConstructCalorimeter(), F03DetectorConstruction::ConstructCalorimeter(), Em10DetectorConstruction::ConstructDetectorXTR(), RMC01DetectorConstruction::ConstructSimpleGeometry(), DetectorConstruction::ConstructVolumes(), G4TheRayTracer::CreateBitMap(), ElectronBenchmarkDetector::CreateGeometry(), DetectorConstruction::DefineVolumes(), B2aDetectorConstruction::DefineVolumes(), B2bDetectorConstruction::DefineVolumes(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::InitializeThread(), main(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), G4GDMLMessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), XrayFluoPlaneDetectorConstruction::UpdateGeometry(), XrayFluoMercuryDetectorConstruction::UpdateGeometry(), XrayFluoDetectorConstruction::UpdateGeometry(), HadrontherapyDetectorConstruction::UpdateGeometry(), IORTDetectorConstruction::UpdateGeometry(), and G4RunManagerKernel::~G4RunManagerKernel().
G4bool G4GeometryManager::IsGeometryClosed | ( | ) |
Definition at line 125 of file G4GeometryManager.cc.
References fIsClosed.
Referenced by G4GeometryMessenger::CheckGeometry(), and export_G4GeometryManager().
void G4GeometryManager::OpenGeometry | ( | G4VPhysicalVolume * | vol = 0 | ) |
Definition at line 105 of file G4GeometryManager.cc.
References DeleteOptimisations(), and fIsClosed.
Referenced by CML2PhantomConstruction::applyNewCentre(), G4GeometryMessenger::CheckGeometry(), G4ErrorPropagatorManager::CloseGeometry(), LXeDetectorConstruction::Construct(), F04DetectorConstruction::Construct(), WLSDetectorConstruction::Construct(), DetectorConstruction::ConstructCalorimeter(), F01DetectorConstruction::ConstructCalorimeter(), F02DetectorConstruction::ConstructCalorimeter(), F03DetectorConstruction::ConstructCalorimeter(), ExN03DetectorConstruction::ConstructCalorimeter(), Em10DetectorConstruction::ConstructDetectorXTR(), RMC01DetectorConstruction::ConstructSimpleGeometry(), DetectorConstruction::ConstructVolumes(), G4TheRayTracer::CreateBitMap(), ElectronBenchmarkDetector::CreateGeometry(), DetectorConstruction::DefineVolumes(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), G4DNAChemistryManager::InitializeThread(), main(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), G4GDMLMessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), XrayFluoPlaneDetectorConstruction::UpdateGeometry(), XrayFluoMercuryDetectorConstruction::UpdateGeometry(), XrayFluoDetectorConstruction::UpdateGeometry(), and G4RunManagerKernel::~G4RunManagerKernel().
|
staticprivate |
Definition at line 345 of file G4GeometryManager.cc.
References G4cout, G4endl, left, perMillion, right, and G4INCL::CrossSections::total().
Referenced by BuildOptimisations().
void G4GeometryManager::SetWorldMaximumExtent | ( | G4double | worldExtent | ) |
Definition at line 326 of file G4GeometryManager.cc.
References FatalException, G4Exception(), G4GeometryTolerance::GetInstance(), G4SolidStore::GetInstance(), and G4GeometryTolerance::SetSurfaceTolerance().
Referenced by ExN02DetectorConstruction::Construct(), DetectorConstruction::DefineVolumes(), B2bDetectorConstruction::DefineVolumes(), B2aDetectorConstruction::DefineVolumes(), and export_G4GeometryManager().
|
staticprivate |
Definition at line 92 of file G4GeometryManager.hh.
Referenced by GetInstance().
|
private |
Definition at line 93 of file G4GeometryManager.hh.
Referenced by CloseGeometry(), IsGeometryClosed(), and OpenGeometry().