From 3ecc18668d4f139cfd25e994f2a01094e6fc53ca Mon Sep 17 00:00:00 2001 From: Edward Moyse <edward.moyse@cern.ch> Date: Wed, 6 Jan 2021 13:48:50 +0100 Subject: [PATCH] Do not add MuGirl related tag_maps to MuonCreatorAlg_LRT if MuGirl off. --- .../MuonCombinedRecExample/python/MuonCombinedAlgs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuonCombinedAlgs.py b/Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuonCombinedAlgs.py index 7bfa7f169bb6..2d333ff62101 100644 --- a/Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuonCombinedAlgs.py +++ b/Reconstruction/MuonIdentification/MuonCombinedRecExample/python/MuonCombinedAlgs.py @@ -174,7 +174,10 @@ def MuonCreatorAlg( name="MuonCreatorAlg",**kwargs ): def MuonCreatorAlg_LRT( name="MuonCreatorAlg_LRT",**kwargs ): kwargs.setdefault("MuonCreatorTool",getPublicTool("MuonCreatorTool_LRT")) recordMuonCreatorAlgObjs (kwargs) - kwargs.setdefault("TagMaps",["muidcoTagMap_LRT","stacoTagMap_LRT","segmentTagMap_LRT","MuGirlMap_LRT","caloTagMap_LRT"]) + tag_maps = ["muidcoTagMap_LRT","segmentTagMap_LRT","caloTagMap_LRT"] + if muonCombinedRecFlags.doMuGirl(): + tag_maps += ["stacoTagMap_LRT","MuGirlMap_LRT"] + kwargs.setdefault("TagMaps",tag_maps) kwargs.setdefault("MuonContainerLocation", MuonCbKeys.FinalMuonsLargeD0()) kwargs.setdefault("InDetCandidateLocation", MuonCbKeys.InDetTrackParticlesLargeD0()) kwargs.setdefault("ExtrapolatedLocation", "ExtraPolated"+MuonCbKeys.FinalMuonsLargeD0()) @@ -187,9 +190,6 @@ def MuonCreatorAlg_LRT( name="MuonCreatorAlg_LRT",**kwargs ): kwargs.setdefault("ClusterContainerName", "") return CfgMgr.MuonCreatorAlg(name,**kwargs) - - - def StauCreatorAlg( name="StauCreatorAlg", **kwargs ): kwargs.setdefault("MuonCreatorTool",getPublicTool("StauCreatorTool")) kwargs.setdefault("MuonContainerLocation","Staus") -- GitLab