ATLAS Offline Software
Functions
MuonSelectorToolConfig Namespace Reference

Functions

def MuonSelectorToolCfg (name='MuonSelectorTool', useBTagFlagsDefaults=True, **options)
 

Function Documentation

◆ MuonSelectorToolCfg()

def MuonSelectorToolConfig.MuonSelectorToolCfg (   name = 'MuonSelectorTool',
  useBTagFlagsDefaults = True,
**  options 
)
Sets up a MuonSelectorTool tool and returns it.
The following options have BTaggingFlags defaults:

MaxEta                              default: 2.7

input:    name: The name of the tool (should be unique).
              **options: Python dictionary with options for the tool.
output: The actual tool.

Definition at line 6 of file MuonSelectorToolConfig.py.

6 def MuonSelectorToolCfg( name = 'MuonSelectorTool', useBTagFlagsDefaults = True, **options ):
7  """Sets up a MuonSelectorTool tool and returns it.
8  The following options have BTaggingFlags defaults:
9 
10  MaxEta default: 2.7
11 
12  input: name: The name of the tool (should be unique).
13  **options: Python dictionary with options for the tool.
14  output: The actual tool."""
15  acc = ComponentAccumulator()
16  if useBTagFlagsDefaults:
17  defaults = { 'MaxEta' : 2.7 ,
18  }
19  for option in defaults:
20  options.setdefault(option, defaults[option])
21  options['name'] = name
22  acc.setPrivateTools(CompFactory.CP.MuonSelectionTool( **options))
23 
24  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonSelectorToolConfig.MuonSelectorToolCfg
def MuonSelectorToolCfg(name='MuonSelectorTool', useBTagFlagsDefaults=True, **options)
Definition: MuonSelectorToolConfig.py:6