ATLAS Offline Software
Functions
ITkStripOverlayConfig Namespace Reference

Functions

def ITkStripOverlayAlgCfg (flags, name="ITkStripOverlay", **kwargs)
 
def ITkStripTruthOverlayCfg (flags, name="ITkStripSDOOverlay", **kwargs)
 
def ITkStripOverlayCfg (flags)
 

Detailed Description

Define methods to construct configured ITk Strip overlay algorithms

Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ ITkStripOverlayAlgCfg()

def ITkStripOverlayConfig.ITkStripOverlayAlgCfg (   flags,
  name = "ITkStripOverlay",
**  kwargs 
)
Return a ComponentAccumulator for ITk Strip Overlay algorithm

Definition at line 10 of file ITkStripOverlayConfig.py.

10 def ITkStripOverlayAlgCfg(flags, name="ITkStripOverlay", **kwargs):
11  """Return a ComponentAccumulator for ITk Strip Overlay algorithm"""
12  acc = ComponentAccumulator()
13 
14  kwargs.setdefault("BkgInputKey", f"{flags.Overlay.BkgPrefix}ITkStripRDOs")
15  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}ITkStripRDOs")
16  kwargs.setdefault("OutputKey", "ITkStripRDOs")
17 
18  # Input setup
19  if flags.Overlay.ByteStream:
20  pass
21  else:
22  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
23  acc.merge(SGInputLoaderCfg(flags, [f'SCT_RDO_Container#{kwargs["BkgInputKey"]}']))
24 
25  # Do SCT overlay
26  acc.addEventAlgo(CompFactory.SCTOverlay(name, **kwargs))
27 
28  # Setup output
29  if flags.Output.doWriteRDO:
30  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
31  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
32  "SCT_RDO_Container#ITkStripRDOs"
33  ]))
34 
35  if not flags.Input.isMC:
36  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
37  "IDCInDetBSErrContainer#ITkStripByteStreamErrs"
38  ]))
39 
40  if flags.Output.doWriteRDO_SGNL:
41  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
42  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
43  f"SCT_RDO_Container#{flags.Overlay.SigPrefix}ITkStripRDOs"
44  ]))
45 
46  # for track overlay, write out the signal RDOs because reco tracking will only run on them
47  if flags.Overlay.doTrackOverlay:
48  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
49  f"SCT_RDO_Container#{flags.Overlay.SigPrefix}ITkStripRDOs"
50  ]))
51 
52  return acc
53 
54 

◆ ITkStripOverlayCfg()

def ITkStripOverlayConfig.ITkStripOverlayCfg (   flags)
Configure and return a ComponentAccumulator for ITk Strip overlay

Definition at line 84 of file ITkStripOverlayConfig.py.

84 def ITkStripOverlayCfg(flags):
85  """Configure and return a ComponentAccumulator for ITk Strip overlay"""
86  acc = ComponentAccumulator()
87 
88  # Add ITk Strip overlay digitization algorithm
89  from StripDigitization.StripDigitizationConfig import ITkStripOverlayDigitizationBasicCfg
90  acc.merge(ITkStripOverlayDigitizationBasicCfg(flags))
91 
92  # Add ITk Strip overlay algorithm
93  acc.merge(ITkStripOverlayAlgCfg(flags))
94 
95  # Add ITk Strip truth overlay
96  if flags.Digitization.EnableTruth:
97  acc.merge(ITkStripTruthOverlayCfg(flags))
98 
99  return acc

◆ ITkStripTruthOverlayCfg()

def ITkStripOverlayConfig.ITkStripTruthOverlayCfg (   flags,
  name = "ITkStripSDOOverlay",
**  kwargs 
)
Return a ComponentAccumulator for the ITk Strip SDO overlay algorithm

Definition at line 55 of file ITkStripOverlayConfig.py.

55 def ITkStripTruthOverlayCfg(flags, name="ITkStripSDOOverlay", **kwargs):
56  """Return a ComponentAccumulator for the ITk Strip SDO overlay algorithm"""
57  acc = ComponentAccumulator()
58 
59  # We do not need background SCT SDOs
60  kwargs.setdefault("BkgInputKey", "")
61 
62  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}ITkStripSDO_Map")
63  kwargs.setdefault("OutputKey", "ITkStripSDO_Map")
64 
65  # Do SCT truth overlay
66  acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
67 
68  # Setup output
69  if flags.Output.doWriteRDO:
70  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
71  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
72  "InDetSimDataCollection#ITkStripSDO_Map"
73  ]))
74 
75  if flags.Output.doWriteRDO_SGNL:
76  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
77  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
78  f"InDetSimDataCollection#{flags.Overlay.SigPrefix}ITkStripSDO_Map"
79  ]))
80 
81  return acc
82 
83 
StripDigitizationConfig.ITkStripOverlayDigitizationBasicCfg
def ITkStripOverlayDigitizationBasicCfg(flags, **kwargs)
Definition: StripDigitizationConfig.py:293
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
ITkStripOverlayConfig.ITkStripOverlayCfg
def ITkStripOverlayCfg(flags)
Definition: ITkStripOverlayConfig.py:84
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
ITkStripOverlayConfig.ITkStripTruthOverlayCfg
def ITkStripTruthOverlayCfg(flags, name="ITkStripSDOOverlay", **kwargs)
Definition: ITkStripOverlayConfig.py:55
ITkStripOverlayConfig.ITkStripOverlayAlgCfg
def ITkStripOverlayAlgCfg(flags, name="ITkStripOverlay", **kwargs)
Definition: ITkStripOverlayConfig.py:10