Import Geant4 10.5.1 source tree

This commit is contained in:
Gabriele Cosmo
2019-04-17 10:39:02 +02:00
parent a7fdc52004
commit 28a70706e0
661 changed files with 55791 additions and 106984 deletions
@@ -209,6 +209,12 @@ void G4GDMLWriteMaterials::MaterialWrite(const G4Material* const materialPtr)
void G4GDMLWriteMaterials::PropertyVectorWrite(const G4String& key,
const G4PhysicsOrderedFreeVector* const pvec)
{
for (size_t i=0; i<propertyList.size(); i++) // Check if property is
{ // already in the list!
if (propertyList[i] == pvec) { return; }
}
propertyList.push_back(pvec);
const G4String matrixref = GenerateName(key, pvec);
xercesc::DOMElement* matrixElement = NewElement("matrix");
matrixElement->setAttributeNode(NewAttribute("name", matrixref));
@@ -292,6 +298,7 @@ void G4GDMLWriteMaterials::MaterialsWrite(xercesc::DOMElement* element)
isotopeList.clear();
elementList.clear();
materialList.clear();
propertyList.clear();
}
void G4GDMLWriteMaterials::AddIsotope(const G4Isotope* const isotopePtr)