diff --git a/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py b/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py index 7b3f58cd29e6f81dbe1302d2a1a9bf4b07354a27..0558addd273a54247672db688d2996f36d6d2a66 100644 --- a/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py +++ b/MuonSpectrometer/MuonConfig/python/MuonRecToolsConfig.py @@ -84,9 +84,6 @@ def MuonSegmentMomentumFromFieldCfg(flags, name="MuonSegmentMomentumFromField", muon_prop = acc.getPrimary() result.merge(acc) kwargs.setdefault("PropagatorTool", muon_prop) - - kwargs.setdefault("HasCSC", flags.Detector.GeometryCSC) - kwargs.setdefault("HasSTgc", flags.Detector.GeometrysTGC) muon_seg_mom_from_field = MuonSegmentMomentumFromField(name=name, **kwargs) result.setPrivateTools(muon_seg_mom_from_field) diff --git a/MuonSpectrometer/MuonConfig/python/MuonTrackBuildingConfig.py b/MuonSpectrometer/MuonConfig/python/MuonTrackBuildingConfig.py index bab91aac709c6782777b2dd23cc5c9f653ecc90e..5634ab6763514f06dceeac941343a4c3a2312e7e 100644 --- a/MuonSpectrometer/MuonConfig/python/MuonTrackBuildingConfig.py +++ b/MuonSpectrometer/MuonConfig/python/MuonTrackBuildingConfig.py @@ -188,6 +188,7 @@ def MuonSegmentMatchingToolCfg(flags, name="MuonSegmentMatchingTool", **kwargs): kwargs.setdefault( "doPhiMatching", False ) 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 diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MooreTools.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MooreTools.py index cc388d67f2a98e73bd962bfa203c6c6e5cf44dbb..76e57528c65287ff2bb8bdb7e8da483bd7006ca0 100644 --- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MooreTools.py +++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MooreTools.py @@ -291,6 +291,7 @@ class MuonSegmentMatchingTool(CfgMgr.Muon__MuonSegmentMatchingTool): 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++ diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py index 198e44c885d7652019d36d1ea486574036437804..fca36cb879047561dbe7385108ef2dd6a58b5cfe 100644 --- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py +++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecExampleConfigDb.py @@ -62,7 +62,7 @@ addTool("MuonRecExample.MuonRecTools.MuonStraightLineExtrapolator", "MuonStraigh addTool("Trk::KalmanUpdator", "MuonMeasUpdator") -addService("Muon::MuonIdHelperSvc", "MuonIdHelperSvc", HasCSC=MuonGeometryFlags.hasCSC(), HasSTgc=(CommonGeometryFlags.Run() in ["RUN3", "RUN4"]), HasMM=(CommonGeometryFlags.Run() in ["RUN3", "RUN4"])) +addService("Muon::MuonIdHelperSvc", "MuonIdHelperSvc", HasCSC=MuonGeometryFlags.hasCSC(), HasSTgc=MuonGeometryFlags.hasSTGC(), HasMM=MuonGeometryFlags.hasMM()) addTool("Muon::MuonIdHelperTool", "MuonIdHelperTool") addTool("Muon::MuonTrackTruthTool", "MuonTrackTruthTool") @@ -85,7 +85,7 @@ addTool( "MuonRecExample.MuonRecTools.MuonChi2TrackFitter", "MuonChi2TrackFitter addTool( "MuonRecExample.MuonRecTools.MuonChi2TrackFitter", "MuonChi2SLTrackFitter", StraightLine=True ) addTool( "MuonRecExample.MuonRecTools.MuonSegmentMomentum", "MuonSegmentMomentum" ) -addTool( "MuonRecExample.MuonRecTools.MuonSegmentMomentumFromField", "MuonSegmentMomentumFromField", HasCSC=MuonGeometryFlags.hasCSC(), HasSTgc=(CommonGeometryFlags.Run() in ["RUN3", "RUN4"])) +addTool( "MuonRecExample.MuonRecTools.MuonSegmentMomentumFromField", "MuonSegmentMomentumFromField") addTool( "MuonRecExample.MuonRecTools.MuonPhiHitSelector", "MuonPhiHitSelector" )