ATLAS Offline Software
Loading...
Searching...
No Matches
JetFitterVariablesFactoryConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
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
JetFitterVariablesFactoryCfg(name, useBTagFlagsDefaults=True, **options)