ATLAS Offline Software
Functions
BCMOverlayConfig Namespace Reference

Functions

def BCMRawDataProviderAlgCfg (flags, name="BCMRawDataProvider", **kwargs)
 
def BCMDataOverlayExtraCfg (flags, **kwargs)
 
def BCMOverlayAlgCfg (flags, name="BCMOverlay", **kwargs)
 
def BCMTruthOverlayCfg (flags, name="BCMSDOOverlay", **kwargs)
 
def BCMOverlayCfg (flags)
 

Detailed Description

Define methods to construct configured BCM overlay algorithms

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

Function Documentation

◆ BCMDataOverlayExtraCfg()

def BCMOverlayConfig.BCMDataOverlayExtraCfg (   flags,
**  kwargs 
)
Return a ComponentAccumulator with BCM data overlay specifics

Definition at line 22 of file BCMOverlayConfig.py.

22 def BCMDataOverlayExtraCfg(flags, **kwargs):
23  """Return a ComponentAccumulator with BCM data overlay specifics"""
24  acc = ComponentAccumulator()
25 
26  # We need to convert BS to RDO for data overlay
27  acc.merge(BCMRawDataProviderAlgCfg(flags))
28 
29  return acc
30 
31 

◆ BCMOverlayAlgCfg()

def BCMOverlayConfig.BCMOverlayAlgCfg (   flags,
  name = "BCMOverlay",
**  kwargs 
)
Return a ComponentAccumulator for BCMOverlay algorithm

Definition at line 32 of file BCMOverlayConfig.py.

32 def BCMOverlayAlgCfg(flags, name="BCMOverlay", **kwargs):
33  """Return a ComponentAccumulator for BCMOverlay algorithm"""
34  acc = ComponentAccumulator()
35 
36  kwargs.setdefault("BkgInputKey", f"{flags.Overlay.BkgPrefix}BCM_RDOs")
37  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}BCM_RDOs")
38  kwargs.setdefault("OutputKey", "BCM_RDOs")
39 
40  if not flags.Overlay.DataOverlay:
41  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
42  acc.merge(SGInputLoaderCfg(flags, [f'BCM_RDO_Container#{kwargs["BkgInputKey"]}']))
43 
44  kwargs.setdefault("isDataOverlay", flags.Overlay.DataOverlay)
45 
46  # Do BCM overlay
47  acc.addEventAlgo(CompFactory.BCMOverlay(name, **kwargs))
48 
49  # Setup output
50  if flags.Output.doWriteRDO:
51  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
52  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
53  "BCM_RDO_Container#BCM_RDOs"
54  ]))
55 
56  if flags.Output.doWriteRDO_SGNL:
57  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
58  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
59  f"BCM_RDO_Container#{flags.Overlay.SigPrefix}BCM_RDOs"
60  ]))
61 
62  return acc
63 
64 

◆ BCMOverlayCfg()

def BCMOverlayConfig.BCMOverlayCfg (   flags)
Configure and return a ComponentAccumulator for BCM overlay

Definition at line 94 of file BCMOverlayConfig.py.

94 def BCMOverlayCfg(flags):
95  """Configure and return a ComponentAccumulator for BCM overlay"""
96  acc = ComponentAccumulator()
97 
98  # Add data overlay specifics
99  if flags.Overlay.DataOverlay:
100  acc.merge(BCMDataOverlayExtraCfg(flags))
101 
102  # Add BCM overlay digitization algorithm
103  from BCM_Digitization.BCM_DigitizationConfig import BCM_OverlayDigitizationBasicCfg
104  acc.merge(BCM_OverlayDigitizationBasicCfg(flags))
105  # Add BCM overlay algorithm
106  acc.merge(BCMOverlayAlgCfg(flags))
107  # Add BCM truth overlay
108  if flags.Digitization.EnableTruth:
109  acc.merge(BCMTruthOverlayCfg(flags))
110 
111  return acc

◆ BCMRawDataProviderAlgCfg()

def BCMOverlayConfig.BCMRawDataProviderAlgCfg (   flags,
  name = "BCMRawDataProvider",
**  kwargs 
)
Return a ComponentAccumulator for BCM raw data provider

Definition at line 10 of file BCMOverlayConfig.py.

10 def BCMRawDataProviderAlgCfg(flags, name="BCMRawDataProvider", **kwargs):
11  """Return a ComponentAccumulator for BCM raw data provider"""
12  # Temporary until available in the central location
13  acc = ComponentAccumulator()
14 
15  kwargs.setdefault("RDOKey", f"{flags.Overlay.BkgPrefix}BCM_RDOs")
16 
17  acc.addEventAlgo(CompFactory.BCM_RawDataProvider(name, **kwargs))
18 
19  return acc
20 
21 

◆ BCMTruthOverlayCfg()

def BCMOverlayConfig.BCMTruthOverlayCfg (   flags,
  name = "BCMSDOOverlay",
**  kwargs 
)
Return a ComponentAccumulator for the BCM SDO overlay algorithm

Definition at line 65 of file BCMOverlayConfig.py.

65 def BCMTruthOverlayCfg(flags, name="BCMSDOOverlay", **kwargs):
66  """Return a ComponentAccumulator for the BCM SDO overlay algorithm"""
67  acc = ComponentAccumulator()
68 
69  # We do not need background BCM SDOs
70  kwargs.setdefault("BkgInputKey", "")
71 
72  kwargs.setdefault("SignalInputKey", f"{flags.Overlay.SigPrefix}BCM_SDO_Map")
73  kwargs.setdefault("OutputKey", "BCM_SDO_Map")
74 
75  # Do BCM truth overlay
76  acc.addEventAlgo(CompFactory.InDetSDOOverlay(name, **kwargs))
77 
78  # Setup output
79  if flags.Output.doWriteRDO:
80  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
81  acc.merge(OutputStreamCfg(flags, "RDO", ItemList=[
82  "InDetSimDataCollection#BCM_SDO_Map"
83  ]))
84 
85  if flags.Output.doWriteRDO_SGNL:
86  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
87  acc.merge(OutputStreamCfg(flags, "RDO_SGNL", ItemList=[
88  f"InDetSimDataCollection#{flags.Overlay.SigPrefix}BCM_SDO_Map"
89  ]))
90 
91  return acc
92 
93 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
BCM_DigitizationConfig.BCM_OverlayDigitizationBasicCfg
def BCM_OverlayDigitizationBasicCfg(flags, name="BCM_OverlayDigitization", **kwargs)
Definition: BCM_DigitizationConfig.py:123
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
BCMOverlayConfig.BCMOverlayCfg
def BCMOverlayCfg(flags)
Definition: BCMOverlayConfig.py:94
BCMOverlayConfig.BCMOverlayAlgCfg
def BCMOverlayAlgCfg(flags, name="BCMOverlay", **kwargs)
Definition: BCMOverlayConfig.py:32
BCMOverlayConfig.BCMRawDataProviderAlgCfg
def BCMRawDataProviderAlgCfg(flags, name="BCMRawDataProvider", **kwargs)
Definition: BCMOverlayConfig.py:10
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
BCMOverlayConfig.BCMTruthOverlayCfg
def BCMTruthOverlayCfg(flags, name="BCMSDOOverlay", **kwargs)
Definition: BCMOverlayConfig.py:65
BCMOverlayConfig.BCMDataOverlayExtraCfg
def BCMDataOverlayExtraCfg(flags, **kwargs)
Definition: BCMOverlayConfig.py:22