ATLAS Offline Software
SiClusterizationToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of SiClusterizationTool package
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.Enums import BeamType, LHCPeriod
7 from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
8 
9 
10 def ClusterMakerToolCfg(flags, name="InDetClusterMakerTool", **kwargs):
11  acc = ComponentAccumulator()
12 
13  # This directly needs the following Conditions data:
14  # PixelChargeCalibCondData & PixelOfflineCalibData
15  from PixelConditionsAlgorithms.PixelConditionsConfig import (
16  PixelChargeCalibCondCfg, PixelOfflineCalibCondAlgCfg)
17  if ('SCT' in flags.Digitization.DoFastDigi and
18  'Pixel' not in flags.Digitization.DoFastDigi):
19  acc.merge(PixelChargeCalibCondCfg(flags, ReadKey=""))
20  else:
21  acc.merge(PixelChargeCalibCondCfg(flags))
22  acc.merge(PixelOfflineCalibCondAlgCfg(flags))
23 
24  from PixelReadoutGeometry.PixelReadoutGeometryConfig import (
25  PixelReadoutManagerCfg)
26  acc.merge(PixelReadoutManagerCfg(flags))
27 
28  if "PixelLorentzAngleTool" not in kwargs:
29  from SiLorentzAngleTool.PixelLorentzAngleConfig import (
30  PixelLorentzAngleToolCfg)
31  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge(
33 
34  if "SCTLorentzAngleTool" not in kwargs:
35  from SiLorentzAngleTool.SCT_LorentzAngleConfig import (
36  SCT_LorentzAngleToolCfg)
37  kwargs.setdefault("SCTLorentzAngleTool", acc.popToolsAndMerge(
39 
40  acc.setPrivateTools(CompFactory.InDet.ClusterMakerTool(name, **kwargs))
41  return acc
42 
43 
44 def ITkClusterMakerToolCfg(flags, name="ITkClusterMakerTool", **kwargs):
45  acc = ComponentAccumulator()
46 
47  from PixelConditionsAlgorithms.ITkPixelConditionsConfig import (
48  ITkPixelChargeCalibCondAlgCfg)
49  from PixelReadoutGeometry.PixelReadoutGeometryConfig import (
50  ITkPixelReadoutManagerCfg)
51 
52  # This directly needs the following Conditions data:
53  # PixelModuleData & PixelChargeCalibCondData
54  acc.merge(ITkPixelChargeCalibCondAlgCfg(flags))
55  acc.merge(ITkPixelReadoutManagerCfg(flags))
56  kwargs.setdefault("PixelReadoutManager", acc.getService(
57  "ITkPixelReadoutManager"))
58 
59  if "PixelLorentzAngleTool" not in kwargs:
60  from SiLorentzAngleTool.ITkPixelLorentzAngleConfig import (
61  ITkPixelLorentzAngleToolCfg)
62  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge(
64 
65  if "SCTLorentzAngleTool" not in kwargs:
66  from SiLorentzAngleTool.ITkStripLorentzAngleConfig import (
67  ITkStripLorentzAngleToolCfg)
68  kwargs.setdefault("SCTLorentzAngleTool", acc.popToolsAndMerge(
70 
71  acc.setPrivateTools(CompFactory.InDet.ClusterMakerTool(name, **kwargs))
72  return acc
73 
74 
75 def InDetPixelRDOToolCfg(flags, name="InDetPixelRDOTool", **kwargs):
76  # To produce PixelDetectorElementCollection condition data
77  from PixelGeoModel.PixelGeoModelConfig import PixelReadoutGeometryCfg
78  acc = PixelReadoutGeometryCfg(flags)
79 
80  kwargs.setdefault("PixelDetElStatus", "PixelDetectorElementStatus")
81 
82  if kwargs["PixelDetElStatus"] != "":
83  from PixelConditionsAlgorithms.PixelConditionsConfig import (
84  PixelDetectorElementStatusAlgCfg)
85  acc.merge(PixelDetectorElementStatusAlgCfg(flags))
86 
87  if "PixelConditionsSummaryTool" not in kwargs:
88  from PixelConditionsTools.PixelConditionsSummaryConfig import (
89  PixelConditionsSummaryCfg)
90  kwargs.setdefault("PixelConditionsSummaryTool", acc.popToolsAndMerge(
92 
93  # Enable duplicated RDO check for data15 because duplication mechanism
94  # was used.
95  kwargs.setdefault("CheckDuplicatedRDO",
96  (len(flags.Input.ProjectName) >= 6 and
97  flags.Input.ProjectName[:6] == "data15"))
98 
99  acc.setPrivateTools(CompFactory.InDet.PixelRDOTool(name, **kwargs))
100  return acc
101 
102 
103 def ITkPixelRDOToolCfg(flags, name="ITkPixelRDOTool", **kwargs):
104  # To produce ITkPixelDetectorElementCollection condition data
105  from PixelGeoModelXml.ITkPixelGeoModelConfig import (
106  ITkPixelReadoutGeometryCfg)
107  acc = ITkPixelReadoutGeometryCfg(flags)
108 
109  kwargs.setdefault("PixelConditionsSummaryTool", None) # PixelDetElStatus is used instead
110  if "PixelDetElStatus" not in kwargs :
111  if not flags.Trigger.doHLT :
112  from PixelConditionsAlgorithms.ITkPixelConditionsConfig import (
113  ITkPixelDetectorElementStatusAlgCfg)
114  acc.merge(ITkPixelDetectorElementStatusAlgCfg(flags))
115  kwargs.setdefault("PixelDetElStatus", "ITkPixelDetectorElementStatus")
116 
117  kwargs.setdefault("PixelReadoutManager","ITkPixelReadoutManager")
118 
119  kwargs.setdefault("PixelDetEleCollKey", "ITkPixelDetectorElementCollection")
120  kwargs.setdefault("CheckGanged", False)
121 
122  acc.setPrivateTools(CompFactory.InDet.PixelRDOTool(name, **kwargs))
123  return acc
124 
125 
126 def TrigPixelRDOToolCfg(flags, name="InDetTrigPixelRDOTool"):
127  return InDetPixelRDOToolCfg(flags, name, PixelDetElStatus="", PrintDuplicate=False)
128 
129 
130 def MergedPixelsToolCfg(flags, name="InDetMergedPixelsTool", **kwargs):
131  acc = ComponentAccumulator()
132 
133  kwargs.setdefault("globalPosAlg", acc.popToolsAndMerge(
134  ClusterMakerToolCfg(flags)))
135  kwargs.setdefault("PixelRDOTool", acc.popToolsAndMerge(
136  InDetPixelRDOToolCfg(flags)))
137 
138  acc.setPrivateTools(CompFactory.InDet.MergedPixelsTool(name, **kwargs))
139  return acc
140 
141 
142 def TrigMergedPixelsToolCfg(flags, name="InDetTrigMergedPixelsTool"):
143  acc = ComponentAccumulator()
144  kwargs = {}
145 
146  kwargs["globalPosAlg"] = acc.popToolsAndMerge(ClusterMakerToolCfg(flags))
147  kwargs["PixelRDOTool"] = acc.popToolsAndMerge(TrigPixelRDOToolCfg(flags))
148 
149  acc.setPrivateTools(CompFactory.InDet.MergedPixelsTool(name, **kwargs))
150  return acc
151 
152 
153 def ITkMergedPixelsToolCfg(flags, name="ITkMergedPixelsTool", **kwargs):
154  acc = ComponentAccumulator()
155 
156  kwargs.setdefault("globalPosAlg", acc.popToolsAndMerge(
157  ITkClusterMakerToolCfg(flags)))
158  kwargs.setdefault("PixelRDOTool", acc.popToolsAndMerge(
159  ITkPixelRDOToolCfg(flags)))
160 
161  kwargs.setdefault("PixelChargeCalibCondData", "ITkPixelChargeCalibCondData")
162  kwargs.setdefault("PixelOfflineCalibData", "")
163 
164  acc.setPrivateTools(CompFactory.InDet.MergedPixelsTool(name, **kwargs))
165  return acc
166 
167 
169  flags, name="PixelClusterNnCondAlg", trackNetwork=False, **kwargs):
170  acc = ComponentAccumulator()
171 
172  nn_names = [
173  "NumberParticles_NoTrack/",
174  "ImpactPoints1P_NoTrack/",
175  "ImpactPoints2P_NoTrack/",
176  "ImpactPoints3P_NoTrack/",
177  "ImpactPointErrorsX1_NoTrack/",
178  "ImpactPointErrorsX2_NoTrack/",
179  "ImpactPointErrorsX3_NoTrack/",
180  "ImpactPointErrorsY1_NoTrack/",
181  "ImpactPointErrorsY2_NoTrack/",
182  "ImpactPointErrorsY3_NoTrack/"]
183 
184  if trackNetwork:
185  nn_names = [elm.replace('_NoTrack', '') for elm in nn_names]
186 
187  kwargs.setdefault("NetworkNames", nn_names)
188  kwargs.setdefault("GetInputsInfo", True)
189  kwargs.setdefault("WriteKey", ("PixelClusterNN" if not trackNetwork
190  else "PixelClusterNNWithTrack"))
191 
192  acc.merge(addFoldersSplitOnline(
193  flags, "PIXEL",
194  "/PIXEL/Onl/PixelClustering/PixelClusNNCalib",
195  "/PIXEL/PixelClustering/PixelClusNNCalib",
196  className='CondAttrListCollection'))
197 
198  if "NetworkToHistoTool" not in kwargs:
199  from TrkConfig.TrkNeuralNetworkUtilsConfig import (
200  NeuralNetworkToHistoToolCfg)
201  kwargs.setdefault("NetworkToHistoTool", acc.popToolsAndMerge(
203 
204  acc.addCondAlgo(CompFactory.InDet.TTrainedNetworkCondAlg(name, **kwargs))
205  return acc
206 
207 
209  flags, name="PixelClusterNnWithTrackCondAlg"):
210  return PixelClusterNnCondAlgCfg(flags, name, trackNetwork=True)
211 
212 
213 def LWTNNCondAlgCfg(flags, name="LWTNNCondAlg", **kwargs):
214  acc = ComponentAccumulator()
215 
216  acc.merge(addFoldersSplitOnline(
217  flags, "PIXEL",
218  "/PIXEL/Onl/PixelClustering/PixelNNCalibJSON",
219  "/PIXEL/PixelClustering/PixelNNCalibJSON",
220  className="CondAttrListCollection"))
221 
222  kwargs.setdefault("WriteKey", "PixelClusterNNJSON")
223 
224  acc.addCondAlgo(CompFactory.InDet.LWTNNCondAlg(name, **kwargs))
225  return acc
226 
227 
228 def NnClusterizationFactoryCfg(flags, name="NnClusterizationFactory", **kwargs):
229  from PixelReadoutGeometry.PixelReadoutGeometryConfig import (
230  PixelReadoutManagerCfg)
231  acc = PixelReadoutManagerCfg(flags)
232 
233  from PixelConditionsAlgorithms.PixelConditionsConfig import (
234  PixelChargeCalibCondCfg)
235  acc.merge(PixelChargeCalibCondCfg(flags))
236 
237  if flags.GeoModel.Run is LHCPeriod.Run1:
238  acc.merge(PixelClusterNnCondAlgCfg(flags))
239  acc.merge(PixelClusterNnWithTrackCondAlgCfg(flags))
240  else:
241  acc.merge(LWTNNCondAlgCfg(flags))
242 
243  if "PixelLorentzAngleTool" not in kwargs:
244  from SiLorentzAngleTool.PixelLorentzAngleConfig import (
245  PixelLorentzAngleToolCfg)
246  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge(
247  PixelLorentzAngleToolCfg(flags)))
248 
249  kwargs.setdefault("doRunI", flags.GeoModel.Run is LHCPeriod.Run1)
250  kwargs.setdefault("useToT", False)
251  kwargs.setdefault("useRecenteringNNWithoutTracks", (
252  flags.GeoModel.Run is LHCPeriod.Run1))
253  kwargs.setdefault("useRecenteringNNWithTracks", False)
254  kwargs.setdefault("correctLorShiftBarrelWithoutTracks", 0)
255  kwargs.setdefault("correctLorShiftBarrelWithTracks", (
256  0.03 if flags.GeoModel.Run is LHCPeriod.Run1 else 0.))
257  kwargs.setdefault("useTTrainedNetworks",
258  flags.GeoModel.Run is LHCPeriod.Run1)
259  kwargs.setdefault("NnCollectionReadKey", (
260  "PixelClusterNN" if flags.GeoModel.Run is LHCPeriod.Run1 else ""))
261  kwargs.setdefault("NnCollectionWithTrackReadKey", (
262  "PixelClusterNNWithTrack" if flags.GeoModel.Run is LHCPeriod.Run1
263  else ""))
264  kwargs.setdefault("NnCollectionJSONReadKey", (
265  "" if flags.GeoModel.Run is LHCPeriod.Run1
266  else "PixelClusterNNJSON"))
267 
268  acc.setPrivateTools(
269  CompFactory.InDet.NnClusterizationFactory(name, **kwargs))
270  return acc
271 
272 
273 def TrigNnClusterizationFactoryCfg(flags, name="TrigNnClusterizationFactory"):
274  acc = ComponentAccumulator()
275  kwargs = {}
276 
277  from PixelConditionsAlgorithms.PixelConditionsConfig import (
278  PixelChargeCalibCondCfg)
279  acc.merge(PixelChargeCalibCondCfg(flags))
280 
281  acc.merge(PixelClusterNnCondAlgCfg(flags))
282  acc.merge(PixelClusterNnWithTrackCondAlgCfg(flags))
283 
284  from SiLorentzAngleTool.PixelLorentzAngleConfig import (
285  PixelLorentzAngleToolCfg)
286  kwargs["PixelLorentzAngleTool"] = acc.popToolsAndMerge(
288 
289  kwargs["useToT"] = False
290  kwargs["NnCollectionReadKey"] = "PixelClusterNN"
291  kwargs["NnCollectionWithTrackReadKey"] = "PixelClusterNNWithTrack"
292 
293  acc.setPrivateTools(
294  CompFactory.InDet.NnClusterizationFactory(name, **kwargs))
295  return acc
296 
297 def ITkNnClusterizationFactoryCfg(flags, name="ITkNnClusterizationFactory", **kwargs):
298  from PixelReadoutGeometry.PixelReadoutGeometryConfig import (
299  ITkPixelReadoutManagerCfg)
300  acc = ITkPixelReadoutManagerCfg(flags)
301 
302  from PixelConditionsAlgorithms.ITkPixelConditionsConfig import (
303  ITkPixelChargeCalibCondAlgCfg)
304  acc.merge(ITkPixelChargeCalibCondAlgCfg(flags))
305 
306  acc.merge(LWTNNCondAlgCfg(flags))
307 
308  if "PixelLorentzAngleTool" not in kwargs:
309  from SiLorentzAngleTool.ITkPixelLorentzAngleConfig import (
310  ITkPixelLorentzAngleToolCfg)
311  kwargs.setdefault("PixelLorentzAngleTool", acc.popToolsAndMerge(
313 
314  kwargs.setdefault("useToT", False)
315  kwargs.setdefault("NnCollectionReadKey", "")
316  kwargs.setdefault("NnCollectionWithTrackReadKey", "")
317  kwargs.setdefault("NnCollectionJSONReadKey", "PixelClusterNNJSON")
318 
319  kwargs.setdefault("PixelReadoutManager", "ITkPixelReadoutManager")
320  kwargs.setdefault("PixelChargeCalibCondData", "ITkPixelChargeCalibCondData")
321 
322  acc.setPrivateTools(
323  CompFactory.InDet.NnClusterizationFactory(name, **kwargs))
324  return acc
325 
326 
328  flags, name="NnPixelClusterSplitProbTool", **kwargs):
329  acc = ComponentAccumulator()
330 
331  kwargs.setdefault("NnClusterizationFactory", acc.popToolsAndMerge(
333  kwargs.setdefault("PriorMultiplicityContent", [1, 1, 1])
334  kwargs.setdefault("useBeamSpotInfo", flags.Tracking.useBeamSpotInfoNN)
335 
336  acc.setPrivateTools(
337  CompFactory.InDet.NnPixelClusterSplitProbTool(name, **kwargs))
338  return acc
339 
341  flags, name="ITkNnPixelClusterSplitProbTool", **kwargs):
342  acc = ComponentAccumulator()
343 
344  kwargs.setdefault("NnClusterizationFactory", acc.popToolsAndMerge(
346  kwargs.setdefault("PriorMultiplicityContent", [1, 1, 1])
347  kwargs.setdefault("useBeamSpotInfo", flags.Tracking.useBeamSpotInfoNN)
348 
349  acc.setPrivateTools(
350  CompFactory.InDet.NnPixelClusterSplitProbTool(name, **kwargs))
351  return acc
352 
353 
355  flags, name="InDetPixelGangedAmbiguitiesFinder", **kwargs):
356  # To produce PixelDetectorElementCollection condition data
357  from PixelGeoModel.PixelGeoModelConfig import PixelReadoutGeometryCfg
358  acc = PixelReadoutGeometryCfg(flags)
359  acc.setPrivateTools(
360  CompFactory.InDet.PixelGangedAmbiguitiesFinder(name, **kwargs))
361  return acc
362 
363 
365  flags, name="ITkPixelGangedAmbiguitiesFinder", **kwargs):
366  # To produce ITkPixelDetectorElementCollection condition data
367  from PixelGeoModelXml.ITkPixelGeoModelConfig import (
368  ITkPixelReadoutGeometryCfg)
369  acc = ITkPixelReadoutGeometryCfg(flags)
370  kwargs.setdefault("PixelDetEleCollKey", "ITkPixelDetectorElementCollection")
371  acc.setPrivateTools(
372  CompFactory.InDet.PixelGangedAmbiguitiesFinder(name, **kwargs))
373  return acc
374 
375 
377  flags, name="InDetSCT_ClusteringTool", **kwargs):
378  # To produce SCT_DetectorElementCollection
379  from SCT_GeoModel.SCT_GeoModelConfig import SCT_ReadoutGeometryCfg
380  acc = SCT_ReadoutGeometryCfg(flags)
381 
382  kwargs.setdefault("SCTDetElStatus",
383  "SCTDetectorElementStatusWithoutFlagged")
384  # Simplification introduced in r25
385  kwargs.setdefault("doSimplePositionWidthCalculation",
386  flags.InDet.doSCTSimpleWidth)
387 
388  if "conditionsTool" not in kwargs:
389  from SCT_ConditionsTools.SCT_ConditionsToolsConfig import (
390  SCT_ConditionsSummaryToolCfg)
391  kwargs.setdefault("conditionsTool", acc.popToolsAndMerge(
392  SCT_ConditionsSummaryToolCfg(flags, withFlaggedCondTool=False)))
393 
394  if "LorentzAngleTool" not in kwargs:
395  from SiLorentzAngleTool.SCT_LorentzAngleConfig import (
396  SCT_LorentzAngleToolCfg)
397  kwargs.setdefault("LorentzAngleTool", acc.popToolsAndMerge(
398  SCT_LorentzAngleToolCfg(flags)))
399 
400  kwargs.setdefault("globalPosAlg", acc.popToolsAndMerge(
401  ClusterMakerToolCfg(flags)))
402 
403  if flags.InDet.selectSCTIntimeHits:
404  coll_25ns = (flags.Beam.BunchSpacing <= 25 and
405  flags.Beam.Type is BeamType.Collisions)
406  kwargs.setdefault("timeBins", "01X" if coll_25ns else "X1X")
407 
408  acc.setPrivateTools(CompFactory.InDet.SCT_ClusteringTool(name, **kwargs))
409  return acc
410 
411 
412 def Trig_SCT_ClusteringToolCfg(flags, name="Trig_SCT_ClusteringTool", **kwargs):
413  acc = ComponentAccumulator()
414 
415  if "conditionsTool" not in kwargs:
416  from SCT_ConditionsTools.SCT_ConditionsToolsConfig import (
417  SCT_ConditionsSummaryToolCfg)
418  kwargs.setdefault("conditionsTool", acc.popToolsAndMerge(
419  SCT_ConditionsSummaryToolCfg(flags, withFlaggedCondTool=False, withTdaqTool=False)))
420 
421  kwargs.setdefault("SCTDetElStatus", "")
422 
423  # Keep r24 config for now
424  kwargs.setdefault("doSimplePositionWidthCalculation", False)
425 
426  acc.setPrivateTools(acc.popToolsAndMerge(
427  SCT_ClusteringToolCfg(flags, name, **kwargs)))
428  return acc
429 
430 
432  flags, name="ITkStripClusteringTool", **kwargs):
433  # To produce ITkStripDetectorElementCollection
434  from StripGeoModelXml.ITkStripGeoModelConfig import (
435  ITkStripReadoutGeometryCfg)
436  acc = ITkStripReadoutGeometryCfg(flags)
437 
438  kwargs.setdefault("SCTDetEleCollKey", "ITkStripDetectorElementCollection")
439  kwargs.setdefault("doSimplePositionWidthCalculation", True)
440 
441  kwargs.setdefault("conditionsTool",None) # SCTDetElStatus is used instead
442  if "SCTDetElStatus" not in kwargs :
443  if not flags.Trigger.doHLT :
444  from SCT_ConditionsAlgorithms.ITkStripConditionsAlgorithmsConfig import (
445  ITkStripDetectorElementStatusAlgCfg)
446  acc.merge(ITkStripDetectorElementStatusAlgCfg(flags))
447  kwargs.setdefault("SCTDetElStatus","ITkStripDetectorElementStatus")
448 
449  if "LorentzAngleTool" not in kwargs:
450  from SiLorentzAngleTool.ITkStripLorentzAngleConfig import (
451  ITkStripLorentzAngleToolCfg)
452  kwargs.setdefault("LorentzAngleTool", acc.popToolsAndMerge(
454 
455  kwargs.setdefault("globalPosAlg", acc.popToolsAndMerge(
456  ITkClusterMakerToolCfg(flags)))
457 
458  if flags.ITk.selectStripIntimeHits:
459  coll_25ns = (flags.Beam.BunchSpacing <= 25 and
460  flags.Beam.Type is BeamType.Collisions)
461  kwargs.setdefault("timeBins", "01X" if coll_25ns else "X1X")
462 
463  acc.setPrivateTools(CompFactory.InDet.SCT_ClusteringTool(name, **kwargs))
464  return acc
465 
466 
468  flags, name='TruthClusterizationFactory', **kwargs):
469  acc = ComponentAccumulator()
470 
471  kwargs.setdefault("discardPUHits", flags.Digitization.PileUp)
472  kwargs.setdefault("truthClusterSplittingEff", flags.Tracking.TruthClusterSplittingEff)
473  acc.setPrivateTools(
474  CompFactory.InDet.TruthClusterizationFactory(name, **kwargs))
475  return acc
476 
477 
479  flags, name='ITkTruthClusterizationFactory', **kwargs):
480  acc = ComponentAccumulator()
481 
482  kwargs.setdefault("InputSDOMap", "ITkPixelSDO_Map")
483  kwargs.setdefault("discardPUHits", flags.Digitization.PileUp)
484  kwargs.setdefault("truthClusterSplittingEff", flags.Tracking.TruthClusterSplittingEff)
485  acc.setPrivateTools(
486  CompFactory.InDet.TruthClusterizationFactory(name, **kwargs))
487  return acc
488 
489 
491  flags, name="TruthPixelClusterSplitProbTool", **kwargs):
492  acc = ComponentAccumulator()
493  kwargs.setdefault("PriorMultiplicityContent", [1, 1, 1])
494  kwargs.setdefault("NnClusterizationFactory", acc.popToolsAndMerge(
496  acc.setPrivateTools(
497  CompFactory.InDet.TruthPixelClusterSplitProbTool(name, **kwargs))
498  return acc
499 
500 
502  flags, name="ITkTruthPixelClusterSplitProbTool", **kwargs):
503  acc = ComponentAccumulator()
504  kwargs.setdefault("PriorMultiplicityContent", [1, 1, 1])
505  kwargs.setdefault("NnClusterizationFactory", acc.popToolsAndMerge(
507  acc.setPrivateTools(
508  CompFactory.InDet.TruthPixelClusterSplitProbTool(name, **kwargs))
509  return acc
510 
511 
513  ca = ComponentAccumulator()
514  from InDetConfig.SiClusterizationToolConfig import ITkPixelRDOToolCfg
515  tool = ca.popToolsAndMerge(ITkPixelRDOToolCfg(flags))
516  alg = CompFactory.InDet.HitsToxAODCopier(PixelRDOTool=tool, PixelRDOContainerKey="ITkPixelRDOs")
517  ca.addEventAlgo(alg)
518 
519  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
520  # for the available content of this collection, consult the HitsToxAODCopier.cxx
521  toRecod = [ "xAOD::BaseContainer#PixelHits", "xAOD::AuxContainerBase#PixelHitsAux.col.row.tot.eta_module.phi_module.layer_disk.barrel_ec.detid",
522  "xAOD::BaseContainer#StripHits", "xAOD::AuxContainerBase#StripHitsAux.strip.side.eta_module.phi_module.layer_disk.barrel_ec.detid" ]
523  ca.merge(addToAOD(flags, toRecod))
524  ca.merge(addToESD(flags, toRecod))
525 
526  return ca
python.SiClusterizationToolConfig.TrigMergedPixelsToolCfg
def TrigMergedPixelsToolCfg(flags, name="InDetTrigMergedPixelsTool")
Definition: SiClusterizationToolConfig.py:142
python.ITkStripLorentzAngleConfig.ITkStripLorentzAngleToolCfg
def ITkStripLorentzAngleToolCfg(flags, name="ITkStripLorentzAngleTool", **kwargs)
Definition: ITkStripLorentzAngleConfig.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ITkPixelConditionsConfig.ITkPixelDetectorElementStatusAlgCfg
def ITkPixelDetectorElementStatusAlgCfg(flags, name="ITkPixelDetectorElementStatusAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:201
PixelConditionsSummaryConfig.PixelConditionsSummaryCfg
def PixelConditionsSummaryCfg(flags, name="PixelConditionsSummary", **kwargs)
Definition: PixelConditionsSummaryConfig.py:17
python.SiClusterizationToolConfig.LWTNNCondAlgCfg
def LWTNNCondAlgCfg(flags, name="LWTNNCondAlg", **kwargs)
Definition: SiClusterizationToolConfig.py:213
python.SiClusterizationToolConfig.NnClusterizationFactoryCfg
def NnClusterizationFactoryCfg(flags, name="NnClusterizationFactory", **kwargs)
Definition: SiClusterizationToolConfig.py:228
python.SiClusterizationToolConfig.ITkNnPixelClusterSplitProbToolCfg
def ITkNnPixelClusterSplitProbToolCfg(flags, name="ITkNnPixelClusterSplitProbTool", **kwargs)
Definition: SiClusterizationToolConfig.py:340
python.SiClusterizationToolConfig.ITkTruthPixelClusterSplitProbToolCfg
def ITkTruthPixelClusterSplitProbToolCfg(flags, name="ITkTruthPixelClusterSplitProbTool", **kwargs)
Definition: SiClusterizationToolConfig.py:501
python.SiClusterizationToolConfig.ITkPixelGangedAmbiguitiesFinderCfg
def ITkPixelGangedAmbiguitiesFinderCfg(flags, name="ITkPixelGangedAmbiguitiesFinder", **kwargs)
Definition: SiClusterizationToolConfig.py:364
ITkStripGeoModelConfig.ITkStripReadoutGeometryCfg
def ITkStripReadoutGeometryCfg(flags)
Definition: ITkStripGeoModelConfig.py:39
python.SiClusterizationToolConfig.TruthPixelClusterSplitProbToolCfg
def TruthPixelClusterSplitProbToolCfg(flags, name="TruthPixelClusterSplitProbTool", **kwargs)
Definition: SiClusterizationToolConfig.py:490
python.SiClusterizationToolConfig.ITkTruthClusterizationFactoryCfg
def ITkTruthClusterizationFactoryCfg(flags, name='ITkTruthClusterizationFactory', **kwargs)
Definition: SiClusterizationToolConfig.py:478
python.SiClusterizationToolConfig.NnPixelClusterSplitProbToolCfg
def NnPixelClusterSplitProbToolCfg(flags, name="NnPixelClusterSplitProbTool", **kwargs)
Definition: SiClusterizationToolConfig.py:327
python.SiClusterizationToolConfig.MergedPixelsToolCfg
def MergedPixelsToolCfg(flags, name="InDetMergedPixelsTool", **kwargs)
Definition: SiClusterizationToolConfig.py:130
ITkPixelGeoModelConfig.ITkPixelReadoutGeometryCfg
def ITkPixelReadoutGeometryCfg(flags)
Definition: ITkPixelGeoModelConfig.py:39
python.SiClusterizationToolConfig.ITkPixelRDOToolCfg
def ITkPixelRDOToolCfg(flags, name="ITkPixelRDOTool", **kwargs)
Definition: SiClusterizationToolConfig.py:103
python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementStatusAlgCfg
def ITkStripDetectorElementStatusAlgCfg(flags, name="ITkStripDetectorElementStatusAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:90
PixelConditionsConfig.PixelChargeCalibCondCfg
def PixelChargeCalibCondCfg(flags, **kwargs)
Definition: PixelConditionsConfig.py:415
python.PixelLorentzAngleConfig.PixelLorentzAngleToolCfg
def PixelLorentzAngleToolCfg(flags, name="PixelLorentzAngleTool", **kwargs)
Definition: PixelLorentzAngleConfig.py:13
python.ITkPixelLorentzAngleConfig.ITkPixelLorentzAngleToolCfg
def ITkPixelLorentzAngleToolCfg(flags, name="ITkPixelLorentzAngleTool", **kwargs)
Definition: ITkPixelLorentzAngleConfig.py:14
python.SiClusterizationToolConfig.ITkMergedPixelsToolCfg
def ITkMergedPixelsToolCfg(flags, name="ITkMergedPixelsTool", **kwargs)
Definition: SiClusterizationToolConfig.py:153
python.SiClusterizationToolConfig.PixelGangedAmbiguitiesFinderCfg
def PixelGangedAmbiguitiesFinderCfg(flags, name="InDetPixelGangedAmbiguitiesFinder", **kwargs)
Definition: SiClusterizationToolConfig.py:354
python.SiClusterizationToolConfig.ITkClusterMakerToolCfg
def ITkClusterMakerToolCfg(flags, name="ITkClusterMakerTool", **kwargs)
Definition: SiClusterizationToolConfig.py:44
python.SCT_ConditionsToolsConfig.SCT_ConditionsSummaryToolCfg
def SCT_ConditionsSummaryToolCfg(flags, name="InDetSCT_ConditionsSummaryTool", **kwargs)
Definition: SCT_ConditionsToolsConfig.py:80
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
def SCT_ReadoutGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:51
python.SiClusterizationToolConfig.ITkNnClusterizationFactoryCfg
def ITkNnClusterizationFactoryCfg(flags, name="ITkNnClusterizationFactory", **kwargs)
Definition: SiClusterizationToolConfig.py:297
python.PixelReadoutGeometryConfig.ITkPixelReadoutManagerCfg
def ITkPixelReadoutManagerCfg(flags, name="ITkPixelReadoutManager", **kwargs)
Definition: PixelReadoutGeometryConfig.py:13
python.SiClusterizationToolConfig.InDetPixelRDOToolCfg
def InDetPixelRDOToolCfg(flags, name="InDetPixelRDOTool", **kwargs)
Definition: SiClusterizationToolConfig.py:75
python.SiClusterizationToolConfig.SCT_ClusteringToolCfg
def SCT_ClusteringToolCfg(flags, name="InDetSCT_ClusteringTool", **kwargs)
Definition: SiClusterizationToolConfig.py:376
python.SiClusterizationToolConfig.TrigNnClusterizationFactoryCfg
def TrigNnClusterizationFactoryCfg(flags, name="TrigNnClusterizationFactory")
Definition: SiClusterizationToolConfig.py:273
python.SiClusterizationToolConfig.Trig_SCT_ClusteringToolCfg
def Trig_SCT_ClusteringToolCfg(flags, name="Trig_SCT_ClusteringTool", **kwargs)
Definition: SiClusterizationToolConfig.py:412
PixelConditionsConfig.PixelOfflineCalibCondAlgCfg
def PixelOfflineCalibCondAlgCfg(flags, name="PixelOfflineCalibCondAlg", **kwargs)
Definition: PixelConditionsConfig.py:285
PixelGeoModelConfig.PixelReadoutGeometryCfg
def PixelReadoutGeometryCfg(flags)
Definition: PixelGeoModelConfig.py:52
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:162
python.SiClusterizationToolConfig.HitsToxAODCopierCfg
def HitsToxAODCopierCfg(flags)
Definition: SiClusterizationToolConfig.py:512
python.TrkNeuralNetworkUtilsConfig.NeuralNetworkToHistoToolCfg
def NeuralNetworkToHistoToolCfg(flags, name="NeuralNetworkToHistoTool", **kwargs)
Definition: TrkNeuralNetworkUtilsConfig.py:6
python.SiClusterizationToolConfig.PixelClusterNnWithTrackCondAlgCfg
def PixelClusterNnWithTrackCondAlgCfg(flags, name="PixelClusterNnWithTrackCondAlg")
Definition: SiClusterizationToolConfig.py:208
PixelConditionsConfig.PixelDetectorElementStatusAlgCfg
def PixelDetectorElementStatusAlgCfg(flags, name="PixelDetectorElementStatusAlg", **kwargs)
Definition: PixelConditionsConfig.py:367
python.SCT_LorentzAngleConfig.SCT_LorentzAngleToolCfg
def SCT_LorentzAngleToolCfg(flags, name="SCTLorentzAngleTool", **kwargs)
Definition: SCT_LorentzAngleConfig.py:10
python.SiClusterizationToolConfig.TruthClusterizationFactoryCfg
def TruthClusterizationFactoryCfg(flags, name='TruthClusterizationFactory', **kwargs)
Definition: SiClusterizationToolConfig.py:467
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142
python.SiClusterizationToolConfig.ClusterMakerToolCfg
def ClusterMakerToolCfg(flags, name="InDetClusterMakerTool", **kwargs)
Definition: SiClusterizationToolConfig.py:10
ITkPixelConditionsConfig.ITkPixelChargeCalibCondAlgCfg
def ITkPixelChargeCalibCondAlgCfg(flags, name="ITkPixelChargeCalibCondAlg", **kwargs)
Definition: ITkPixelConditionsConfig.py:74
python.SiClusterizationToolConfig.ITKStrip_SCT_ClusteringToolCfg
def ITKStrip_SCT_ClusteringToolCfg(flags, name="ITkStripClusteringTool", **kwargs)
Definition: SiClusterizationToolConfig.py:431
python.PixelReadoutGeometryConfig.PixelReadoutManagerCfg
def PixelReadoutManagerCfg(flags, name="PixelReadoutManager", **kwargs)
Definition: PixelReadoutGeometryConfig.py:6
python.SiClusterizationToolConfig.TrigPixelRDOToolCfg
def TrigPixelRDOToolCfg(flags, name="InDetTrigPixelRDOTool")
Definition: SiClusterizationToolConfig.py:126
python.SiClusterizationToolConfig.PixelClusterNnCondAlgCfg
def PixelClusterNnCondAlgCfg(flags, name="PixelClusterNnCondAlg", trackNetwork=False, **kwargs)
Definition: SiClusterizationToolConfig.py:168