16 #include "G4VPhysicalVolume.hh"
23 using namespace DD4hep::Simulation;
29 for (Geant4PlacementPath::const_reverse_iterator pIt = path.rbegin(); pIt != path.rend(); ++pIt) {
30 s +=
"/"; s += (*pIt)->GetName();
34 for (Geant4PlacementPath::const_iterator pIt = path.begin(); pIt != path.end(); ++pIt) {
35 s +=
"/"; s += (*pIt)->GetName();
42 Geant4GeometryInfo::Geant4GeometryInfo()
43 :
TNamed(
"Geant4GeometryInfo",
"Geant4GeometryInfo"), m_world(0), valid(false) {
53 throw runtime_error(
"Geant4GeometryInfo: Attempt to access invalid world placement");
58 Geant4GeometryMaps::PlacementMap::const_iterator g4it =
g4Placements.find(node);
59 G4VPhysicalVolume* g4 = (g4it ==
g4Placements.end()) ? 0 : (*g4it).second;
61 throw runtime_error(
"Geant4GeometryInfo: Attempt to SET invalid world placement");
void setWorld(const TGeoNode *node)
Set the world volume.
std::vector< const G4VPhysicalVolume * > Geant4PlacementPath
virtual ~Geant4GeometryInfo()
Default destructor.
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
G4VPhysicalVolume * world() const
The world placement.
Geant4GeometryMaps::PlacementMap g4Placements
G4VPhysicalVolume * m_world