ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagAlgs
BTagging
python
InDetJetFitterUtilsConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
TrkConfig.TrkVertexFitterUtilsConfig
import
AtlasFullLinearizedTrackFactoryCfg
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
6
from
TrkConfig.AtlasExtrapolatorConfig
import
AtlasExtrapolatorCfg
7
8
9
def
InDetJetFitterUtilsCfg
(flags, name = 'InDetJFUtils', useBTagFlagsDefaults = True, options = {}):
10
"""Sets up a InDetJetFitterUtils tool and returns it.
11
12
The following options have BTaggingFlags defaults:
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."""
18
acc = ComponentAccumulator()
19
if
useBTagFlagsDefaults:
20
jetFitterFullLinearizedTrackFactory = acc.popToolsAndMerge(AtlasFullLinearizedTrackFactoryCfg(flags,
'JFFullLinearizedTrackFactory'
))
21
jetFitterExtrapolator= acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags,
'JFExtrapolator'
))
22
defaults = {
'LinearizedTrackFactory'
: jetFitterFullLinearizedTrackFactory,
23
'Extrapolator'
: jetFitterExtrapolator }
24
for
option
in
defaults:
25
options.setdefault(option, defaults[option])
26
options[
'name'
] = name
27
acc.setPrivateTools(CompFactory.InDet.InDetJetFitterUtils(**options))
28
29
return
acc
python.InDetJetFitterUtilsConfig.InDetJetFitterUtilsCfg
InDetJetFitterUtilsCfg(flags, name='InDetJFUtils', useBTagFlagsDefaults=True, options={})
Definition
InDetJetFitterUtilsConfig.py:9
Generated on
for ATLAS Offline Software by
1.17.0