3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
10 result.setPrivateTools(CompFactory.Trk.TrackingVolumeHelper(name, **kwargs))
15 kwargs.setdefault(
"BarrelLayerBinsZ",
16 flags.ITk.trackingGeometry.passiveBarrelMatZbins)
17 kwargs.setdefault(
"BarrelLayerBinsPhi",
18 flags.ITk.trackingGeometry.passiveBarrelMatPhiBins)
19 kwargs.setdefault(
"EndcapLayerBinsR",
20 flags.ITk.trackingGeometry.passiveEndcapMatRbins)
21 kwargs.setdefault(
"EndcapLayerBinsPhi",
22 flags.ITk.trackingGeometry.passiveEndcapMatPhiBins)
23 result.setPrivateTools(CompFactory.Trk.TrackingVolumeHelper(name, **kwargs))
28 if flags.Detector.GeometryITk:
36 kwargs.setdefault(
"BarrelLayerBinsZ",
37 flags.HGTD.trackingGeometry.passiveBarrelMatZbins)
38 kwargs.setdefault(
"BarrelLayerBinsPhi",
39 flags.HGTD.trackingGeometry.passiveBarrelMatPhiBins)
40 kwargs.setdefault(
"EndcapLayerBinsR",
41 flags.HGTD.trackingGeometry.passiveEndcapMatRbins)
42 kwargs.setdefault(
"EndcapLayerBinsPhi",
43 flags.HGTD.trackingGeometry.passiveEndcapMatPhiBins)
44 result.setPrivateTools(CompFactory.Trk.TrackingVolumeHelper(name, **kwargs))
50 result.setPrivateTools(
51 CompFactory.Trk.TrackingVolumeArrayCreator(name, **kwargs))
57 kwargs.setdefault(
"EmptyLayerMode", 2)
58 result.setPrivateTools(CompFactory.Trk.LayerArrayCreator(name, **kwargs))
65 if "LayerArrayCreator" not in kwargs:
66 layerArrayCreator = result.popToolsAndMerge(
68 result.addPublicTool(layerArrayCreator)
69 kwargs.setdefault(
"LayerArrayCreator", layerArrayCreator)
71 if "TrackingVolumeArrayCreator" not in kwargs:
72 trackingVolumeArrayCreator = result.popToolsAndMerge(
74 result.addPublicTool(trackingVolumeArrayCreator)
75 kwargs.setdefault(
"TrackingVolumeArrayCreator",
76 trackingVolumeArrayCreator)
78 result.setPrivateTools(
79 CompFactory.Trk.CylinderVolumeCreator(name, **kwargs))
86 if "TrackingVolumeHelper" not in kwargs:
87 trackingVolumeHelper = result.popToolsAndMerge(
89 result.addPublicTool(trackingVolumeHelper)
90 kwargs.setdefault(
"TrackingVolumeHelper", trackingVolumeHelper)
92 kwargs.setdefault(
"PassiveLayerBinsRZ", 1)
94 result.setPrivateTools(result.popToolsAndMerge(
102 if "TrackingVolumeHelper" not in kwargs:
103 trackingVolumeHelper = result.popToolsAndMerge(
105 result.addPublicTool(trackingVolumeHelper)
106 kwargs.setdefault(
"TrackingVolumeHelper", trackingVolumeHelper)
108 kwargs.setdefault(
"PassiveLayerThickness", 1.)
109 kwargs.setdefault(
"PassiveLayerBinsRZ",
110 flags.ITk.trackingGeometry.passiveBarrelMatZbins)
111 kwargs.setdefault(
"PassiveLayerBinsPhi",
112 flags.ITk.trackingGeometry.passiveBarrelMatPhiBins)
114 result.setPrivateTools(result.popToolsAndMerge(
122 if "TrackingVolumeHelper" not in kwargs:
123 trackingVolumeHelper = result.popToolsAndMerge(
125 result.addPublicTool(trackingVolumeHelper)
126 kwargs.setdefault(
"TrackingVolumeHelper", trackingVolumeHelper)
128 kwargs.setdefault(
"PassiveLayerBinsRZ",
129 flags.HGTD.trackingGeometry.passiveBarrelMatZbins)
130 kwargs.setdefault(
"PassiveLayerBinsPhi",
131 flags.HGTD.trackingGeometry.passiveBarrelMatPhiBins)
133 result.setPrivateTools(result.popToolsAndMerge(
142 if "LayerBuilder" not in kwargs:
143 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
144 ITkBeamPipeBuilderCfg)
145 beamPipeBuilder = result.popToolsAndMerge(
147 result.addPublicTool(beamPipeBuilder)
148 kwargs.setdefault(
"LayerBuilder", beamPipeBuilder)
150 layerProvider = CompFactory.Trk.LayerProviderCond(name, **kwargs) \
152 CompFactory.Trk.LayerProvider(name, **kwargs)
153 result.setPrivateTools(layerProvider)
161 if "LayerBuilder" not in kwargs:
162 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
163 ITkPixelLayerBuilderInnerCfg)
164 layerBuilder = result.popToolsAndMerge(
166 result.addPublicTool(layerBuilder)
167 kwargs.setdefault(
"LayerBuilder", layerBuilder)
169 layerProvider = CompFactory.Trk.LayerProviderCond(name, **kwargs) \
171 CompFactory.Trk.LayerProvider(name, **kwargs)
172 result.setPrivateTools(layerProvider)
180 if "LayerBuilder" not in kwargs:
181 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
182 ITkPixelLayerBuilderOuterCfg)
183 layerBuilder = result.popToolsAndMerge(
185 result.addPublicTool(layerBuilder)
186 kwargs.setdefault(
"LayerBuilder", layerBuilder)
188 layerProvider = CompFactory.Trk.LayerProviderCond(name, **kwargs) \
190 CompFactory.Trk.LayerProvider(name, **kwargs)
191 result.setPrivateTools(layerProvider)
199 if "LayerBuilder" not in kwargs:
200 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
201 ITkStripLayerBuilderCfg)
202 layerBuilder = result.popToolsAndMerge(
204 result.addPublicTool(layerBuilder)
205 kwargs.setdefault(
"LayerBuilder", layerBuilder)
207 layerProvider = CompFactory.Trk.LayerProviderCond(name, **kwargs) \
209 CompFactory.Trk.LayerProvider(name, **kwargs)
210 result.setPrivateTools(layerProvider)
215 result.setPrivateTools(
216 CompFactory.Trk.LayerMaterialProvider(name, **kwargs))
222 result.setPrivateTools(
223 CompFactory.Trk.InputLayerMaterialProvider(name, **kwargs))
229 result.setPrivateTools(
230 CompFactory.Trk.LayerMaterialInspector(name, **kwargs))