3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import Format
6 from AthenaConfiguration.Enums
import ProductionStep
10 """Return clusterization input prefix based on the production step and tracking config"""
11 if hasattr(flags.TrackOverlay,
"ActiveConfig"):
12 doTrackOverlay = getattr(flags.TrackOverlay.ActiveConfig,
"doTrackOverlay",
None)
14 doTrackOverlay = flags.Overlay.doTrackOverlay
17 prefix = flags.Overlay.SigPrefix
18 elif flags.Common.ProductionStep
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
19 prefix = flags.Overlay.BkgPrefix
28 kwargs.setdefault(
'ProcessHgtd',
True)
29 acc.addEventAlgo(CompFactory.InDet.InDetToXAODClusterConversion(name, **kwargs))
34 kwargs.setdefault(
'ProcessHgtd',
True)
35 acc.addEventAlgo(CompFactory.InDet.XAODToInDetClusterConversion(name, **kwargs))
41 kwargs.setdefault(
'ProcessPixel', flags.Detector.EnableITkPixel)
42 kwargs.setdefault(
'ProcessStrip', flags.Detector.EnableITkStrip)
43 acc.addEventAlgo(CompFactory.InDet.InDetToXAODClusterConversion(name, **kwargs))
50 from SiLorentzAngleTool.ITkStripLorentzAngleConfig
import ITkStripLorentzAngleToolCfg
53 kwargs.setdefault(
'ProcessPixel', flags.Detector.EnableITkPixel)
54 kwargs.setdefault(
'ProcessStrip', flags.Detector.EnableITkStrip)
56 acc.addEventAlgo(CompFactory.InDet.XAODToInDetClusterConversion(name, **kwargs))
65 if "clusteringTool" not in kwargs:
66 from InDetConfig.SiClusterizationToolConfig
import MergedPixelsToolCfg
67 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
70 if "gangedAmbiguitiesFinder" not in kwargs:
71 from InDetConfig.SiClusterizationToolConfig
import PixelGangedAmbiguitiesFinderCfg
72 kwargs.setdefault(
"gangedAmbiguitiesFinder", acc.popToolsAndMerge(
75 kwargs.setdefault(
"DataObjectName", prefix +
"PixelRDOs")
76 kwargs.setdefault(
"ClustersName",
"PixelClusters")
78 acc.addEventAlgo(CompFactory.InDet.PixelClusterization(prefix+name, **kwargs))
83 kwargs.setdefault(
"DataObjectName",
"Pixel_PU_RDOs")
84 kwargs.setdefault(
"ClustersName",
"PixelPUClusters")
85 kwargs.setdefault(
"AmbiguitiesMap",
"PixelClusterAmbiguitiesMapPU")
92 if "RegSelTool" not in kwargs:
93 from RegionSelector.RegSelToolConfig
import regSelTool_Pixel_Cfg
94 kwargs.setdefault(
"RegSelTool", acc.popToolsAndMerge(
97 if "clusteringTool" not in kwargs:
98 from InDetConfig.SiClusterizationToolConfig
import TrigMergedPixelsToolCfg
99 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
102 if "gangedAmbiguitiesFinder" not in kwargs:
103 from InDetConfig.SiClusterizationToolConfig
import PixelGangedAmbiguitiesFinderCfg
104 kwargs.setdefault(
"gangedAmbiguitiesFinder", acc.popToolsAndMerge(
107 kwargs.setdefault(
"AmbiguitiesMap",
"TrigPixelClusterAmbiguitiesMap")
108 kwargs.setdefault(
"ClustersName",
"PixelTrigClusters")
109 kwargs.setdefault(
"isRoI_Seeded",
True)
110 kwargs.setdefault(
"RoIs", RoIs)
111 kwargs.setdefault(
"ClusterContainerCacheKey", flags.Trigger.InDetTracking.PixelClusterCacheKey)
112 kwargs.setdefault(
"useDataPoolWithCache",
True)
113 kwargs.setdefault(
"name", f
"{name}_{RoIs}")
115 acc.addEventAlgo(CompFactory.InDet.PixelClusterization(**kwargs))
124 if "clusteringTool" not in kwargs:
125 from InDetConfig.SiClusterizationToolConfig
import ITkMergedPixelsToolCfg
126 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
129 if "gangedAmbiguitiesFinder" not in kwargs:
130 from InDetConfig.SiClusterizationToolConfig
import ITkPixelGangedAmbiguitiesFinderCfg
132 kwargs.setdefault(
"DataObjectName", prefix +
"ITkPixelRDOs")
133 kwargs.setdefault(
"ClustersName",
"ITkPixelClusters")
134 kwargs.setdefault(
"AmbiguitiesMap",
"ITkPixelClusterAmbiguitiesMap")
136 acc.addEventAlgo(CompFactory.InDet.PixelClusterization(prefix+name, **kwargs))
142 from RegionSelector.RegSelToolConfig
import regSelTool_ITkPixel_Cfg
144 name=
"ITkPixelClusterization_"+signature,
147 ClustersName =
"ITkTrigPixelClusters",
148 ClusterContainerCacheKey=flags.Trigger.ITkTracking.PixelClusterCacheKey,
158 if "conditionsTool" not in kwargs:
159 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_ConditionsSummaryToolCfg
160 kwargs.setdefault(
"conditionsTool", acc.popToolsAndMerge(
163 if "SCTDetElStatus" not in kwargs :
164 from SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import SCT_DetectorElementStatusAlgWithoutFlaggedCfg
166 kwargs.setdefault(
"SCTDetElStatus",
"SCTDetectorElementStatusWithoutFlagged" )
168 if "clusteringTool" not in kwargs:
169 from InDetConfig.SiClusterizationToolConfig
import SCT_ClusteringToolCfg
170 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
173 kwargs.setdefault(
"DataObjectName", prefix +
"SCT_RDOs")
174 kwargs.setdefault(
"ClustersName",
'SCT_Clusters')
176 acc.addEventAlgo(CompFactory.InDet.SCT_Clusterization(prefix+name, **kwargs))
181 kwargs.setdefault(
"DataObjectName",
"SCT_PU_RDOs" )
182 kwargs.setdefault(
"ClustersName",
"SCT_PU_Clusters")
189 if "RegSelTool" not in kwargs:
190 from RegionSelector.RegSelToolConfig
import regSelTool_SCT_Cfg
191 kwargs.setdefault(
"RegSelTool", acc.popToolsAndMerge(
194 if "conditionsTool" not in kwargs:
195 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_ConditionsSummaryToolCfg
196 kwargs.setdefault(
"conditionsTool", acc.popToolsAndMerge(
199 if "clusteringTool" not in kwargs:
200 from InDetConfig.SiClusterizationToolConfig
import Trig_SCT_ClusteringToolCfg
201 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
204 kwargs.setdefault(
"DataObjectName",
'SCT_RDOs')
205 kwargs.setdefault(
"ClustersName",
'SCT_TrigClusters')
206 kwargs.setdefault(
"isRoI_Seeded",
True)
207 kwargs.setdefault(
"RoIs", RoIs)
208 kwargs.setdefault(
"ClusterContainerCacheKey", flags.Trigger.InDetTracking.SCTClusterCacheKey)
209 kwargs.setdefault(
"FlaggedCondCacheKey",
"")
210 kwargs.setdefault(
"useDataPoolWithCache",
True)
211 kwargs.setdefault(
"name", f
"{name}_{RoIs}")
213 acc.addEventAlgo(CompFactory.InDet.SCT_Clusterization(**kwargs))
222 if "conditionsTool" not in kwargs:
223 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import ITkStripConditionsSummaryToolCfg
224 kwargs.setdefault(
"conditionsTool", acc.popToolsAndMerge(
227 if "clusteringTool" not in kwargs:
228 from InDetConfig.SiClusterizationToolConfig
import ITKStrip_SCT_ClusteringToolCfg
229 kwargs.setdefault(
"clusteringTool", acc.popToolsAndMerge(
231 kwargs.setdefault(
"DataObjectName", prefix +
'ITkStripRDOs')
232 kwargs.setdefault(
"ClustersName",
'ITkStripClusters')
233 kwargs.setdefault(
"SCT_FlaggedCondData",
"ITkStripFlaggedCondData")
235 kwargs.setdefault(
"maxFiredStrips", 0)
237 acc.addEventAlgo( CompFactory.InDet.SCT_Clusterization(prefix+name, **kwargs))
243 from RegionSelector.RegSelToolConfig
import regSelTool_ITkStrip_Cfg
245 name=
"ITkStripClusterization_"+signature,
248 ClustersName =
"ITkTrigStripClusters",
249 ClusterContainerCacheKey=flags.Trigger.ITkTracking.SCTClusterCacheKey,
258 if flags.Common.ProductionStep
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
259 prefix = flags.Overlay.BkgPrefix
263 if "TRT_DriftCircleTool" not in kwargs:
264 from InDetConfig.TRT_DriftCircleToolConfig
import TRT_DriftCircleToolCfg
265 kwargs.setdefault(
"TRT_DriftCircleTool", acc.popToolsAndMerge(
267 kwargs.setdefault(
"TRTRIOLocation",
'TRT_DriftCircles')
270 kwargs.setdefault(
"TRTRDOLocation", prefix +
'TRT_RDOs')
272 acc.addEventAlgo(CompFactory.InDet.TRT_RIO_Maker(prefix+name, **kwargs))
279 if "TRT_DriftCircleTool" not in kwargs:
280 from InDetConfig.TRT_DriftCircleToolConfig
import TRT_NoTime_DriftCircleToolCfg
281 kwargs.setdefault(
"TRT_DriftCircleTool", acc.popToolsAndMerge(
284 kwargs.setdefault(
"TRTRIOLocation",
'TRT_DriftCirclesUncalibrated')
293 if "TRT_DriftCircleTool" not in kwargs:
294 from InDetConfig.TRT_DriftCircleToolConfig
import TRT_Phase_DriftCircleToolCfg
295 kwargs.setdefault(
"TRT_DriftCircleTool", acc.popToolsAndMerge(
303 kwargs.setdefault(
"TRTRDOLocation",
'TRT_PU_RDOs')
304 kwargs.setdefault(
"TRTRIOLocation",
'TRT_PU_DriftCircles')
311 if "RegSelTool" not in kwargs:
312 from RegionSelector.RegSelToolConfig
import regSelTool_TRT_Cfg
313 kwargs.setdefault(
"RegSelTool", acc.popToolsAndMerge(
316 if "TRT_DriftCircleTool" not in kwargs:
317 from InDetConfig.TRT_DriftCircleToolConfig
import TRT_DriftCircleToolCfg
318 kwargs.setdefault(
"TRT_DriftCircleTool", acc.popToolsAndMerge(
321 kwargs.setdefault(
"TRTRIOLocation",
"TRT_TrigDriftCircles")
322 kwargs.setdefault(
"TRTRDOLocation",
"TRT_RDOs_TRIG" if flags.Input.Format
is Format.BS
else "TRT_RDOs")
323 kwargs.setdefault(
"isRoI_Seeded",
True)
324 kwargs.setdefault(
"RoIs", RoIs)
326 kwargs.setdefault(
"TRT_DriftCircleCache", flags.Trigger.InDetTracking.TRT_DriftCircleCacheKey)
327 kwargs.setdefault(
"useDataPoolWithCache",
True)
329 kwargs.setdefault(
"name", f
"{name}_{RoIs}")
330 acc.addEventAlgo(CompFactory.InDet.TRT_RIO_Maker(**kwargs))
339 if flags.Detector.EnableITkPixel:
344 if flags.Detector.EnableITkStrip: