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 not kwargs.get(
"PhotonPointingTool",
None):
28 tool = toolAcc.popPrivateTools()
30 kwargs[
"PhotonPointingTool"] = tool
32 alg = CompFactory.DecoratePhotonPointingAlg(
"DecoratePhotonPointingAlg", **kwargs)
43 CompFactory.CP.AsgPtEtaSelectionTool(
53 "goodPhotonSelectionTool",
54 CompFactory.CP.AsgFlagSelectionTool(
55 "GoodPhotonSelectionTool",
61 kwargs.setdefault(
"nphotonsToUse", 2)
62 kwargs.setdefault(
"PhotonContainerKey",
"Photons")
63 alg = CompFactory.BuildVertexPointingAlg(
"BuildVertexPointingAlg", **kwargs)