From 939aa43c9d2b7500df4dbb15c954209242baab2a Mon Sep 17 00:00:00 2001
From: abarton <Adam.Edward.Barton@cern.ch>
Date: Fri, 2 Oct 2020 16:35:47 +0100
Subject: [PATCH] fix for broken compilation

---
 .../GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc b/DetectorDescription/GeoModel/GeoAdaptors/GeoAdaptors/GeoMuonHits.icc
index 4ce764dfd0b..ec0c4e1300d 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);
-- 
GitLab