ATLAS Offline Software
MuonSelectorToolsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 #********************************************************************
4 # MuonsSelectionToolConfig.py
5 # Configures muon selection tool which is used to select muons
6 # for use in physics analysis
7 #********************************************************************
8 
9 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
10 from AthenaConfiguration.ComponentFactory import CompFactory
11 from AthenaConfiguration.Enums import LHCPeriod
12 
13 
16 def MuonSelectionToolCfg(flags, name="MuonSelectionTool", **kwargs):
17  """Configure the muon selection tool"""
18  acc = ComponentAccumulator()
19  kwargs.setdefault("IsRun3Geo", flags.GeoModel.Run >= LHCPeriod.Run3 )
20  kwargs.setdefault("DisablePtCuts", True)
21  kwargs.setdefault("TurnOffMomCorr", True)
22  the_tool = CompFactory.CP.MuonSelectionTool(name, **kwargs)
23  acc.setPrivateTools(the_tool)
24  return acc
25 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonSelectorToolsConfig.MuonSelectionToolCfg
def MuonSelectionToolCfg(flags, name="MuonSelectionTool", **kwargs)
Standard configuration of the MuonSelectionTool used in reconstruction & validation jobs The snippet ...
Definition: MuonSelectorToolsConfig.py:16