37 #include <Geant4/G4LogicalVolume.hh>
48 const G4LogicalVolume*
const logvol)
50 std::cout <<
"G4GDML: Writing setup..." << std::endl;
52 const G4String worldref =
GenerateName(logvol->GetName(),logvol);
54 xercesc::DOMElement* setupElement =
NewElement(
"setup");
55 setupElement->setAttributeNode(
NewAttribute(
"version",
"1.0"));
56 setupElement->setAttributeNode(
NewAttribute(
"name",
"Default"));
57 xercesc::DOMElement* worldElement =
NewElement(
"world");
58 worldElement->setAttributeNode(
NewAttribute(
"ref",worldref));
59 setupElement->appendChild(worldElement);
60 gdmlElement->appendChild(setupElement);