11def ActsEgammaSelectedTrackCopyCfg(flags, name="ActsEgammaSelectedTrackCopy", **kwargs):
12 acc = ComponentAccumulator()
13
14 assert flags.Acts.TrackingGeometry.UseBlueprint, "Must use ACTS Gen3 geometry"
15 assert flags.Detector.GeometryCalo, "Calorimeter must be enabled"
16
17
18
19 assert flags.Detector.GeometryITk
20
21 if "egammaCaloClusterSelector" not in kwargs:
22 from egammaCaloTools.egammaCaloToolsConfig import (
23 egammaCaloClusterSelectorGSFCfg,
24 )
25
26 kwargs["egammaCaloClusterSelector"] = acc.popToolsAndMerge(
27 egammaCaloClusterSelectorGSFCfg(flags)
28 )
29
30 if 'ExtrapolationTool' not in kwargs:
31 from ActsConfig.ActsGeometryConfig import ActsExtrapolationToolCfg
32 kwargs.setdefault(
33 "ExtrapolationTool",
34 acc.popToolsAndMerge(ActsExtrapolationToolCfg(flags, MaxSteps=10000)),
35 )
36
37 kwargs.setdefault("ClusterContainerName",
38 flags.Egamma.Keys.Internal.EgammaTopoClusters)
39 kwargs.setdefault("TrackParticleContainerName",
40 flags.Egamma.Keys.Input.TrackParticles)
41 kwargs.setdefault("OutputTrkPartContainerName",
42 flags.Egamma.Keys.Output.TrkPartContainerName)
43
44 kwargs.setdefault(
45 "ExtraInputs",
46 [
47 (
48 "InDetDD::SiDetectorElementCollection",
49 "ConditionStore+ITkPixelDetectorElementCollection",
50 ),
51 (
52 "InDetDD::SiDetectorElementCollection",
53 "ConditionStore+ITkStripDetectorElementCollection",
54 ),
55 ],
56 )
57
58 actsEgseltrkcpAlg = CompFactory.ActsEgammaSelectedTrackCopy(name, **kwargs)
59
60 acc.addEventAlgo(actsEgseltrkcpAlg)
61 return acc
62
63