Geant4  10.01.p02
G4tgbVolumeMgr Class Reference

#include <G4tgbVolumeMgr.hh>

+ Collaboration diagram for G4tgbVolumeMgr:

Public Member Functions

 G4tgbVolumeMgr ()
 
 ~G4tgbVolumeMgr ()
 
void AddTextFile (const G4String &fname)
 
G4VPhysicalVolumeReadAndConstructDetector ()
 
void CopyVolumes ()
 
G4tgbVolumeFindVolume (const G4String &volname)
 
void RegisterMe (const G4tgbVolume *vol)
 
void RegisterMe (const G4VSolid *solid)
 
void RegisterMe (const G4LogicalVolume *lv)
 
void RegisterMe (const G4VPhysicalVolume *pv)
 
void RegisterChildParentLVs (const G4LogicalVolume *logvol, const G4LogicalVolume *parentLV)
 
G4VSolidFindG4Solid (const G4String &name)
 
G4LogicalVolumeFindG4LogVol (const G4String &theName, const G4bool bExists=0)
 
G4VPhysicalVolumeFindG4PhysVol (const G4String &theName, const G4bool bExists=0)
 
G4VPhysicalVolumeGetTopPhysVol ()
 
G4LogicalVolumeGetTopLogVol ()
 
void BuildPhysVolTree ()
 
void DumpSummary ()
 
void DumpG4LogVolTree ()
 
void DumpG4LogVolLeaf (const G4LogicalVolume *lv, unsigned int leafDepth)
 
void DumpG4PhysVolTree ()
 
void DumpG4PhysVolLeaf (const G4VPhysicalVolume *pv, unsigned int leafDepth)
 
void DumpG4SolidList ()
 
const std::multimap< G4String,
G4VSolid * > & 
GetSolids () const
 
void SetDetectorBuilder (G4tgbDetectorBuilder *db)
 
G4tgbDetectorBuilderGetDetectorBuilder () const
 

Static Public Member Functions

static G4tgbVolumeMgrGetInstance ()
 

Private Attributes

G4mssvol theVolumeList
 
G4mmssol theSolids
 
G4mmslv theLVs
 
G4mmspv thePVs
 
G4mlvlv theLVTree
 
G4mlvlv theLVInvTree
 
G4mpvpv thePVTree
 
G4mpvpv thePVInvTree
 
G4tgbDetectorBuildertheDetectorBuilder
 

Static Private Attributes

static G4ThreadLocal
G4tgbVolumeMgr
theInstance = 0
 

Detailed Description

Definition at line 66 of file G4tgbVolumeMgr.hh.

Constructor & Destructor Documentation

G4tgbVolumeMgr::G4tgbVolumeMgr ( )

Definition at line 56 of file G4tgbVolumeMgr.cc.

References G4ReflectionFactory::Instance(), mm, G4ReflectionFactory::SetScalePrecision(), and theDetectorBuilder.

Referenced by GetInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4tgbVolumeMgr::~G4tgbVolumeMgr ( )

Definition at line 66 of file G4tgbVolumeMgr.cc.

References theDetectorBuilder, and theInstance.

Member Function Documentation

void G4tgbVolumeMgr::AddTextFile ( const G4String fname)

Definition at line 85 of file G4tgbVolumeMgr.cc.

References G4tgrFileReader::AddTextFile(), and G4tgrFileReader::GetInstance().

Referenced by ExTGDetectorConstruction::Construct(), ExTGDetectorConstructionWithSD::Construct(), ExTGDetectorConstructionWithCuts::Construct(), and ExTGDetectorConstructionWithCpp::Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::BuildPhysVolTree ( )

Definition at line 343 of file G4tgbVolumeMgr.cc.

void G4tgbVolumeMgr::CopyVolumes ( )

Definition at line 149 of file G4tgbVolumeMgr.cc.

References G4tgrVolumeMgr::GetInstance(), G4tgrVolumeMgr::GetVolumeMap(), and RegisterMe().

Referenced by G4tgbDetectorConstruction::Construct(), and G4tgbDetectorBuilder::ConstructDetector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpG4LogVolLeaf ( const G4LogicalVolume lv,
unsigned int  leafDepth 
)

Definition at line 411 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, and G4LogicalVolume::GetName().

Referenced by DumpG4LogVolTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpG4LogVolTree ( )

Definition at line 400 of file G4tgbVolumeMgr.cc.

References DumpG4LogVolLeaf(), G4cout, G4endl, and GetTopLogVol().

Referenced by DumpSummary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpG4PhysVolLeaf ( const G4VPhysicalVolume pv,
unsigned int  leafDepth 
)

Definition at line 448 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, and G4VPhysicalVolume::GetName().

Referenced by DumpG4PhysVolTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpG4PhysVolTree ( )

Definition at line 437 of file G4tgbVolumeMgr.cc.

References DumpG4PhysVolLeaf(), G4cout, G4endl, and GetTopPhysVol().

Referenced by DumpSummary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpG4SolidList ( )

Definition at line 388 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, and theSolids.

Referenced by DumpSummary().

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::DumpSummary ( )
G4LogicalVolume * G4tgbVolumeMgr::FindG4LogVol ( const G4String theName,
const G4bool  bExists = 0 
)

Definition at line 239 of file G4tgbVolumeMgr.cc.

References FatalException, G4Exception(), and theLVs.

Referenced by ExTGRCRegionCutsMgr::BuildRegions(), ExTGDetectorConstructionWithCpp::Construct(), G4tgbVolume::ConstructG4PhysVol(), G4tgbVolume::ConstructG4Volumes(), and ExTGDetectorConstructionWithSD::ConstructSDandField().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VPhysicalVolume * G4tgbVolumeMgr::FindG4PhysVol ( const G4String theName,
const G4bool  bExists = 0 
)

Definition at line 260 of file G4tgbVolumeMgr.cc.

References FatalException, G4Exception(), and thePVs.

+ Here is the call graph for this function:

G4VSolid * G4tgbVolumeMgr::FindG4Solid ( const G4String name)

Definition at line 178 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, G4tgrMessenger::GetVerboseLevel(), and theSolids.

Referenced by G4tgbVolume::FindOrConstructG4Solid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4tgbVolume * G4tgbVolumeMgr::FindVolume ( const G4String volname)

Definition at line 164 of file G4tgbVolumeMgr.cc.

References FatalException, G4Exception(), and theVolumeList.

Referenced by G4tgbDetectorConstruction::Construct(), G4tgbDetectorBuilder::ConstructDetector(), G4tgbVolume::ConstructG4PhysVol(), and G4tgbVolume::ConstructG4Volumes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4tgbDetectorBuilder* G4tgbVolumeMgr::GetDetectorBuilder ( ) const
inline

Definition at line 135 of file G4tgbVolumeMgr.hh.

References theDetectorBuilder.

G4tgbVolumeMgr * G4tgbVolumeMgr::GetInstance ( void  )
static

Definition at line 74 of file G4tgbVolumeMgr.cc.

References G4tgbVolumeMgr(), and theInstance.

Referenced by ExTGRCRegionCutsMgr::BuildRegions(), ExTGDetectorConstructionWithCpp::Construct(), ExTGDetectorConstructionWithSD::Construct(), ExTGDetectorConstruction::Construct(), ExTGDetectorConstructionWithCuts::Construct(), G4tgbDetectorConstruction::Construct(), G4tgbDetectorBuilder::ConstructDetector(), G4tgbVolume::ConstructG4PhysVol(), G4tgbVolume::ConstructG4Volumes(), ExTGDetectorConstructionWithSD::ConstructSDandField(), and G4tgbVolume::FindOrConstructG4Solid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const std::multimap< G4String, G4VSolid* >& G4tgbVolumeMgr::GetSolids ( ) const
inline

Definition at line 131 of file G4tgbVolumeMgr.hh.

References theSolids.

G4LogicalVolume * G4tgbVolumeMgr::GetTopLogVol ( )

Definition at line 299 of file G4tgbVolumeMgr.cc.

References FatalException, G4cout, G4endl, G4Exception(), G4LogicalVolume::GetName(), G4tgrMessenger::GetVerboseLevel(), and theLVInvTree.

Referenced by DumpG4LogVolTree(), and GetTopPhysVol().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VPhysicalVolume * G4tgbVolumeMgr::GetTopPhysVol ( )

Definition at line 281 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, G4VPhysicalVolume::GetName(), G4LogicalVolume::GetName(), GetTopLogVol(), G4tgrMessenger::GetVerboseLevel(), second, and thePVs.

Referenced by G4tgbDetectorBuilder::ConstructDetector(), DumpG4PhysVolTree(), and DumpSummary().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4VPhysicalVolume * G4tgbVolumeMgr::ReadAndConstructDetector ( )

Definition at line 92 of file G4tgbVolumeMgr.cc.

References G4tgbDetectorBuilder::ConstructDetector(), G4tgbDetectorBuilder::ReadDetector(), and theDetectorBuilder.

Referenced by ExTGDetectorConstruction::Construct(), ExTGDetectorConstructionWithSD::Construct(), and ExTGDetectorConstructionWithCpp::Construct().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::RegisterChildParentLVs ( const G4LogicalVolume logvol,
const G4LogicalVolume parentLV 
)

Definition at line 139 of file G4tgbVolumeMgr.cc.

References theLVInvTree, and theLVTree.

Referenced by G4tgbVolume::ConstructG4Volumes().

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::RegisterMe ( const G4tgbVolume vol)

Definition at line 100 of file G4tgbVolumeMgr.cc.

References G4tgbVolume::GetName(), and theVolumeList.

Referenced by G4tgbVolume::ConstructG4Volumes(), and CopyVolumes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4tgbVolumeMgr::RegisterMe ( const G4VSolid solid)

Definition at line 108 of file G4tgbVolumeMgr.cc.

References G4VSolid::GetName(), and theSolids.

+ Here is the call graph for this function:

void G4tgbVolumeMgr::RegisterMe ( const G4LogicalVolume lv)

Definition at line 116 of file G4tgbVolumeMgr.cc.

References G4cout, G4endl, G4LogicalVolume::GetName(), G4tgrMessenger::GetVerboseLevel(), and theLVs.

+ Here is the call graph for this function:

void G4tgbVolumeMgr::RegisterMe ( const G4VPhysicalVolume pv)

Definition at line 131 of file G4tgbVolumeMgr.cc.

References G4VPhysicalVolume::GetName(), and thePVs.

+ Here is the call graph for this function:

void G4tgbVolumeMgr::SetDetectorBuilder ( G4tgbDetectorBuilder db)
inline

Definition at line 133 of file G4tgbVolumeMgr.hh.

References theDetectorBuilder.

Referenced by ExTGDetectorConstructionWithCuts::Construct().

+ Here is the caller graph for this function:

Member Data Documentation

G4tgbDetectorBuilder* G4tgbVolumeMgr::theDetectorBuilder
private
G4ThreadLocal G4tgbVolumeMgr * G4tgbVolumeMgr::theInstance = 0
staticprivate

Definition at line 140 of file G4tgbVolumeMgr.hh.

Referenced by GetInstance(), and ~G4tgbVolumeMgr().

G4mlvlv G4tgbVolumeMgr::theLVInvTree
private

Definition at line 157 of file G4tgbVolumeMgr.hh.

Referenced by GetTopLogVol(), and RegisterChildParentLVs().

G4mmslv G4tgbVolumeMgr::theLVs
private

Definition at line 149 of file G4tgbVolumeMgr.hh.

Referenced by DumpSummary(), FindG4LogVol(), and RegisterMe().

G4mlvlv G4tgbVolumeMgr::theLVTree
private

Definition at line 154 of file G4tgbVolumeMgr.hh.

Referenced by RegisterChildParentLVs().

G4mpvpv G4tgbVolumeMgr::thePVInvTree
private

Definition at line 164 of file G4tgbVolumeMgr.hh.

G4mmspv G4tgbVolumeMgr::thePVs
private

Definition at line 151 of file G4tgbVolumeMgr.hh.

Referenced by DumpSummary(), FindG4PhysVol(), GetTopPhysVol(), and RegisterMe().

G4mpvpv G4tgbVolumeMgr::thePVTree
private

Definition at line 161 of file G4tgbVolumeMgr.hh.

G4mmssol G4tgbVolumeMgr::theSolids
private

Definition at line 146 of file G4tgbVolumeMgr.hh.

Referenced by DumpG4SolidList(), DumpSummary(), FindG4Solid(), GetSolids(), and RegisterMe().

G4mssvol G4tgbVolumeMgr::theVolumeList
private

Definition at line 142 of file G4tgbVolumeMgr.hh.

Referenced by FindVolume(), and RegisterMe().


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