3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 kwargs.setdefault(
"isSimulation", flags.Input.isMC)
10 acc.setPrivateTools(CompFactory.CP.PhotonPointingTool(name, **kwargs))
15 flags, name="PhotonVertexSelectionTool", **kwargs):
17 acc.setPrivateTools(CompFactory.CP.PhotonVertexSelectionTool(**kwargs))
24 kwargs.setdefault(
"PhotonContainerKey",
"Photons")
26 if "PhotonPointingTool" not in kwargs:
28 tool = toolAcc.popPrivateTools()
30 kwargs[
"PhotonPointingTool"] = tool
31 if "PhotonVertexSelectionTool" not in kwargs:
32 from TrkConfig.VertexFindingFlags
import VertexSortingSetup
33 pvContainer =
"PrimaryVertices_initial" if flags.Tracking.PriVertex.sortingSetup
is VertexSortingSetup.GNNSorting
else "PrimaryVertices"
36 alg = CompFactory.DecoratePhotonPointingAlg(
"DecoratePhotonPointingAlg", **kwargs)
47 CompFactory.CP.AsgPtEtaSelectionTool(
57 "goodPhotonSelectionTool",
58 CompFactory.CP.AsgFlagSelectionTool(
59 "GoodPhotonSelectionTool",
65 kwargs.setdefault(
"nphotonsToUse", 2)
66 kwargs.setdefault(
"PhotonContainerKey",
"Photons")
67 alg = CompFactory.BuildVertexPointingAlg(
"BuildVertexPointingAlg", **kwargs)