ATLAS Offline Software
Loading...
Searching...
No Matches
JetFitterVariablesFactoryConfig Namespace Reference

Functions

 JetFitterVariablesFactoryCfg (name, useBTagFlagsDefaults=True, **options)

Function Documentation

◆ JetFitterVariablesFactoryCfg()

JetFitterVariablesFactoryConfig.JetFitterVariablesFactoryCfg ( name,
useBTagFlagsDefaults = True,
** options )
Sets up a NewJetFitterVariablesFactory tool and returns it.

The following options have BTaggingFlags defaults:

JetFitterInstance                   default: "JetFitterTag"
secVxFinderName                     default: "JetFitterVxFinder"

input:             name: The name of the tool (should be unique).
  useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
              **options: Python dictionary with options for the tool.
output: The actual tool, which can then by added to ToolSvc via ToolSvc += output.

Definition at line 6 of file JetFitterVariablesFactoryConfig.py.

6def JetFitterVariablesFactoryCfg(name, useBTagFlagsDefaults = True, **options):
7 """Sets up a NewJetFitterVariablesFactory tool and returns it.
8
9 The following options have BTaggingFlags defaults:
10
11 JetFitterInstance default: "JetFitterTag"
12 secVxFinderName default: "JetFitterVxFinder"
13
14 input: name: The name of the tool (should be unique).
15 useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
16 **options: Python dictionary with options for the tool.
17 output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
18 acc = ComponentAccumulator()
19 if useBTagFlagsDefaults:
20 defaults = {}
21 for option in defaults:
22 options.setdefault(option, defaults[option])
23 options['name'] = name
24 acc.setPrivateTools(CompFactory.Analysis.JetFitterVariablesFactory(**options))
25
26 return acc