ATLAS Offline Software
Loading...
Searching...
No Matches
python.InDetHardScatterSelectionToolConfig Namespace Reference

Functions

 InDetHardScatterSelectionToolCfg (flags, name="InDetHardScatterSelectionTool", **kwargs)

Function Documentation

◆ InDetHardScatterSelectionToolCfg()

python.InDetHardScatterSelectionToolConfig.InDetHardScatterSelectionToolCfg ( flags,
name = "InDetHardScatterSelectionTool",
** kwargs )
Configure the InDet hard scatter selection tool

Definition at line 8 of file InDetHardScatterSelectionToolConfig.py.

8def 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