45{
46 msg(MSG::DEBUG) <<
"Building Pixel Service Material" <<
endmsg;
47
48 DecodeVersionKey indetVersionKey(
geoDbTagSvc(),
"InnerDetector");
49 DecodeVersionKey pixelVersionKey(
geoDbTagSvc(),
"Pixel");
50
52
53
55
57
58
59
64
65
66
67
68 for (
unsigned int ii =0; ii < pixelGenServices->
size(); ii++) {
69
70 InDetDD::GenericTubeMaker tubeHelper((*pixelGenServices)[ii]);
71 const GeoShape * serviceTubeTmp = tubeHelper.buildShape();
72
73 std::string logName = tubeHelper.name();
74 if (logName.empty()) {
75 std::ostringstream o; o << ii;
76 logName = "ServMat"+o.str();
77 }
78 logName = "Pix" + logName;
79
80 const GeoShape* serviceTube = serviceTubeTmp;
81
82 std::string materialName = tubeHelper.materialName();
83
85
86 const GeoLogVol* servLog = new GeoLogVol(logName,serviceTube,material);
87 GeoVPhysVol* servPhys = new GeoPhysVol(servLog);
88
89 tubeHelper.placeVolume(mother, servPhys);
90
91 }
92}
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
virtual unsigned int size() const =0
InDetMaterialManager * materialManager()
const IGeoDbTagSvc * geoDbTagSvc() const
InDetMaterialManager * m_materialManager
IRDBAccessSvc * rdbAccessSvc()
InDetDD::AthenaComps * getAthenaComps()
std::unique_ptr< InDetMaterialManager > m_materialManagerUnique
const GeoMaterial * getMaterial(const std::string &materialName)
Get material. First looks for locally defined material and if not found looks in GeoModel material ma...