ATLAS Offline Software
TrkTruthAlgsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkTruthAlgs package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def TrackTruthSimilaritySelectorCfg(flags, name='Selector', **kwargs) :
8 
9  if "TrackTruthSimilarityTool" not in kwargs:
10  from TrkConfig.TrkTruthCreatorToolsConfig import InDetTruthMatchToolCfg
11  kwargs.setdefault("TrackTruthSimilarityTool", acc.popToolsAndMerge(
12  InDetTruthMatchToolCfg(flags)))
13 
14  acc.addEventAlgo(CompFactory.TrackTruthSimilaritySelector(kwargs["OutputName"]+name, **kwargs))
15  return acc
16 
17 def ITkTrackTruthSimilaritySelectorCfg(flags, name='Selector', **kwargs) :
18  acc = ComponentAccumulator()
19 
20  if "TrackTruthSimilarityTool" not in kwargs:
21  from TrkConfig.TrkTruthCreatorToolsConfig import ITkTruthMatchToolCfg
22  kwargs.setdefault("TrackTruthSimilarityTool", acc.popToolsAndMerge(
23  ITkTruthMatchToolCfg(flags)))
24 
25  acc.addEventAlgo(CompFactory.TrackTruthSimilaritySelector(kwargs["OutputName"]+name, **kwargs))
26  return acc
27 
28 def TrackTruthSelectorCfg(flags, name="Selector", tracks="", **kwargs):
29  acc = ComponentAccumulator()
30  kwargs.setdefault("DetailedTrackTruthName", tracks+"DetailedTruth")
31  kwargs.setdefault("OutputName", tracks+"Truth")
32  acc.addEventAlgo(CompFactory.TrackTruthSelector(tracks+name, **kwargs))
33  return acc
34 
35 def TrackParticleTruthAlgCfg(flags, name="TruthAlg", tracks="", **kwargs):
36  acc = ComponentAccumulator()
37  kwargs.setdefault("TrackTruthName", tracks+"Truth")
38  acc.addEventAlgo(CompFactory.TrackParticleTruthAlg(tracks+name, **kwargs))
39  return acc
python.TrkTruthCreatorToolsConfig.ITkTruthMatchToolCfg
def ITkTruthMatchToolCfg(flags, name='ITkTruthMatchTool', **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:16
python.TrkTruthAlgsConfig.TrackTruthSelectorCfg
def TrackTruthSelectorCfg(flags, name="Selector", tracks="", **kwargs)
Definition: TrkTruthAlgsConfig.py:28
python.TrkTruthCreatorToolsConfig.InDetTruthMatchToolCfg
def InDetTruthMatchToolCfg(flags, name='InDetTruthMatchTool', **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:6
python.TrkTruthAlgsConfig.TrackParticleTruthAlgCfg
def TrackParticleTruthAlgCfg(flags, name="TruthAlg", tracks="", **kwargs)
Definition: TrkTruthAlgsConfig.py:35
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkTruthAlgsConfig.TrackTruthSimilaritySelectorCfg
def TrackTruthSimilaritySelectorCfg(flags, name='Selector', **kwargs)
Definition: TrkTruthAlgsConfig.py:6
python.TrkTruthAlgsConfig.ITkTrackTruthSimilaritySelectorCfg
def ITkTrackTruthSimilaritySelectorCfg(flags, name='Selector', **kwargs)
Definition: TrkTruthAlgsConfig.py:17