From 4b4e1ac4634ab46ea9840ad0bbb327f35d495eda Mon Sep 17 00:00:00 2001
From: Jon Burr <jon.burr@cern.ch>
Date: Thu, 3 Dec 2020 11:15:10 +0100
Subject: [PATCH] Add MuonGeoModelCfg to the tracking geometry svc

---
 Tracking/TrkConfig/python/AtlasTrackingGeometrySvcConfig.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Tracking/TrkConfig/python/AtlasTrackingGeometrySvcConfig.py b/Tracking/TrkConfig/python/AtlasTrackingGeometrySvcConfig.py
index ee09b77c6b7..66077f23ed2 100644
--- a/Tracking/TrkConfig/python/AtlasTrackingGeometrySvcConfig.py
+++ b/Tracking/TrkConfig/python/AtlasTrackingGeometrySvcConfig.py
@@ -242,6 +242,9 @@ def TrackingGeometrySvcCfg( flags , name = 'AtlasTrackingGeometrySvc', doMateria
 
     if flags.Detector.GeometryMuon:
       # Copied from from MuonTrackingGeometry.ConfiguredMuonTrackingGeometry import MuonTrackingGeometryBuilder
+      # Add the muon geometry model to the CA
+      from MuonConfig.MuonGeometryConfig import MuonGeoModelCfg
+      result.merge(MuonGeoModelCfg(flags))
       Muon__MuonStationTypeBuilder=CompFactory.Muon.MuonStationTypeBuilder
       muonStationTypeBuilder= Muon__MuonStationTypeBuilder(name = 'MuonStationTypeBuilder')
     
-- 
GitLab