ATLAS Offline Software
Functions
ActsClusterizationConfig Namespace Reference

Functions

ComponentAccumulator ActsHgtdClusteringToolCfg (flags, str name="ActsHgtdClusteringTool", **kwargs)
 
ComponentAccumulator ActsHgtdTimedClusteringToolCfg (flags, str name="ActsHgtdTimedClusteringTool", **kwargs)
 
ComponentAccumulator ActsHgtdClusterizationAlgCfg (flags, str name="ActsHgtdClusterizationAlg", **kwargs)
 
ComponentAccumulator ActsPixelClusteringToolCfg (flags, str name="ActsPixelClusteringTool", **kwargs)
 
ComponentAccumulator ActsStripClusteringToolCfg (flags, str name="ActsStripClusteringTool", **kwargs)
 
ComponentAccumulator ActsPixelClusterizationAlgCfg (flags, str name='ActsPixelClusterizationAlg', *bool useCache=False, **kwargs)
 
ComponentAccumulator ActsStripClusterizationAlgCfg (flags, str name='ActsStripClusterizationAlg', bool useCache=False, **kwargs)
 
ComponentAccumulator ActsClusterCacheCreatorAlgCfg (flags, str name="ActsClusterCacheCreatorAlg", **kwargs)
 
ComponentAccumulator ActsPixelClusterPreparationAlgCfg (flags, str name="ActsPixelClusterPreparationAlg", bool useCache=False, **kwargs)
 
ComponentAccumulator ActsStripClusterPreparationAlgCfg (flags, str name="ActsStripClusterPreparationAlg", bool useCache=False, **kwargs)
 
ComponentAccumulator ActsMainClusterizationCfg (flags, *str RoIs="ActsRegionOfInterest", **dict kwargs)
 
ComponentAccumulator ActsClusterizationCfg (flags, *str previousActsExtension=None)
 

Function Documentation

◆ ActsClusterCacheCreatorAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsClusterCacheCreatorAlgCfg (   flags,
str   name = "ActsClusterCacheCreatorAlg",
**  kwargs 
)

Definition at line 173 of file ActsClusterizationConfig.py.

174  name: str = "ActsClusterCacheCreatorAlg",
175  **kwargs) -> ComponentAccumulator:
176  acc = ComponentAccumulator()
177  kwargs.setdefault("PixelClustersCacheKey", "ActsPixelClusterCache_Back")
178  kwargs.setdefault("StripClustersCacheKey", "ActsStripClusterCache_Back")
179  acc.addEventAlgo(CompFactory.ActsTrk.Cache.CreatorAlg(name, **kwargs))
180  return acc
181 

◆ ActsClusterizationCfg()

ComponentAccumulator ActsClusterizationConfig.ActsClusterizationCfg (   flags,
*str   previousActsExtension = None 
)

Definition at line 295 of file ActsClusterizationConfig.py.

295 def ActsClusterizationCfg(flags,
296  *,
297  previousActsExtension: str = None) -> ComponentAccumulator:
298  assert previousActsExtension is None or isinstance(previousActsExtension, str)
299 
300  acc = ComponentAccumulator()
301 
302  processPixels = flags.Detector.EnableITkPixel
303  processStrips = flags.Detector.EnableITkStrip
304  processHGTD = flags.Acts.useHGTDClusterInTrackFinding and not flags.Tracking.ActiveConfig.isSecondaryPass
305 
306  kwargs = dict()
307  kwargs.setdefault('processPixels', processPixels)
308  kwargs.setdefault('processStrips', processStrips)
309  kwargs.setdefault('processHGTD', processHGTD)
310 
311  # Clusterization is a three step process at maximum:
312  # (1) Cache Creation
313  # (2) Clusterization algorithm (reconstruction of clusters)
314  # (3) Preparation of collection for downstream algorithms
315  # What step is scheduled depends on the tracking pass and the activation
316  # or de-activation of caching mechanism.
317 
318  # Secondary passes do not need cache creation, that has to be performed
319  # on the primary pass, and only if the caching is enabled.
320  # Reconstruction can run on secondary passes only if the caching is enabled,
321  # this is because we may need to process detector elements not processed
322  # on the primary pass.
323  # Preparation has to be performed on secondary passes always, and on primary
324  # pass only if cache is enabled. In the latter case it is useed to collect all
325  # the clusters from all views before passing them to the downstream algorithms
326 
327  if flags.Tracking.ActiveConfig.isSecondaryPass:
328  # Secondary passes
329  kwargs.setdefault('runCacheCreation', False)
330  kwargs.setdefault('runReconstruction', flags.Acts.useCache)
331  kwargs.setdefault('runPreparation', True)
332  else:
333  # Primary pass
334  kwargs.setdefault('runCacheCreation', flags.Acts.useCache)
335  kwargs.setdefault('runReconstruction', True)
336  kwargs.setdefault('runPreparation', flags.Acts.useCache)
337 
338  # Name of the RoI to be used
339  roisName = f'{flags.Tracking.ActiveConfig.extension}RegionOfInterest'
340  # Large Radius Tracking uses full scan RoI created in the primary pass
341  if flags.Tracking.ActiveConfig.extension == 'ActsLargeRadius':
342  roisName = 'ActsRegionOfInterest'
343 
344  # Name of the Cluster container -> ITk + extension without "Acts" + Pixel or Strip + Clusters
345  # We also define the same collection from the main ACTS pass (primary)
346  primaryPixelClustersName = 'ITkPixelClusters'
347  primaryStripClustersName = 'ITkStripClusters'
348  pixelClustersName = primaryPixelClustersName
349  stripClustersName = primaryStripClustersName
350 
351  # If the workflow is not a primary pass, then change the name of the cluster collections adding that information
352  if flags.Tracking.ActiveConfig.isSecondaryPass:
353  pixelClustersName = f'ITk{flags.Tracking.ActiveConfig.extension.replace("Acts", "")}PixelClusters'
354  stripClustersName = f'ITk{flags.Tracking.ActiveConfig.extension.replace("Acts", "")}StripClusters'
355 
356  # Configuration for (1)
357  if kwargs['runCacheCreation']:
358  kwargs.setdefault('ClusterCacheCreatorAlg.name', f'{flags.Tracking.ActiveConfig.extension}ClusterCacheCreatorAlg')
359 
360  # Configuration for (2)
361  if kwargs['runReconstruction']:
362  if kwargs['processPixels']:
363  kwargs.setdefault('PixelClusterizationAlg.name', f'{flags.Tracking.ActiveConfig.extension}PixelClusterizationAlg')
364  kwargs.setdefault('PixelClusterizationAlg.useCache', flags.Acts.useCache)
365  kwargs.setdefault('PixelClusterizationAlg.ClustersKey', pixelClustersName)
366  kwargs.setdefault('PixelClusterizationAlg.ClusterCache', f'{flags.Tracking.ActiveConfig.extension}PixelClustersCache')
367  if flags.Tracking.ActiveConfig.isSecondaryPass and previousActsExtension is not None:
368  kwargs.setdefault('PixelClusterizationAlg.ExtraInputs', {('ActsTrk::PrepRawDataAssociation', f'StoreGateSvc+{previousActsExtension}PrdMap')})
369 
370  if kwargs['processStrips']:
371  kwargs.setdefault('StripClusterizationAlg.name', f'{flags.Tracking.ActiveConfig.extension}StripClusterizationAlg')
372  kwargs.setdefault('StripClusterizationAlg.useCache', flags.Acts.useCache)
373  kwargs.setdefault('StripClusterizationAlg.ClustersKey', stripClustersName)
374  kwargs.setdefault('StripClusterizationAlg.ClusterCache', f'{flags.Tracking.ActiveConfig.extension}StripClustersCache')
375  if flags.Tracking.ActiveConfig.isSecondaryPass and previousActsExtension is not None:
376  kwargs.setdefault('StripClusterizationAlg.ExtraInputs', {('ActsTrk::PrepRawDataAssociation', f'StoreGateSvc+{previousActsExtension}PrdMap')})
377 
378  if kwargs['processHGTD']:
379  kwargs.setdefault('HgtdClusterizationAlg.name', f'{flags.Tracking.ActiveConfig.extension}HgtdClusterizationAlg')
380  if flags.Tracking.ActiveConfig.isSecondaryPass and previousActsExtension is not None:
381  kwargs.setdefault('HgtdClusterizationAlg.ExtraInputs', {('ActsTrk::PrepRawDataAssociation', f'StoreGateSvc+{previousActsExtension}PrdMap')})
382 
383 
384  # Configuration for (3)
385  if kwargs['runPreparation']:
386  if kwargs['processPixels']:
387  kwargs.setdefault('PixelClusterPreparationAlg.name', f'{flags.Tracking.ActiveConfig.extension}PixelClusterPreparationAlg')
388  kwargs.setdefault('PixelClusterPreparationAlg.useCache', flags.Acts.useCache)
389  kwargs.setdefault('PixelClusterPreparationAlg.OutputCollection', f'{pixelClustersName}_Cached' if kwargs['runReconstruction'] else pixelClustersName)
390  # The input is one between the collection (w/o cache) and the IDC (w/ cache)
391  if not flags.Acts.useCache:
392  # Take the collection from the reconstruction step. If not available take the collection from the primary pass
393  kwargs.setdefault('PixelClusterPreparationAlg.InputCollection', pixelClustersName if kwargs['runReconstruction'] else primaryPixelClustersName)
394  kwargs.setdefault('PixelClusterPreparationAlg.InputIDC', '')
395  else:
396  kwargs.setdefault('PixelClusterPreparationAlg.InputCollection', '')
397  kwargs.setdefault('PixelClusterPreparationAlg.InputIDC', f'{flags.Tracking.ActiveConfig.extension}PixelClustersCache')
398  # Prd Map for removing previously used measurements
399  if flags.Tracking.ActiveConfig.isSecondaryPass and previousActsExtension is not None:
400  kwargs.setdefault('PixelClusterPreparationAlg.InputPrdMap', f'{previousActsExtension}PrdMap')
401 
402  if kwargs['processStrips']:
403  kwargs.setdefault('StripClusterPreparationAlg.name', f'{flags.Tracking.ActiveConfig.extension}StripClusterPreparationAlg')
404  kwargs.setdefault('StripClusterPreparationAlg.useCache', flags.Acts.useCache)
405  kwargs.setdefault('StripClusterPreparationAlg.OutputCollection', f'{stripClustersName}_Cached' if kwargs['runReconstruction'] else stripClustersName)
406  if not flags.Acts.useCache:
407  kwargs.setdefault('StripClusterPreparationAlg.InputCollection', stripClustersName if kwargs['runReconstruction'] else primaryStripClustersName)
408  kwargs.setdefault('StripClusterPreparationAlg.InputIDC', '')
409  else:
410  kwargs.setdefault('StripClusterPreparationAlg.InputCollection', '')
411  kwargs.setdefault('StripClusterPreparationAlg.InputIDC', f'{flags.Tracking.ActiveConfig.extension}StripClustersCache')
412  # Prd Map for removing previously used measurements
413  if flags.Tracking.ActiveConfig.isSecondaryPass and previousActsExtension is not None:
414  kwargs.setdefault('StripClusterPreparationAlg.InputPrdMap', f'{previousActsExtension}PrdMap')
415 
416  # Analysis algo(s)
417  if flags.Acts.doAnalysis:
418  # Run analysis code on the resulting cluster collection produced by this tracking pass
419  # This collection is the result of (3) if it ran, else the result of (2). We are sure at least one of them run
420  if kwargs['processPixels']:
421  kwargs.setdefault('PixelClusterAnalysisAlg.name', f'{flags.Tracking.ActiveConfig.extension}PixelClusterAnalysisAlg')
422  kwargs.setdefault('PixelClusterAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
423  kwargs.setdefault('PixelClusterAnalysisAlg.MonGroupName', f'{flags.Tracking.ActiveConfig.extension}ClusterAnalysisAlg')
424  kwargs.setdefault('PixelClusterAnalysisAlg.ClusterContainerKey', kwargs['PixelClusterPreparationAlg.OutputCollection'] if kwargs['runPreparation'] else kwargs['PixelClusterizationAlg.ClustersKey'])
425 
426  if kwargs['processStrips']:
427  kwargs.setdefault('StripClusterAnalysisAlg.name', f'{flags.Tracking.ActiveConfig.extension}StripClusterAnalysisAlg')
428  kwargs.setdefault('StripClusterAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
429  kwargs.setdefault('StripClusterAnalysisAlg.MonGroupName', f'{flags.Tracking.ActiveConfig.extension}ClusterAnalysisAlg')
430  kwargs.setdefault('StripClusterAnalysisAlg.ClusterContainerKey', kwargs['StripClusterPreparationAlg.OutputCollection'] if kwargs['runPreparation'] else kwargs['StripClusterizationAlg.ClustersKey'])
431 
432  if kwargs['processHGTD']:
433  kwargs.setdefault('HgtdClusterAnalysisAlg.name', f'{flags.Tracking.ActiveConfig.extension}HgtdClusterAnalysisAlg')
434  kwargs.setdefault('HgtdClusterAnalysisAlg.extension', flags.Tracking.ActiveConfig.extension)
435  kwargs.setdefault('HgtdClusterAnalysisAlg.MonGroupName', f'{flags.Tracking.ActiveConfig.extension}ClusterAnalysisAlg')
436 
437  acc.merge(ActsMainClusterizationCfg(flags, RoIs=roisName, **kwargs))
438  return acc
439 

◆ ActsHgtdClusteringToolCfg()

ComponentAccumulator ActsClusterizationConfig.ActsHgtdClusteringToolCfg (   flags,
str   name = "ActsHgtdClusteringTool",
**  kwargs 
)

Definition at line 8 of file ActsClusterizationConfig.py.

9  name: str = "ActsHgtdClusteringTool",
10  **kwargs) -> ComponentAccumulator:
11  acc = ComponentAccumulator()
12  acc.setPrivateTools(CompFactory.ActsTrk.HgtdClusteringTool(name, **kwargs))
13  return acc
14 

◆ ActsHgtdClusterizationAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsHgtdClusterizationAlgCfg (   flags,
str   name = "ActsHgtdClusterizationAlg",
**  kwargs 
)

Definition at line 22 of file ActsClusterizationConfig.py.

23  name: str = "ActsHgtdClusterizationAlg",
24  **kwargs) -> ComponentAccumulator:
25  acc = ComponentAccumulator()
26 
27  if flags.HGTD.Geometry.useGeoModelXml:
28  from HGTD_GeoModelXml.HGTD_GeoModelConfig import HGTD_ReadoutGeometryCfg
29  else:
30  from HGTD_GeoModel.HGTD_GeoModelConfig import HGTD_ReadoutGeometryCfg
31  acc.merge(HGTD_ReadoutGeometryCfg(flags))
32 
33  kwargs.setdefault('RDOContainerName', 'HGTD_RDOs')
34  kwargs.setdefault('ClusterContainerName', 'HGTD_Clusters')
35 
36  if 'ClusteringTool' not in kwargs:
37  from HGTD_Config.HGTD_ConfigFlags import ClusteringStrategy
38  if flags.HGTD.Acts.ClusteringStrategy is ClusteringStrategy.SinglePad:
39  kwargs.setdefault('ClusteringTool', acc.popToolsAndMerge(ActsHgtdClusteringToolCfg(flags)))
40  else:
41  kwargs.setdefault('ClusteringTool', acc.popToolsAndMerge(ActsHgtdTimedClusteringToolCfg(flags)))
42 
43  if flags.Acts.doMonitoring and 'MonTool' not in kwargs:
44  from ActsConfig.ActsMonitoringConfig import ActsHgtdClusterizationMonitoringToolCfg
45  kwargs.setdefault('MonTool', acc.popToolsAndMerge(ActsHgtdClusterizationMonitoringToolCfg(flags)))
46 
47  acc.addEventAlgo(CompFactory.ActsTrk.HgtdClusterizationAlg(name, **kwargs))
48  return acc
49 
50 
51 

◆ ActsHgtdTimedClusteringToolCfg()

ComponentAccumulator ActsClusterizationConfig.ActsHgtdTimedClusteringToolCfg (   flags,
str   name = "ActsHgtdTimedClusteringTool",
**  kwargs 
)

Definition at line 15 of file ActsClusterizationConfig.py.

16  name: str = "ActsHgtdTimedClusteringTool",
17  **kwargs) -> ComponentAccumulator:
18  acc = ComponentAccumulator()
19  acc.setPrivateTools(CompFactory.ActsTrk.HgtdTimedClusteringTool(name, **kwargs))
20  return acc
21 

◆ ActsMainClusterizationCfg()

ComponentAccumulator ActsClusterizationConfig.ActsMainClusterizationCfg (   flags,
*str   RoIs = "ActsRegionOfInterest",
**dict  kwargs 
)

Definition at line 230 of file ActsClusterizationConfig.py.

230 def ActsMainClusterizationCfg(flags,
231  *,
232  RoIs: str = "ActsRegionOfInterest",
233  **kwargs: dict) -> ComponentAccumulator:
234  assert isinstance(RoIs, str)
235  assert isinstance(kwargs, dict)
236 
237  acc = ComponentAccumulator()
238 
239  # Clusterization is a three step process at maximum:
240  # (1) Cache Creation
241  # (2) Clusterization algorithm (reconstruction of clusters)
242  # (3) Preparation of collection for downstream algorithms
243  # What step is scheduled depends on the tracking pass and the activation
244  # or de-activation of caching mechanism
245 
246  kwargs.setdefault('processPixels', flags.Detector.EnableITkPixel)
247  kwargs.setdefault('processStrips', flags.Detector.EnableITkStrip)
248  kwargs.setdefault('processHGTD', flags.Acts.useHGTDClusterInTrackFinding and not flags.Tracking.ActiveConfig.isSecondaryPass)
249  kwargs.setdefault('runCacheCreation', flags.Acts.useCache)
250  kwargs.setdefault('runReconstruction', True)
251  kwargs.setdefault('runPreparation', flags.Acts.useCache)
252 
253  # Step (1)
254  if kwargs['runCacheCreation']:
255  acc.merge(ActsClusterCacheCreatorAlgCfg(flags,
256  **extractChildKwargs(prefix='ClusterCacheCreatorAlg.', **kwargs)))
257 
258  # Step (2)
259  if kwargs['runReconstruction']:
260  if kwargs['processPixels']:
261  acc.merge(ActsPixelClusterizationAlgCfg(flags,
262  RoIs=RoIs,
263  **extractChildKwargs(prefix='PixelClusterizationAlg.', **kwargs)))
264  if kwargs['processStrips']:
265  acc.merge(ActsStripClusterizationAlgCfg(flags,
266  RoIs=RoIs,
267  **extractChildKwargs(prefix='StripClusterizationAlg.', **kwargs)))
268  if kwargs['processHGTD']:
269  acc.merge(ActsHgtdClusterizationAlgCfg(flags,
270  **extractChildKwargs(prefix='HgtdClusterizationAlg.', **kwargs)))
271  # Step (3)
272  if kwargs['runPreparation']:
273  if kwargs['processPixels']:
274  acc.merge(ActsPixelClusterPreparationAlgCfg(flags,
275  RoIs=RoIs,
276  **extractChildKwargs(prefix='PixelClusterPreparationAlg.', **kwargs)))
277 
278  if kwargs['processStrips']:
279  acc.merge(ActsStripClusterPreparationAlgCfg(flags,
280  RoIs=RoIs,
281  **extractChildKwargs(prefix='StripClusterPreparationAlg.', **kwargs)))
282 
283  # Analysis extensions
284  if flags.Acts.doAnalysis:
285  if kwargs['processPixels']:
286  from ActsConfig.ActsAnalysisConfig import ActsPixelClusterAnalysisAlgCfg
287  acc.merge(ActsPixelClusterAnalysisAlgCfg(flags, **extractChildKwargs(prefix='PixelClusterAnalysisAlg.', **kwargs)))
288 
289  if kwargs['processStrips']:
290  from ActsConfig.ActsAnalysisConfig import ActsStripClusterAnalysisAlgCfg
291  acc.merge(ActsStripClusterAnalysisAlgCfg(flags, **extractChildKwargs(prefix='StripClusterAnalysisAlg.', **kwargs)))
292 
293  return acc
294 

◆ ActsPixelClusteringToolCfg()

ComponentAccumulator ActsClusterizationConfig.ActsPixelClusteringToolCfg (   flags,
str   name = "ActsPixelClusteringTool",
**  kwargs 
)

Definition at line 52 of file ActsClusterizationConfig.py.

53  name: str = "ActsPixelClusteringTool",
54  **kwargs) -> ComponentAccumulator:
55  acc = ComponentAccumulator()
56 
57  from PixelConditionsAlgorithms.ITkPixelConditionsConfig import ITkPixelChargeCalibCondAlgCfg, ITkPixelOfflineCalibCondAlgCfg
58  acc.merge(ITkPixelChargeCalibCondAlgCfg(flags))
59  acc.merge(ITkPixelOfflineCalibCondAlgCfg(flags))
60 
61  from PixelReadoutGeometry.PixelReadoutGeometryConfig import ITkPixelReadoutManagerCfg
62  acc.merge(ITkPixelReadoutManagerCfg(flags))
63 
64  if 'PixelRDOTool' not in kwargs:
65  from InDetConfig.SiClusterizationToolConfig import ITkPixelRDOToolCfg
66  kwargs.setdefault("PixelRDOTool", acc.popToolsAndMerge(ITkPixelRDOToolCfg(flags)))
67 
68  if "PixelLorentzAngleTool" not in kwargs:
69  from SiLorentzAngleTool.ITkPixelLorentzAngleConfig import ITkPixelLorentzAngleToolCfg
70  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge( ITkPixelLorentzAngleToolCfg(flags) ))
71 
72  kwargs.setdefault(
73  'UseWeightedPosition',
74  not (flags.Tracking.doPixelDigitalClustering or flags.Beam.Type is BeamType.Cosmics)
75  )
76 
77  kwargs.setdefault('UseBroadErrors', flags.Beam.Type is BeamType.Cosmics)
78 
79  acc.setPrivateTools(CompFactory.ActsTrk.PixelClusteringTool(name, **kwargs))
80  return acc
81 
82 

◆ ActsPixelClusterizationAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsPixelClusterizationAlgCfg (   flags,
str   name = 'ActsPixelClusterizationAlg',
*bool   useCache = False,
**  kwargs 
)

Definition at line 106 of file ActsClusterizationConfig.py.

107  name: str = 'ActsPixelClusterizationAlg',
108  *,
109  useCache: bool = False,
110  **kwargs) -> ComponentAccumulator:
111  acc = ComponentAccumulator()
112 
113  kwargs.setdefault("expectedClustersPerRDO", 32)
114  kwargs.setdefault("IDHelper", "PixelID")
115  kwargs.setdefault("RDOContainerKey", "ITkPixelRDOs")
116  kwargs.setdefault("ClustersKey", "ITkPixelClusters")
117  # Regional selection
118  kwargs.setdefault('RoIs', 'ActsRegionOfInterest')
119 
120  kwargs.setdefault('ClusterCacheBackend', 'ActsPixelClusterCache_Back')
121  kwargs.setdefault('ClusterCache', 'ActsPixelClustersCache')
122 
123  if 'RegSelTool' not in kwargs:
124  from RegionSelector.RegSelToolConfig import regSelTool_ITkPixel_Cfg
125  kwargs.setdefault('RegSelTool', acc.popToolsAndMerge(regSelTool_ITkPixel_Cfg(flags)))
126 
127  if 'ClusteringTool' not in kwargs:
128  kwargs.setdefault("ClusteringTool", acc.popToolsAndMerge(ActsPixelClusteringToolCfg(flags)))
129 
130  if flags.Acts.doMonitoring and 'MonTool' not in kwargs:
131  from ActsConfig.ActsMonitoringConfig import ActsITkPixelClusterizationMonitoringToolCfg
132  kwargs.setdefault('MonTool', acc.popToolsAndMerge(ActsITkPixelClusterizationMonitoringToolCfg(flags)))
133 
134  if not useCache:
135  acc.addEventAlgo(CompFactory.ActsTrk.PixelClusterizationAlg(name, **kwargs))
136  else:
137  acc.addEventAlgo(CompFactory.ActsTrk.PixelCacheClusterizationAlg(name, **kwargs))
138  return acc
139 

◆ ActsPixelClusterPreparationAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsPixelClusterPreparationAlgCfg (   flags,
str   name = "ActsPixelClusterPreparationAlg",
bool   useCache = False,
**  kwargs 
)

Definition at line 182 of file ActsClusterizationConfig.py.

183  name: str = "ActsPixelClusterPreparationAlg",
184  useCache: bool = False,
185  **kwargs) -> ComponentAccumulator:
186  acc = ComponentAccumulator()
187 
188  kwargs.setdefault('InputCollection', 'ITkPixelClusters')
189  kwargs.setdefault('DetectorElements', 'ITkPixelDetectorElementCollection')
190 
191  if 'RegSelTool' not in kwargs:
192  from RegionSelector.RegSelToolConfig import regSelTool_ITkPixel_Cfg
193  kwargs.setdefault('RegSelTool', acc.popToolsAndMerge(regSelTool_ITkPixel_Cfg(flags)))
194 
195  if flags.Acts.doMonitoring and 'MonTool' not in kwargs:
196  from ActsConfig.ActsMonitoringConfig import ActsDataPreparationMonitoringToolCfg
197  kwargs.setdefault('MonTool', acc.popToolsAndMerge(ActsDataPreparationMonitoringToolCfg(flags,
198  name = "ActsPixelClusterPreparationMonitoringTool")))
199 
200  if not useCache:
201  acc.addEventAlgo(CompFactory.ActsTrk.PixelClusterDataPreparationAlg(name, **kwargs))
202  else:
203  acc.addEventAlgo(CompFactory.ActsTrk.PixelClusterCacheDataPreparationAlg(name, **kwargs))
204  return acc
205 

◆ ActsStripClusteringToolCfg()

ComponentAccumulator ActsClusterizationConfig.ActsStripClusteringToolCfg (   flags,
str   name = "ActsStripClusteringTool",
**  kwargs 
)

Definition at line 83 of file ActsClusterizationConfig.py.

84  name: str = "ActsStripClusteringTool",
85  **kwargs) -> ComponentAccumulator:
86  acc = ComponentAccumulator()
87 
88  if 'LorentzAngleTool' not in kwargs:
89  from SiLorentzAngleTool.ITkStripLorentzAngleConfig import ITkStripLorentzAngleToolCfg
90  kwargs.setdefault("LorentzAngleTool", acc.popToolsAndMerge(ITkStripLorentzAngleToolCfg(flags)))
91 
92  if 'conditionsTool' not in kwargs:
93  from SCT_ConditionsTools.ITkStripConditionsToolsConfig import ITkStripConditionsSummaryToolCfg
94  kwargs.setdefault("conditionsTool", acc.popToolsAndMerge(ITkStripConditionsSummaryToolCfg(flags)))
95 
96  # Disable noisy modules suppression
97  kwargs.setdefault("maxFiredStrips", 0)
98 
99  if flags.ITk.selectStripIntimeHits and 'timeBins' not in kwargs:
100  coll_25ns = flags.Beam.BunchSpacing<=25 and flags.Beam.Type is BeamType.Collisions
101  kwargs.setdefault("timeBins", "01X" if coll_25ns else "X1X")
102 
103  acc.setPrivateTools(CompFactory.ActsTrk.StripClusteringTool(name, **kwargs))
104  return acc
105 

◆ ActsStripClusterizationAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsStripClusterizationAlgCfg (   flags,
str   name = 'ActsStripClusterizationAlg',
bool   useCache = False,
**  kwargs 
)

Definition at line 140 of file ActsClusterizationConfig.py.

141  name: str = 'ActsStripClusterizationAlg',
142  useCache: bool = False,
143  **kwargs) -> ComponentAccumulator:
144  acc = ComponentAccumulator()
145 
146  kwargs.setdefault("RDOContainerKey", "ITkStripRDOs")
147  kwargs.setdefault("ClustersKey", "ITkStripClusters")
148  kwargs.setdefault("expectedClustersPerRDO", 6)
149  kwargs.setdefault("IDHelper", "SCT_ID")
150  # Regional selection
151  kwargs.setdefault('RoIs', 'ActsRegionOfInterest')
152 
153  kwargs.setdefault('ClusterCacheBackend', 'ActsStripClusterCache_Back')
154  kwargs.setdefault('ClusterCache', 'ActsStripClustersCache')
155 
156  if 'RegSelTool' not in kwargs:
157  from RegionSelector.RegSelToolConfig import regSelTool_ITkStrip_Cfg
158  kwargs.setdefault('RegSelTool', acc.popToolsAndMerge(regSelTool_ITkStrip_Cfg(flags)))
159 
160  if 'ClusteringTool' not in kwargs:
161  kwargs.setdefault("ClusteringTool", acc.popToolsAndMerge(ActsStripClusteringToolCfg(flags)))
162 
163  if flags.Acts.doMonitoring and 'MonTool' not in kwargs:
164  from ActsConfig.ActsMonitoringConfig import ActsITkStripClusterizationMonitoringToolCfg
165  kwargs.setdefault('MonTool', acc.popToolsAndMerge(ActsITkStripClusterizationMonitoringToolCfg(flags)))
166 
167  if not useCache:
168  acc.addEventAlgo(CompFactory.ActsTrk.StripClusterizationAlg(name, **kwargs))
169  else:
170  acc.addEventAlgo(CompFactory.ActsTrk.StripCacheClusterizationAlg(name, **kwargs))
171  return acc
172 

◆ ActsStripClusterPreparationAlgCfg()

ComponentAccumulator ActsClusterizationConfig.ActsStripClusterPreparationAlgCfg (   flags,
str   name = "ActsStripClusterPreparationAlg",
bool   useCache = False,
**  kwargs 
)

Definition at line 206 of file ActsClusterizationConfig.py.

207  name: str = "ActsStripClusterPreparationAlg",
208  useCache: bool = False,
209  **kwargs) -> ComponentAccumulator:
210  acc = ComponentAccumulator()
211 
212  kwargs.setdefault('InputCollection', 'ITkStripClusters')
213  kwargs.setdefault('DetectorElements', 'ITkStripDetectorElementCollection')
214 
215  if 'RegSelTool' not in kwargs:
216  from RegionSelector.RegSelToolConfig import regSelTool_ITkStrip_Cfg
217  kwargs.setdefault('RegSelTool', acc.popToolsAndMerge(regSelTool_ITkStrip_Cfg(flags)))
218 
219  if flags.Acts.doMonitoring and 'MonTool' not in kwargs:
220  from ActsConfig.ActsMonitoringConfig import ActsDataPreparationMonitoringToolCfg
221  kwargs.setdefault('MonTool', acc.popToolsAndMerge(ActsDataPreparationMonitoringToolCfg(flags,
222  name = "ActsStripClusterPreparationMonitoringTool")))
223 
224  if not useCache:
225  acc.addEventAlgo(CompFactory.ActsTrk.StripClusterDataPreparationAlg(name, **kwargs))
226  else:
227  acc.addEventAlgo(CompFactory.ActsTrk.StripClusterCacheDataPreparationAlg(name, **kwargs))
228  return acc
229 
ActsClusterizationConfig.ActsPixelClusterizationAlgCfg
ComponentAccumulator ActsPixelClusterizationAlgCfg(flags, str name='ActsPixelClusterizationAlg', *bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:106
ActsClusterizationConfig.ActsHgtdClusteringToolCfg
ComponentAccumulator ActsHgtdClusteringToolCfg(flags, str name="ActsHgtdClusteringTool", **kwargs)
Definition: ActsClusterizationConfig.py:8
python.ITkStripLorentzAngleConfig.ITkStripLorentzAngleToolCfg
def ITkStripLorentzAngleToolCfg(flags, name="ITkStripLorentzAngleTool", **kwargs)
Definition: ITkStripLorentzAngleConfig.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsUtilities.extractChildKwargs
dict extractChildKwargs(*str prefix, **dict kwargs)
Definition: ActsUtilities.py:3
ActsMonitoringConfig.ActsHgtdClusterizationMonitoringToolCfg
ComponentAccumulator ActsHgtdClusterizationMonitoringToolCfg(flags, str name="ActsHgtdClusterizationMonitoringTool", **kwargs)
Definition: ActsMonitoringConfig.py:64
ActsMonitoringConfig.ActsITkStripClusterizationMonitoringToolCfg
ComponentAccumulator ActsITkStripClusterizationMonitoringToolCfg(flags, str name="ActsITkStripClusterizationMonitoringTool", **kwargs)
Definition: ActsMonitoringConfig.py:31
ActsClusterizationConfig.ActsHgtdClusterizationAlgCfg
ComponentAccumulator ActsHgtdClusterizationAlgCfg(flags, str name="ActsHgtdClusterizationAlg", **kwargs)
Definition: ActsClusterizationConfig.py:22
ActsAnalysisConfig.ActsStripClusterAnalysisAlgCfg
ComponentAccumulator ActsStripClusterAnalysisAlgCfg(flags, str name="ActsStripClusterAnalysisAlg", str extension="Acts", **kwargs)
Definition: ActsAnalysisConfig.py:174
RegSelToolConfig.regSelTool_ITkPixel_Cfg
def regSelTool_ITkPixel_Cfg(flags)
Definition: RegSelToolConfig.py:122
python.SiClusterizationToolConfig.ITkPixelRDOToolCfg
def ITkPixelRDOToolCfg(flags, name="ITkPixelRDOTool", **kwargs)
Definition: SiClusterizationToolConfig.py:103
ActsClusterizationConfig.ActsStripClusterizationAlgCfg
ComponentAccumulator ActsStripClusterizationAlgCfg(flags, str name='ActsStripClusterizationAlg', bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:140
python.ITkPixelLorentzAngleConfig.ITkPixelLorentzAngleToolCfg
def ITkPixelLorentzAngleToolCfg(flags, name="ITkPixelLorentzAngleTool", **kwargs)
Definition: ITkPixelLorentzAngleConfig.py:14
RegSelToolConfig.regSelTool_ITkStrip_Cfg
def regSelTool_ITkStrip_Cfg(flags)
Definition: RegSelToolConfig.py:128
ActsMonitoringConfig.ActsDataPreparationMonitoringToolCfg
ComponentAccumulator ActsDataPreparationMonitoringToolCfg(flags, str name="ActsDataPreparationMonitoringTool", **kwargs)
Definition: ActsMonitoringConfig.py:49
python.PixelReadoutGeometryConfig.ITkPixelReadoutManagerCfg
def ITkPixelReadoutManagerCfg(flags, name="ITkPixelReadoutManager", **kwargs)
Definition: PixelReadoutGeometryConfig.py:13
ActsClusterizationConfig.ActsHgtdTimedClusteringToolCfg
ComponentAccumulator ActsHgtdTimedClusteringToolCfg(flags, str name="ActsHgtdTimedClusteringTool", **kwargs)
Definition: ActsClusterizationConfig.py:15
HGTD_GeoModelConfig.HGTD_ReadoutGeometryCfg
def HGTD_ReadoutGeometryCfg(flags)
Definition: python/HGTD_GeoModelConfig.py:23
ActsClusterizationConfig.ActsClusterizationCfg
ComponentAccumulator ActsClusterizationCfg(flags, *str previousActsExtension=None)
Definition: ActsClusterizationConfig.py:295
ActsClusterizationConfig.ActsStripClusterPreparationAlgCfg
ComponentAccumulator ActsStripClusterPreparationAlgCfg(flags, str name="ActsStripClusterPreparationAlg", bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:206
python.ITkStripConditionsToolsConfig.ITkStripConditionsSummaryToolCfg
def ITkStripConditionsSummaryToolCfg(flags, name="ITkStripConditionsSummaryTool", **kwargs)
Definition: ITkStripConditionsToolsConfig.py:16
ActsMonitoringConfig.ActsITkPixelClusterizationMonitoringToolCfg
ComponentAccumulator ActsITkPixelClusterizationMonitoringToolCfg(flags, str name="ActsITkPixelClusterizationMonitoringTool", **kwargs)
Definition: ActsMonitoringConfig.py:13
ITkPixelConditionsConfig.ITkPixelChargeCalibCondAlgCfg
def ITkPixelChargeCalibCondAlgCfg(flags, name="ITkPixelChargeCalibCondAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:74
ActsClusterizationConfig.ActsPixelClusterPreparationAlgCfg
ComponentAccumulator ActsPixelClusterPreparationAlgCfg(flags, str name="ActsPixelClusterPreparationAlg", bool useCache=False, **kwargs)
Definition: ActsClusterizationConfig.py:182
ActsClusterizationConfig.ActsMainClusterizationCfg
ComponentAccumulator ActsMainClusterizationCfg(flags, *str RoIs="ActsRegionOfInterest", **dict kwargs)
Definition: ActsClusterizationConfig.py:230
ITkPixelConditionsConfig.ITkPixelOfflineCalibCondAlgCfg
def ITkPixelOfflineCalibCondAlgCfg(flags, name="ITkPixelOfflineCalibCondAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:164
ActsClusterizationConfig.ActsClusterCacheCreatorAlgCfg
ComponentAccumulator ActsClusterCacheCreatorAlgCfg(flags, str name="ActsClusterCacheCreatorAlg", **kwargs)
Definition: ActsClusterizationConfig.py:173
ActsClusterizationConfig.ActsStripClusteringToolCfg
ComponentAccumulator ActsStripClusteringToolCfg(flags, str name="ActsStripClusteringTool", **kwargs)
Definition: ActsClusterizationConfig.py:83
ActsClusterizationConfig.ActsPixelClusteringToolCfg
ComponentAccumulator ActsPixelClusteringToolCfg(flags, str name="ActsPixelClusteringTool", **kwargs)
Definition: ActsClusterizationConfig.py:52
ActsAnalysisConfig.ActsPixelClusterAnalysisAlgCfg
ComponentAccumulator ActsPixelClusterAnalysisAlgCfg(flags, str name="ActsPixelClusterAnalysisAlg", str extension="Acts", **kwargs)
Definition: ActsAnalysisConfig.py:140