Geant4  10.00.p03
G4GeometryManager Class Reference

#include <G4GeometryManager.hh>

+ Collaboration diagram for G4GeometryManager:

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 G4GeometryManagerGetInstance ()
 

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
 

Detailed Description

Definition at line 55 of file G4GeometryManager.hh.

Constructor & Destructor Documentation

G4GeometryManager::G4GeometryManager ( )
protected

Definition at line 69 of file G4GeometryManager.cc.

Referenced by GetInstance().

+ Here is the caller graph for this function:

Member Function Documentation

void G4GeometryManager::BuildOptimisations ( G4bool  allOpt,
G4bool  verbose = false 
)
private

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometryManager::BuildOptimisations ( G4bool  allOpt,
G4VPhysicalVolume vol 
)
private
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(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), G4MaterialScanner::StoreUserActions(), and G4TheRayTracer::StoreUserActions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometryManager::DeleteOptimisations ( )
private

Definition at line 283 of file G4GeometryManager.cc.

References G4LogicalVolumeStore::GetInstance(), G4LogicalVolume::GetVoxelHeader(), n, and G4LogicalVolume::SetVoxelHeader().

Referenced by DeleteOptimisations(), and OpenGeometry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4GeometryManager::DeleteOptimisations ( G4VPhysicalVolume vol)
private

Definition at line 300 of file G4GeometryManager.cc.

References DeleteOptimisations(), G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetNoDaughters(), G4LogicalVolume::GetVoxelHeader(), and G4LogicalVolume::SetVoxelHeader().

+ Here is the call graph for this function:

G4GeometryManager * G4GeometryManager::GetInstance ( void  )
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(), F01DetectorConstruction::ConstructCalorimeter(), F02DetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructCalorimeter(), F03DetectorConstruction::ConstructCalorimeter(), ExN03DetectorConstruction::ConstructCalorimeter(), Em10DetectorConstruction::ConstructDetectorXTR(), RMC01DetectorConstruction::ConstructSimpleGeometry(), DetectorConstruction::ConstructVolumes(), G4TheRayTracer::CreateBitMap(), ElectronBenchmarkDetector::CreateGeometry(), B2aDetectorConstruction::DefineVolumes(), B2bDetectorConstruction::DefineVolumes(), G4MaterialScanner::DoScan(), export_G4GeometryManager(), main(), G4RunManager::ReinitializeGeometry(), G4RunManagerKernel::ResetNavigator(), CML2AcceleratorConstruction::rotateAccelerator(), G4GDMLMessenger::SetNewValue(), G4MaterialScanner::StoreUserActions(), G4TheRayTracer::StoreUserActions(), HadrontherapyDetectorConstruction::UpdateGeometry(), IORTDetectorConstruction::UpdateGeometry(), and G4RunManagerKernel::~G4RunManagerKernel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4GeometryManager::IsGeometryClosed ( )

Definition at line 125 of file G4GeometryManager.cc.

References fIsClosed.

Referenced by G4GeometryMessenger::CheckGeometry(), and export_G4GeometryManager().

+ Here is the caller graph for this function:

void G4GeometryManager::OpenGeometry ( G4VPhysicalVolume vol = 0)
void G4GeometryManager::ReportVoxelStats ( std::vector< G4SmartVoxelStat > &  stats,
G4double  totalCpuTime 
)
staticprivate

Definition at line 345 of file G4GeometryManager.cc.

References G4cout, G4endl, left, perMillion, right, and G4INCL::CrossSections::total().

Referenced by BuildOptimisations().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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(), B2aDetectorConstruction::DefineVolumes(), B2bDetectorConstruction::DefineVolumes(), and export_G4GeometryManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4ThreadLocal G4GeometryManager * G4GeometryManager::fgInstance = 0
staticprivate

Definition at line 92 of file G4GeometryManager.hh.

Referenced by GetInstance().

G4bool G4GeometryManager::fIsClosed
private

Definition at line 93 of file G4GeometryManager.hh.

Referenced by CloseGeometry(), IsGeometryClosed(), and OpenGeometry().


The documentation for this class was generated from the following files: