ATLAS Offline Software
TruthTrackRetrieverConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 
6 def TruthTrackRetrieverCfg(flags, name="TruthTrackRetriever", **kwargs):
7  # Based on TruthJiveXML_DataTypes.py (and JiveXML_RecEx_config.py)
8  result = ComponentAccumulator()
9  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
10 
11  extrap = result.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
12  result.addPublicTool(extrap)
13 
14  kwargs.setdefault("StoreGateKey", "TruthEvent")
15  the_tool = CompFactory.JiveXML.TruthTrackRetriever(name, **kwargs)
16  result.addPublicTool(the_tool)
17  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
TruthTrackRetrieverConfig.TruthTrackRetrieverCfg
def TruthTrackRetrieverCfg(flags, name="TruthTrackRetriever", **kwargs)
Definition: TruthTrackRetrieverConfig.py:6