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))
27 Configure the BDTVertexWeightCalculator. Note: this tool needs to be run after the
28 DecoratePhotonPointingAlg and BuildVertexPointingAlg.
29 Use BDTVertexWeightCalculatorSeqCfg to have the full sequence.
33 "BDTFile",
"PhotonVertexSelection/BDT/2023-02-28/global_ggHW_phcount_BDT.root"
35 kwargs.setdefault(
"BDTName",
"lgbm")
36 kwargs.setdefault(
"PointingVertexContainerKey",
"PhotonPointingVertices")
37 tool = CompFactory.BDTVertexWeightCalculator(
38 "BDTVertexWeightCalculator", **kwargs
40 acc.setPrivateTools(tool)
46 Configure BDTVertexWeightCalculator and the algorithms that are needed to run before.
47 Optional parameters are passed only to the tool.
51 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
52 DecoratePhotonPointingAlgCfg,
53 BuildVertexPointingAlgCfg,
63 "BuildVertexPointingAlg",
64 PhotonContainerKey=container,
65 PointingVertexContainerKey=kwargs.get(
66 "PointingVertexContainerKey",
"PhotonPointingVertices"
72 tool = acc.popToolsAndMerge(accTool)
73 acc.setPrivateTools(tool)
79 name="JetRestrictedSumPt2VertexWeightCalculator",
80 TrackParticleLocation="InDetTrackParticles",
83 kwargs.setdefault(
"DoSumPt2Selection",
True)
84 kwargs.setdefault(
"JetContainer",
"AntiKt4EMTopoJets")
86 CompFactory.Trk.JetRestrictedSumPtVertexWeightCalculator(
88 TracksInConeTool=CompFactory.xAOD.TrackParticlesInConeTool(
89 'JetVertexTracksInCone',
90 TrackParticleLocation=TrackParticleLocation