3 from AthenaCommon.Logging
import logging
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 name='egammaTrackThinner',
14 kwargs.setdefault(
"StreamName",
"StreamAOD")
15 kwargs.setdefault(
"InputElectronContainerName",
16 flags.Egamma.Keys.Output.Electrons)
17 kwargs.setdefault(
"InputPhotonContainerName",
18 flags.Egamma.Keys.Output.Photons)
19 if flags.Detector.GeometryITk:
20 kwargs.setdefault(
"InputForwardElectronContainerName",
21 flags.Egamma.Keys.Output.ForwardElectrons)
22 kwargs.setdefault(
"TrackParticleContainerName",
23 flags.Egamma.Keys.Output.GSFTrackParticles)
24 kwargs.setdefault(
"VertexContainerName",
25 flags.Egamma.Keys.Output.ConversionVertices)
27 acc.addEventAlgo(CompFactory.egammaTrackThinner(name, **kwargs))
32 if __name__ ==
"__main__":
33 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 from AthenaConfiguration.TestDefaults
import defaultTestFiles
35 from AthenaConfiguration.ComponentAccumulator
import printProperties
36 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
38 flags.Input.Files = defaultTestFiles.ESD
41 mlog = logging.getLogger(
"egammaTrackThinnerConfigTest")
42 mlog.info(
"Configuring egammaTrackThinner: ")
45 acc.getEventAlgo(
"egammaTrackThinner"),
48 with open(
"egammatrackthinner.pkl",
"wb")
as f: