diff --git a/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc b/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc index 4ce764dfd0b6e0e0fbd129202e6b715687308b0d..ec0c4e1300d1a8224b5c108d91496783c31ecca8 100755 --- a/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc +++ b/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc @@ -57,7 +57,8 @@ inline Amg::Vector3D GeoMDTHit::getGlobalPosition() const { HitID hitid = m_hit->MDTid(); - MdtHitIdHelper* mdthhelper = MdtHitIdHelper::GetHelper(s_mdtID->tubeMax()); + const MdtIdHelper* mdtID = mgr()->mdtIdHelper(); + MdtHitIdHelper* mdthhelper = MdtHitIdHelper::GetHelper(mdtID->tubeMax()); std::string stname = mdthhelper->GetStationName(hitid); int steta = mdthhelper->GetZSector(hitid); @@ -66,7 +67,6 @@ inline Amg::Vector3D GeoMDTHit::getGlobalPosition() const { int tl = mdthhelper->GetLayer(hitid); int tube = mdthhelper->GetTube(hitid); - const MdtIdHelper* mdtID = mgr()->mdtIdHelper(); Identifier offid = mdtID->channelID(stname, steta, stphi,ml,tl,tube);