MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetGDMLFile

Method SetGDMLFile

examples/advanced/gorad/src/GRDetectorConstruction.cc:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89{ ; }
90
91G4bool GRDetectorConstruction::SetGDMLFile(G4String& gdml)
92{
93 G4bool valid = true; // parser->IsValid(gdml); ## GDML parser fix needed
94 if(valid)
95 {
96 if(initialized)
97 {
98 parser->Clear();
99 G4RunManager::GetRunManager()->ReinitializeGeometry(true);
100 }
101 gdmlFile = gdml;
102 }
103 return valid;
104}
105
106void GRDetectorConstruction::Read()
107{

Callers 1

SetNewValueMethod · 0.80

Calls 2

ReinitializeGeometryMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected