|
Lines 230-237
Link Here
|
| 230 |
propElement->setAttributeNode(NewAttribute("name", mpos->first)); |
230 |
propElement->setAttributeNode(NewAttribute("name", mpos->first)); |
| 231 |
propElement->setAttributeNode(NewAttribute("ref", |
231 |
propElement->setAttributeNode(NewAttribute("ref", |
| 232 |
GenerateName(mpos->first, mpos->second))); |
232 |
GenerateName(mpos->first, mpos->second))); |
| 233 |
PropertyVectorWrite(mpos->first, mpos->second); |
233 |
if (mpos->second) |
| 234 |
matElement->appendChild(propElement); |
234 |
{ |
|
|
235 |
PropertyVectorWrite(mpos->first, mpos->second); |
| 236 |
matElement->appendChild(propElement); |
| 237 |
} |
| 238 |
else |
| 239 |
{ |
| 240 |
G4cout << "G4GDML: null pointer for material property " << mpos->first << " of material " << mat->GetName() << G4endl; |
| 241 |
continue; |
| 242 |
} |
| 235 |
} |
243 |
} |
| 236 |
for (cpos=cmap->begin(); cpos!=cmap->end(); cpos++) |
244 |
for (cpos=cmap->begin(); cpos!=cmap->end(); cpos++) |
| 237 |
{ |
245 |
{ |