124 G4cout <<
" G4tgbVolumeMgr::RegisterMe() - Logical volume registered: "
143 const_cast<G4LogicalVolume*>(parentLV);
145 const_cast<G4LogicalVolume*>(logvol);
152 G4mapsvol::iterator cite;
154 for(cite = vollist.begin(); cite != vollist.end(); cite++)
166 G4mssvol::const_iterator cite =
theVolumeList.find( volname );
169 G4String ErrMessage =
"G4tgbVolume not found: " + volname +
" !";
170 G4Exception(
"G4tgbVolumeMgr::FindVolume()",
"InvalidSetup",
173 return (*cite).second;
183 G4cout <<
" G4tgbVolumeMgr::FindG4Solid() - " << name <<
G4endl;
188 std::pair<G4mmssol::iterator, G4mmssol::iterator> mmssdi;
191 if( mmssdi.first != mmssdi.second ) {
192 G4mmssol::const_iterator mmsscite = mmssdi.first;
197 G4cout <<
" G4tgbVolumeMgr::FindG4Solid() - Solid finding "
215 oldSolid = (*mmsscite).second;
219 G4cout <<
" G4tgbVolumeMgr::FindG4Solid() - Solid already found "
228 G4cout <<
" G4tgbVolumeMgr::FindG4Solid() - Old solid: "
241 G4mmslv::const_iterator mscite =
theLVs.find( name );
242 if( mscite ==
theLVs.end() )
246 G4String ErrMessage =
"Logical volume name " + name +
" not found !";
247 G4Exception(
"G4tgbVolumeMgr::FindG4LogVol()",
"InvalidSetup",
254 return (*mscite).second;
262 G4mmspv::const_iterator mscite =
thePVs.find( name );
263 if( mscite ==
thePVs.end() )
267 G4String ErrMessage =
"Physical volume name " + name +
" not found !";
268 G4Exception(
"G4tgbVolumeMgr::FindG4PhysVol()",
"InvalidSetup",
275 return (*mscite).second;
289 G4cout <<
" G4tgbVolumeMgr::GetTopPhysVol() - pv: "
306 G4cout <<
" G4tgbVolumeMgr::GetTopLogVol theLVInvTresize "
312 G4Exception(
"G4tgbVolumeMgr::GetTopLogVol()",
"InvalidSetup",
331 G4cout <<
" G4tgbVolumeMgr::GetTopPhysVol: lv "
361 G4cout <<
" @@@@@@@@@@@@@ Dumping Geant4 geometry objects Summary " <<
G4endl;
362 G4cout <<
" @@@ Geometry built inside world volume: "
369 G4cout <<
" Number of G4Isotope's: "
371 G4cout <<
" Number of G4Element's: "
373 G4cout <<
" Number of G4Material's: "
377 G4cout <<
" Number of G4RotationMatrix's: "
390 G4mmssol::const_iterator cite;
393 G4cout <<
"G4SOLID: " << (*cite).second->GetName()
394 <<
" of type " << (*cite).second->GetEntityType() <<
G4endl;
402 G4cout <<
" @@@@@@@@@@@@@ DUMPING G4LogicalVolume's Tree " <<
G4endl;
412 unsigned int leafDepth)
414 for(
size_t ii=0; ii < leafDepth; ii++ )
439 G4cout <<
" @@@@@@@@@@@@@ DUMPING G4PhysicalVolume's Tree " <<
G4endl;
449 unsigned int leafDepth)
451 for(
size_t ii=0; ii < leafDepth; ii++ )
static G4tgrFileReader * GetInstance()
static G4int GetVerboseLevel()
static G4tgbMaterialMgr * GetInstance()
static constexpr double mm
static G4ThreadLocal G4tgbVolumeMgr * theInstance
const G4msg4mate GetG4MaterialList() const
G4tgbDetectorBuilder * theDetectorBuilder
const G4msg4elem GetG4ElementList() const
G4VPhysicalVolume * ReadAndConstructDetector()
static constexpr double second
std::map< G4String, G4tgrVolume * > G4mapsvol
static G4tgbVolumeMgr * GetInstance()
void DumpG4LogVolLeaf(const G4LogicalVolume *lv, unsigned int leafDepth)
void SetScalePrecision(G4double scaleValue)
const G4String & GetName() const
void AddTextFile(const G4String &fname)
const G4mapsvol & GetVolumeMap()
G4LogicalVolume * GetTopLogVol()
G4VPhysicalVolume * FindG4PhysVol(const G4String &theName, const G4bool bExists=0)
void RegisterMe(const G4tgbVolume *vol)
G4VSolid * FindG4Solid(const G4String &name)
virtual const G4tgrVolume * ReadDetector()
virtual G4VPhysicalVolume * ConstructDetector(const G4tgrVolume *tgrVoltop)
const G4msg4isot GetG4IsotopeList() const
G4LogicalVolume * FindG4LogVol(const G4String &theName, const G4bool bExists=0)
G4VPhysicalVolume * GetTopPhysVol()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void DumpG4PhysVolLeaf(const G4VPhysicalVolume *pv, unsigned int leafDepth)
void AddTextFile(const G4String &fname)
static G4tgbRotationMatrixMgr * GetInstance()
G4GLOB_DLL std::ostream G4cout
const G4msg4rotm & GetG4RotMatList() const
G4tgbVolume * FindVolume(const G4String &volname)
static G4tgrVolumeMgr * GetInstance()
const G4String & GetName() const
void RegisterChildParentLVs(const G4LogicalVolume *logvol, const G4LogicalVolume *parentLV)
const G4String & GetName() const
static G4ReflectionFactory * Instance()