66 kwargs.setdefault(
"WorldDimension", [])
67 kwargs.setdefault(
"WorldMaterialProperties", [])
69 if "TrackingVolumeArrayCreator" not in kwargs:
70 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
71 TrackingVolumeArrayCreatorCfg)
72 TrackingVolumeArrayCreator = result.popToolsAndMerge(
74 result.addPublicTool(TrackingVolumeArrayCreator)
75 kwargs.setdefault(
"TrackingVolumeArrayCreator",
76 TrackingVolumeArrayCreator)
78 if "TrackingVolumeHelper" not in kwargs:
79 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
80 TrackingVolumeHelperCfg)
81 TrackingVolumeHelper = result.popToolsAndMerge(
83 result.addPublicTool(TrackingVolumeHelper)
84 kwargs.setdefault(
"TrackingVolumeHelper", TrackingVolumeHelper)
88 if flags.Detector.GeometryID:
89 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
90 InDetTrackingGeometryBuilderCfg)
92 "InDetTrackingGeometryBuilder", result.popToolsAndMerge(
95 elif flags.Detector.GeometryITk:
96 from TrackingGeometryCondAlg.InDetTrackingGeometryConfig
import (
97 ITkTrackingGeometryBuilderCfg)
99 "InDetTrackingGeometryBuilder", result.popToolsAndMerge(
103 if flags.Detector.GeometryHGTD
and useCond:
104 from TrackingGeometryCondAlg.HGTD_TrackingGeometryConfig
import (
105 HGTD_TrackingGeometryBuilderCfg)
107 "HGTD_TrackingGeometryBuilder", result.popToolsAndMerge(
110 if flags.Detector.GeometryCalo:
111 from TrackingGeometryCondAlg.CaloTrackingGeometryConfig
import (
112 CaloTrackingGeometryBuilderCfg)
114 "CaloTrackingGeometryBuilder", result.popToolsAndMerge(
117 if flags.Detector.GeometryMuon:
118 from TrackingGeometryCondAlg.MuonTrackingGeometryConfig
import (
119 MuonTrackingGeometryBuilderCfg)
121 "MuonTrackingGeometryBuilder", result.popToolsAndMerge(
124 geometryBuilder = CompFactory.Trk.GeometryBuilderCond(name, **kwargs) \
126 CompFactory.Trk.GeometryBuilder(name, **kwargs)
127 result.setPrivateTools(geometryBuilder)