Skip to content
Snippets Groups Projects
Commit 8ff7146f authored by Nicolas Köhler's avatar Nicolas Köhler
Browse files

remove MagneticFieldSvcCfg from MuonSegmentMatchingTool new config

parent 40129343
1 merge request!32430Use AtlasFieldCacheCondObj instead of IMagFieldSvc in MuonSegmentMakerTools
......@@ -182,7 +182,6 @@ def MooTrackBuilderCfg(flags, name="MooTrackBuilderTemplate", **kwargs):
# Not bothering with MuonSegmentMatchingToolTight - just pass in TightSegmentMatching=True
def MuonSegmentMatchingToolCfg(flags, name="MuonSegmentMatchingTool", **kwargs):
Muon__MuonSegmentMatchingTool=CompFactory.Muon.MuonSegmentMatchingTool
from MagFieldServices.MagFieldServicesConfig import MagneticFieldSvcCfg
kwargs.setdefault( "doThetaMatching", flags.Muon.useSegmentMatching)
kwargs.setdefault( "doPhiMatching", False )
......@@ -196,11 +195,6 @@ def MuonSegmentMatchingToolCfg(flags, name="MuonSegmentMatchingTool", **kwargs):
# m_pairMatchingTool("Muon::MuonSegmentPairMatchingTool/MuonSegmentPairMatchingTool"),
# Also, residual pull calculator not yet configured. #FIXME
result = MagneticFieldSvcCfg(flags)
magfieldsvc = result.getPrimary()
kwargs.setdefault( "MagFieldSvc", magfieldsvc )
matching = Muon__MuonSegmentMatchingTool(name, **kwargs)
result.setPrivateTools(matching)
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment