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