From bf8d2b03868222ef7392365a30d3bca74e863951 Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <fwinkl@cern>
Date: Tue, 8 Dec 2020 14:48:05 +0100
Subject: [PATCH] MuonRecExample: add TrackingVolumesSvc to ConfigDb

`TrackingVolumesSvc` was missing in  the "ConfigDb" and caused warnings
during job configuration.
---
 .../MuonRecExample/python/MuonRecExampleConfigDb.py            | 1 +
 .../MuonReconstruction/MuonRecExample/python/MuonRecTools.py   | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py
index b0641d06257..9c67652a919 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py
+++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py
@@ -39,6 +39,7 @@ addTool( "MuonRecExample.MuonRecTools.MuonHoughPatternTool", "MuonHoughPatternTo
 addTool( "MuonRecExample.MuonRecTools.MuonHoughPatternFinderTool", "MuonHoughPatternFinderTool" )
 
 addService("MuonRecExample.MuonRecTools.AtlasTrackingGeometrySvc","AtlasTrackingGeometrySvc")
+addService("MuonRecExample.MuonRecTools.TrackingVolumesSvc","TrackingVolumesSvc")
 
 addTool( "MuonRecExample.MuonRecTools.MuonNavigator", "MuonNavigator" )
 
diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
index 7bf882c5ee1..1480d72a1ab 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
+++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
@@ -188,6 +188,9 @@ def AtlasTrackingGeometrySvc(name="AtlasTrackingGeometrySvc",**kwargs):
     from TrkDetDescrSvc.AtlasTrackingGeometrySvc import AtlasTrackingGeometrySvc
     return AtlasTrackingGeometrySvc
 
+def TrackingVolumesSvc(name="TrackingVolumesSvc",**kwargs):
+    from TrkDetDescrSvc.TrkDetDescrSvcConf import Trk__TrackingVolumesSvc
+    return Trk__TrackingVolumesSvc("TrackingVolumesSvc")
 
 # default muon navigator
 def MuonNavigator(name = "MuonNavigator",**kwargs):
-- 
GitLab