3 __doc__ =
"Instantiate egammaSelectedTrackCopy with default configuration"
5 from AthenaCommon.Logging
import logging
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13 if "egammaCaloClusterSelector" not in kwargs:
14 from egammaCaloTools.egammaCaloToolsConfig
import (
15 egammaCaloClusterSelectorGSFCfg,
18 kwargs[
"egammaCaloClusterSelector"] = acc.popToolsAndMerge(
22 if "ExtrapolationTool" not in kwargs:
23 from egammaTrackTools.egammaTrackToolsConfig
import (
24 EMExtrapolationToolsCfg,
28 flags, name=
"EMExtrapolationTools")
29 kwargs[
"ExtrapolationTool"] = acc.popToolsAndMerge(extraptool)
31 kwargs.setdefault(
"ClusterContainerName",
32 flags.Egamma.Keys.Internal.EgammaTopoClusters)
33 kwargs.setdefault(
"TrackParticleContainerName",
34 flags.Egamma.Keys.Input.TrackParticles)
35 kwargs.setdefault(
"OutputTrkPartContainerName",
36 flags.Egamma.Keys.Output.TrkPartContainerName)
38 if flags.Reco.EnableHGTDExtension:
39 kwargs.setdefault(
"TrackParticleTimeDecoration",
40 flags.Egamma.Keys.Input.TrackParticles+
".time")
42 doFwd = flags.Detector.GeometryITk
and flags.Egamma.doForward
43 kwargs.setdefault(
"doFwdTracks", doFwd)
45 kwargs.setdefault(
"FwdClusterContainerName",
46 flags.Egamma.Keys.Internal.ForwardTopoClusters)
49 if flags.Detector.GeometryITk:
54 "InDetDD::SiDetectorElementCollection",
55 "ConditionStore+ITkPixelDetectorElementCollection",
58 "InDetDD::SiDetectorElementCollection",
59 "ConditionStore+ITkStripDetectorElementCollection",
68 "InDetDD::SiDetectorElementCollection",
69 "ConditionStore+PixelDetectorElementCollection",
72 "InDetDD::SiDetectorElementCollection",
73 "ConditionStore+SCT_DetectorElementCollection",
78 egseltrkcpAlg = CompFactory.egammaSelectedTrackCopy(name, **kwargs)
80 acc.addEventAlgo(egseltrkcpAlg)
84 if __name__ ==
"__main__":
85 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
86 from AthenaConfiguration.TestDefaults
import defaultTestFiles
87 from AthenaConfiguration.ComponentAccumulator
import printProperties
88 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
90 flags.Input.Files = defaultTestFiles.RDO_RUN2
95 mlog = logging.getLogger(
"egammaSelectedTrackCopyConfigTest")
96 mlog.info(
"Configuring egammaSelectedTrackCopy: ")
99 acc.getEventAlgo(
"egammaSelectedTrackCopy"),
103 with open(
"egammaselectedtrackCopy.pkl",
"wb")
as f: