ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagAlgs
BTagging
python
JetFitterTwoTrackVtxFinderToolConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
from
BTagging.JetFitterSequentialVertexFitterConfig
import
JetFitterSequentialVertexFitterCfg
7
8
def
InDetJetFitterTwoTrackVtxFinderToolCfg
(flags, name, suffix="", useBTagFlagsDefaults = True, **options):
9
10
"""Sets up a InDetJetFitterTwoTrackVtxFinderTool tool and returns it.
11
12
The following options have BTaggingFlags defaults:
13
14
ID_maxR default: 1150.
15
ID_maxZ default: 2727.
16
twoVertexProbabilityCut default: 3.4e-2
17
revertFromPositiveToNegativeTags default: False
18
19
input: name: The name of the tool (should be unique).
20
useBTagFlagsDefaults : Whether to use BTaggingFlags defaults for options that are not specified.
21
**options: Python dictionary with options for the tool.
22
output: The actual tool, which can then by added to ToolSvc via ToolSvc += output."""
23
acc = ComponentAccumulator()
24
if
useBTagFlagsDefaults:
25
jetFitterSequentialVertexFitter = acc.popToolsAndMerge(JetFitterSequentialVertexFitterCfg(flags,
'JFSeqVxFitter'
+suffix))
26
defaults = {
'ID_maxR'
: 1150.,
27
'ID_maxZ'
: 2727.,
28
'twoVertexProbabilityCut'
: 0.034,
29
'revertFromPositiveToNegativeTags'
:
True
if
(suffix==
"FLIP_SIGN"
)
else
False
,
30
# 'CrossDistancesSeedFinder' : ,
31
'SequentialVertexFitter'
: jetFitterSequentialVertexFitter }
32
for
option
in
defaults:
33
options.setdefault(option, defaults[option])
34
35
options[
'name'
] = name
36
acc.setPrivateTools( CompFactory.InDet.JetFitterTwoTrackVtxFinderTool(**options) )
37
return
acc
38
39
40
41
python.JetFitterTwoTrackVtxFinderToolConfig.InDetJetFitterTwoTrackVtxFinderToolCfg
InDetJetFitterTwoTrackVtxFinderToolCfg(flags, name, suffix="", useBTagFlagsDefaults=True, **options)
Definition
JetFitterTwoTrackVtxFinderToolConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0