ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConfig
python
InDetHardScatterSelectionToolConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
# Configuration of InDetHardScatterSelectionTool package
3
4
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
TrkConfig.VertexFindingFlags
import
VertexSortingSetup
7
8
def
InDetHardScatterSelectionToolCfg
(flags, name="InDetHardScatterSelectionTool", **kwargs):
9
"""Configure the InDet hard scatter selection tool"""
10
acc = ComponentAccumulator()
11
12
sortingSetup = flags.Tracking.PriVertex.sortingSetup
13
selectionMode = -1
14
if
sortingSetup
is
VertexSortingSetup.SumPt2Sorting:
15
selectionMode = 0
16
elif
sortingSetup
is
VertexSortingSetup.SumPtSorting:
17
selectionMode = 1
18
elif
sortingSetup
is
VertexSortingSetup.JetWeightedSorting:
19
selectionMode = 2
20
kwargs.setdefault(
"JetContainer"
,
"AntiKt4EMTopoJets"
)
21
elif
sortingSetup
is
VertexSortingSetup.GNNSorting:
22
selectionMode = 3
23
24
kwargs.setdefault(
"SelectionMode"
, selectionMode)
25
26
acc.setPrivateTools(
27
CompFactory.InDet.InDetHardScatterSelectionTool(name, **kwargs))
28
return
acc
python.InDetHardScatterSelectionToolConfig.InDetHardScatterSelectionToolCfg
InDetHardScatterSelectionToolCfg(flags, name="InDetHardScatterSelectionTool", **kwargs)
Definition
InDetHardScatterSelectionToolConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0