23 const std::map<std::string, G4Material*>& materials) {
25 for (
const auto& [stepName, g4mat] : materials) {
26 matMap.
Add(stepName, g4mat);
32 }
catch (
const std::exception& ex) {
33 throw std::runtime_error(
"G4OCCT_STEPAssembly: failed to import '" + path +
"' (" + ex.what() +
Declaration of G4OCCTAssemblyVolume.
Declaration of G4OCCTMaterialMap.
int G4OCCT_ImportSTEPAssembly(const std::string &path, const std::map< std::string, G4Material * > &materials)
Firewall bridge between the DD4hep plugin TU and G4OCCT/OCCT.
Extends Geant4's G4AssemblyVolume with an OCCT XDE label reference.
const std::map< G4String, G4OCCTLogicalVolume * > & GetLogicalVolumes() const
static G4OCCTAssemblyVolume * FromSTEP(const std::string &path, const G4OCCTMaterialMap &materialMap)
Maps STEP material names to Geant4 G4Material objects.
void Add(const G4String &stepName, G4Material *material)