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

use BField.allToroidOn where possible

parent ae14ee1b
1 merge request!32430Use AtlasFieldCacheCondObj instead of IMagFieldSvc in MuonSegmentMakerTools
......@@ -186,10 +186,10 @@ def MuonSegmentMatchingToolCfg(flags, name="MuonSegmentMatchingTool", **kwargs):
kwargs.setdefault( "doThetaMatching", flags.Muon.useSegmentMatching)
kwargs.setdefault( "doPhiMatching", False )
kwargs.setdefault( "ToroidOn", True ) # Was "not jobproperties.BField.allToroidOn()" but do not have access to Field here.
if flags.Beam.Type == 'cosmics':
kwargs.setdefault("OverlapMatchAveragePhiHitPullCut", 200.)
kwargs.setdefault( "ToroidOn", False )
# There are two tools which this depends on which aren't properties and which weren't defined in old configuration
# Ignore for now, but FIXME one day
# m_overlapResolvingTool("Muon::MuonSegmentInOverlapResolvingTool/MuonSegmentInOverlapResolvingTool"),
......
......@@ -288,10 +288,10 @@ class MuonSegmentMatchingTool(CfgMgr.Muon__MuonSegmentMatchingTool):
def __init__(self,name='MuonSegmentMatchingTool',**kwargs):
kwargs.setdefault( "doThetaMatching", muonStandaloneFlags.useSegmentMatching() )
kwargs.setdefault( "doPhiMatching", False )
kwargs.setdefault( "ToroidOn", jobproperties.BField.allToroidOn() )
if beamFlags.beamType() == 'cosmics':
# switch off cut of phi hit pulls
kwargs.setdefault("OverlapMatchAveragePhiHitPullCut", 200. )
kwargs.setdefault( "ToroidOn", False )
super(MuonSegmentMatchingTool,self).__init__(name,**kwargs)
# add missing dependency in C++
......
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