52 ExtraMaterial::add(GeoPhysVol* parent, GeoFullPhysVol* fullparent,
const std::string& region,
double zParent) {
53 ATH_MSG_DEBUG(
"Adding Extra material for region: " << region <<
", zParent = " << zParent);
55 for (
unsigned int i = 0; i <
m_xMatTable->size(); i++) {
56 std::ostringstream volnamestr;
57 volnamestr <<
"ExtraMaterial" << i;
61 if ((*
m_xMatTable)[i]->getString(
"REGION") == region) {
65 std::string errorMessage(
"Null pointer to Stored Material Manager!");
67 throw std::runtime_error(errorMessage);
72 const GeoShape* shape = tubeHelper.
buildShape();
73 GeoLogVol* logVol =
new GeoLogVol(volnamestr.str(), shape, material);
74 GeoPhysVol* physVol =
new GeoPhysVol(logVol);
79 tubeHelper.
placeVolume(fullparent, physVol, zParent);