ATLAS Offline Software
Functions
TruthOverlayConfig Namespace Reference

Functions

def TruthOverlayCfg (flags, name="TruthOverlay", **kwargs)
 

Function Documentation

◆ TruthOverlayCfg()

def TruthOverlayConfig.TruthOverlayCfg (   flags,
  name = "TruthOverlay",
**  kwargs 
)

Definition at line 3 of file TruthOverlayConfig.py.

3 def TruthOverlayCfg(flags, name="TruthOverlay", **kwargs) :
4  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5  from AthenaConfiguration.ComponentFactory import CompFactory
6  result = ComponentAccumulator()
7 
8  kwargs.setdefault("WriteKey", "")
9  kwargs.setdefault("SignalInputKey", "{prefix}{sdoKey}".format(prefix=flags.Overlay.SigPrefix,
10  sdoKey= kwargs["WriteKey"]))
11  kwargs.setdefault("BkgInputKey", "{prefix}{sdoKey}".format(prefix=flags.Overlay.BkgPrefix,
12  sdoKey=kwargs["WriteKey"]))
13 
14  if kwargs["BkgInputKey"]:
15  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
16  result.merge(SGInputLoaderCfg(flags, ["xAOD::MuonSimHitContainer#{sdoKey}".format(sdoKey= kwargs["BkgInputKey"]),
17  "xAOD::MuonSimHitAuxContainer#{sdoKey}Aux.".format(sdoKey= kwargs["BkgInputKey"])]))
18 
19 
20  # Setup output
21  if flags.Output.doWriteRDO:
22  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
23  result.merge(OutputStreamCfg(flags, "RDO", ItemList=["xAOD::MuonSimHitContainer#{sdoKey}".format(sdoKey= kwargs["WriteKey"]),
24  "xAOD::MuonSimHitAuxContainer#{sdoKey}Aux.".format(sdoKey= kwargs["WriteKey"])]))
25 
26 
27  the_alg = CompFactory.MuonR4.TruthOverlay(name, **kwargs)
28  result.addEventAlgo(the_alg, primary = True)
29  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
TruthOverlayConfig.TruthOverlayCfg
def TruthOverlayCfg(flags, name="TruthOverlay", **kwargs)
Definition: TruthOverlayConfig.py:3
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7