ATLAS Offline Software
TrkTruthCreatorToolsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkTruthCreatorTools package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def InDetTruthMatchToolCfg(flags, name='InDetTruthMatchTool', **kwargs) :
8 
9  kwargs.setdefault("WeightPixel", 10.)
10  kwargs.setdefault("WeightSCT", 5.)
11  kwargs.setdefault("WeightTRT", 1.)
12 
13  acc.setPrivateTools(CompFactory.Trk.TruthMatchRatio(name, **kwargs))
14  return acc
15 
16 def ITkTruthMatchToolCfg(flags, name='ITkTruthMatchTool', **kwargs) :
17  acc = ComponentAccumulator()
18 
19  kwargs.setdefault("WeightPixel", 10.)
20  kwargs.setdefault("WeightSCT", 5.)
21 
22  acc.setPrivateTools(CompFactory.Trk.TruthMatchRatio(name, **kwargs))
23  return acc
24 
25 def TruthToTrackToolCfg(flags, name="TruthToTrack", **kwargs):
26  acc = ComponentAccumulator()
27 
28  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
29  Extrapolator = acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
30  acc.addPublicTool(Extrapolator)
31  kwargs.setdefault("Extrapolator", Extrapolator)
32 
33  acc.setPrivateTools(CompFactory.Trk.TruthToTrack(name, **kwargs))
34  return acc
35 
python.TrkTruthCreatorToolsConfig.ITkTruthMatchToolCfg
def ITkTruthMatchToolCfg(flags, name='ITkTruthMatchTool', **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:16
python.TrkTruthCreatorToolsConfig.InDetTruthMatchToolCfg
def InDetTruthMatchToolCfg(flags, name='InDetTruthMatchTool', **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:6
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.TrkTruthCreatorToolsConfig.TruthToTrackToolCfg
def TruthToTrackToolCfg(flags, name="TruthToTrack", **kwargs)
Definition: TrkTruthCreatorToolsConfig.py:25