53 Configure BDTVertexWeightCalculator and the algorithms that are needed to run before.
54 Optional parameters are passed only to the tool.
56 acc = ComponentAccumulator()
58 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
59 DecoratePhotonPointingAlgCfg,
60 BuildVertexPointingAlgCfg,
64 acc.merge(DecoratePhotonPointingAlgCfg(flags,
"DecoratePhotonPointingAlg", PhotonContainerKey=container))
68 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",
89 acc = ComponentAccumulator()
90 kwargs.setdefault(
"DoSumPt2Selection",
True)
91 kwargs.setdefault(
"JetContainer",
"AntiKt4EMTopoJets")
93 CompFactory.Trk.JetRestrictedSumPtVertexWeightCalculator(
95 TracksInConeTool=CompFactory.xAOD.TrackParticlesInConeTool(
96 'JetVertexTracksInCone',
97 TrackParticleLocation=TrackParticleLocation