89 void constructGeo(Geant4DetectorConstructionContext* ctxt)
override {
90 Geant4Mapping& g4map = Geant4Mapping::instance();
91 DetElement world = ctxt->description.world();
94 conv.debugMaterials = m_debugMaterials;
95 conv.debugElements = m_debugElements;
96 conv.debugShapes = m_debugShapes;
97 conv.debugVolumes = m_debugVolumes;
98 conv.debugRegions = m_debugRegions;
99 conv.debugSurfaces = m_debugSurfaces;
100 conv.debugPlacements = m_debugPlacements;
101 conv.debugReflections = m_debugReflections;
102 conv.debugLimits = m_debugLimits;
103 conv.printPlacements = m_printPlacements;
104 conv.printSensitives = m_printSensitives;
106 ctxt->geometry = conv.create(world).detach();
107 ctxt->geometry->printLevel =
static_cast<PrintLevel
>(m_geoInfoPrintLevel);
108 g4map.attach(ctxt->geometry);
110 G4VPhysicalVolume* w = ctxt->geometry->world();
111 context()->kernel().setWorld(w);
113 g4map.debugVolManager = m_debugVolManager;
114 g4map.haveVolManager = m_haveVolManager;
115 if (m_haveVolManager) {
116 g4map.volumeManager();
118 if (m_dumpHierarchy != 0) {
119 Geant4HierarchyDump dmp(ctxt->description, m_dumpHierarchy);