3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 kwargs.setdefault(
"DoSumPt2Selection",
True)
12 CompFactory.Trk.SumPtVertexWeightCalculator(name, **kwargs))
19 kwargs.setdefault(
"DoSumPt2Selection",
False)
21 CompFactory.Trk.SumPtVertexWeightCalculator(name, **kwargs))
29 CompFactory.GNNVertexWeightCalculator(name, **kwargs))
34 Configure the BDTVertexWeightCalculator. Note: this tool needs to be run after the
35 DecoratePhotonPointingAlg and BuildVertexPointingAlg.
36 Use BDTVertexWeightCalculatorSeqCfg to have the full sequence.
40 "BDTFile",
"PhotonVertexSelection/BDT/2023-02-28/global_ggHW_phcount_BDT.root"
42 kwargs.setdefault(
"BDTName",
"lgbm")
43 kwargs.setdefault(
"PointingVertexContainerKey",
"PhotonPointingVertices")
44 tool = CompFactory.BDTVertexWeightCalculator(
45 "BDTVertexWeightCalculator", **kwargs
47 acc.setPrivateTools(tool)
53 Configure BDTVertexWeightCalculator and the algorithms that are needed to run before.
54 Optional parameters are passed only to the tool.
58 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
59 DecoratePhotonPointingAlgCfg,
60 BuildVertexPointingAlgCfg,
70 "BuildVertexPointingAlg",
71 PhotonContainerKey=container,
72 PointingVertexContainerKey=kwargs.get(
73 "PointingVertexContainerKey",
"PhotonPointingVertices"
79 tool = acc.popToolsAndMerge(accTool)
80 acc.setPrivateTools(tool)
86 name="JetRestrictedSumPt2VertexWeightCalculator",
87 TrackParticleLocation="InDetTrackParticles",
90 kwargs.setdefault(
"DoSumPt2Selection",
True)
91 kwargs.setdefault(
"JetContainer",
"AntiKt4EMTopoJets")
93 CompFactory.Trk.JetRestrictedSumPtVertexWeightCalculator(
95 TracksInConeTool=CompFactory.xAOD.TrackParticlesInConeTool(
96 'JetVertexTracksInCone',
97 TrackParticleLocation=TrackParticleLocation