From 6e054d076f7953f8fd371eb7555dafe7bc29dd5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20K=C3=B6hler?= <nicolas.koehler@cern.ch>
Date: Wed, 29 Apr 2020 13:57:11 +0200
Subject: [PATCH] fix unit test

---
 MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py b/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py
index 7565a65bb6ce..3f7d08d8082f 100644
--- a/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py
+++ b/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py
@@ -66,13 +66,7 @@ def MuonSeededSegmentFinderCfg(flags,name="MuonSeededSegmentFinder", **kwargs):
         
 def MuonSegmentMomentumFromFieldCfg(flags, name="MuonSegmentMomentumFromField", **kwargs):
     MuonSegmentMomentumFromField=CompFactory.MuonSegmentMomentumFromField
-    from MagFieldServices.MagFieldServicesConfig import MagneticFieldSvcCfg
-    
     result = ComponentAccumulator()
-    acc  = MagneticFieldSvcCfg(flags) 
-    magfieldsvc = acc.getPrimary()
-    result.merge(acc)
-    kwargs.setdefault("MagFieldSvc", magfieldsvc)
     
     navigator_ca = MuonNavigatorCfg(flags)
     navigator = navigator_ca.popPrivateTools()
-- 
GitLab