ATLAS Offline Software
Functions
SCTOverlayConfig Namespace Reference

Functions

def SCTDataOverlayExtraCfg (flags, **kwargs)
 
def SCTOverlayAlgCfg (flags, name="SCTOverlay", **kwargs)
 
def SCTTruthOverlayCfg (flags, name="SCTSDOOverlay", **kwargs)
 
def SCTOverlayCfg (flags)
 

Detailed Description

Define methods to construct configured SCT overlay algorithms

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

Function Documentation

◆ SCTDataOverlayExtraCfg()

def SCTOverlayConfig.SCTDataOverlayExtraCfg (   flags,
**  kwargs 
)
Return a ComponentAccumulator with SCT data overlay specifics

Definition at line 10 of file SCTOverlayConfig.py.

10 def SCTDataOverlayExtraCfg(flags, **kwargs):
11  """Return a ComponentAccumulator with SCT data overlay specifics"""
12  acc = ComponentAccumulator()
13 
14  # We need to convert BS to RDO for data overlay
15  from SCT_RawDataByteStreamCnv.SCT_RawDataByteStreamCnvConfig import SCTOverlayRawDataProviderCfg
16  acc.merge(SCTOverlayRawDataProviderCfg(flags, prefix="", **kwargs))
17 
18  # Add SCT event flag writer
19  from SCT_RawDataByteStreamCnv.SCT_RawDataByteStreamCnvConfig import SCTEventFlagWriterCfg
20  acc.merge(SCTEventFlagWriterCfg(flags, prefix=""))
21 
22  return acc
23 
24 

◆ SCTOverlayAlgCfg()

def SCTOverlayConfig.SCTOverlayAlgCfg (   flags,
  name = "SCTOverlay",
**  kwargs 
)
Return a ComponentAccumulator for SCTOverlay algorithm

Definition at line 25 of file SCTOverlayConfig.py.

25 def SCTOverlayAlgCfg(flags, name="SCTOverlay", **kwargs):
26  """Return a ComponentAccumulator for SCTOverlay algorithm"""
27  acc = ComponentAccumulator()
28 
29  kwargs.setdefault("BkgInputKey", f"{flags.Overlay.BkgPrefix}SCT_RDOs")
30  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}SCT_RDOs")
31  kwargs.setdefault("OutputKey", "SCT_RDOs")
32 
33  if not flags.Overlay.DataOverlay:
34  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
35  acc.merge(SGInputLoaderCfg(flags, [f'SCT_RDO_Container#{kwargs["BkgInputKey"]}']))
36 
37  # Do SCT overlay
38  acc.addEventAlgo(CompFactory.SCTOverlay(name, **kwargs))
39 
40  # Setup output
41  if flags.Output.doWriteRDO:
42  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
43  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
44  "SCT_RDO_Container#SCT_RDOs"
45  ]))
46 
47  if flags.Overlay.DataOverlay:
48  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
49  "IDCInDetBSErrContainer#SCT_ByteStreamErrs"
50  ]))
51 
52  if flags.Output.doWriteRDO_SGNL:
53  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
54  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
55  f"SCT_RDO_Container#{flags.Overlay.SigPrefix}SCT_RDOs"
56  ]))
57 
58  if flags.Overlay.doTrackOverlay:
59  #for track overlay, write out the signal RDOs because reco tracking will only run on them
60  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
61  f"SCT_RDO_Container#{flags.Overlay.SigPrefix}SCT_RDOs"]))
62 
63  return acc
64 
65 

◆ SCTOverlayCfg()

def SCTOverlayConfig.SCTOverlayCfg (   flags)
Configure and return a ComponentAccumulator for SCT overlay

Definition at line 95 of file SCTOverlayConfig.py.

95 def SCTOverlayCfg(flags):
96  """Configure and return a ComponentAccumulator for SCT overlay"""
97  acc = ComponentAccumulator()
98 
99  # Add data overlay specifics
100  if flags.Overlay.DataOverlay:
101  acc.merge(SCTDataOverlayExtraCfg(flags))
102 
103  # Add SCT overlay digitization algorithm
104  from SCT_Digitization.SCT_DigitizationConfig import SCT_OverlayDigitizationBasicCfg
105  acc.merge(SCT_OverlayDigitizationBasicCfg(flags))
106  # Add SCT overlay algorithm
107  acc.merge(SCTOverlayAlgCfg(flags))
108  # Add SCT truth overlay
109  if flags.Digitization.EnableTruth:
110  acc.merge(SCTTruthOverlayCfg(flags))
111 
112  return acc

◆ SCTTruthOverlayCfg()

def SCTOverlayConfig.SCTTruthOverlayCfg (   flags,
  name = "SCTSDOOverlay",
**  kwargs 
)
Return a ComponentAccumulator for the SCT SDO overlay algorithm

Definition at line 66 of file SCTOverlayConfig.py.

66 def SCTTruthOverlayCfg(flags, name="SCTSDOOverlay", **kwargs):
67  """Return a ComponentAccumulator for the SCT SDO overlay algorithm"""
68  acc = ComponentAccumulator()
69 
70  # We do not need background SCT SDOs
71  kwargs.setdefault("BkgInputKey", "")
72 
73  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}SCT_SDO_Map")
74  kwargs.setdefault("OutputKey", "SCT_SDO_Map")
75 
76  # Do SCT truth overlay
77  acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
78 
79  # Setup output
80  if flags.Output.doWriteRDO:
81  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
82  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
83  "InDetSimDataCollection#SCT_SDO_Map"
84  ]))
85 
86  if flags.Output.doWriteRDO_SGNL:
87  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
88  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
89  f"InDetSimDataCollection#{flags.Overlay.SigPrefix}SCT_SDO_Map"
90  ]))
91 
92  return acc
93 
94 
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
SCTOverlayConfig.SCTTruthOverlayCfg
def SCTTruthOverlayCfg(flags, name="SCTSDOOverlay", **kwargs)
Definition: SCTOverlayConfig.py:66
SCT_DigitizationConfig.SCT_OverlayDigitizationBasicCfg
def SCT_OverlayDigitizationBasicCfg(flags, **kwargs)
Definition: SCT_DigitizationConfig.py:290
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
SCTOverlayConfig.SCTOverlayCfg
def SCTOverlayCfg(flags)
Definition: SCTOverlayConfig.py:95
SCTOverlayConfig.SCTDataOverlayExtraCfg
def SCTDataOverlayExtraCfg(flags, **kwargs)
Definition: SCTOverlayConfig.py:10
python.SCT_RawDataByteStreamCnvConfig.SCTEventFlagWriterCfg
def SCTEventFlagWriterCfg(flags, prefix="InDet", suffix="", **kwargs)
Definition: SCT_RawDataByteStreamCnvConfig.py:71
python.SCT_RawDataByteStreamCnvConfig.SCTOverlayRawDataProviderCfg
def SCTOverlayRawDataProviderCfg(flags, prefix="InDet", suffix="", **kwargs)
Definition: SCT_RawDataByteStreamCnvConfig.py:63
SCTOverlayConfig.SCTOverlayAlgCfg
def SCTOverlayAlgCfg(flags, name="SCTOverlay", **kwargs)
Definition: SCTOverlayConfig.py:25