ATLAS Offline Software
TrackToVertexConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrackToVertex package
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 def TrackToVertexCfg(flags, name="AtlasTrackToVertexTool", **kwargs):
7  result = ComponentAccumulator()
8  if "Extrapolator" not in kwargs:
9  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
10  kwargs.setdefault("Extrapolator", result.popToolsAndMerge(
11  AtlasExtrapolatorCfg(flags)))
12 
13  kwargs.setdefault("StartTRTStandaloneTracksAtOriginalPerigee",
14  flags.Tracking.TRTStandalone.startArOriginalPerigee)
15  result.setPrivateTools(CompFactory.Reco.TrackToVertex(name, **kwargs))
16  return result
17 
18 def InDetTrackToVertexCfg(flags, name='InDetTrackToVertex', **kwargs):
19  result = ComponentAccumulator()
20  if "Extrapolator" not in kwargs:
21  from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
22  kwargs.setdefault("Extrapolator", result.popToolsAndMerge(
23  InDetExtrapolatorCfg(flags)))
24 
25  kwargs.setdefault("StartTRTStandaloneTracksAtOriginalPerigee",
26  flags.Tracking.TRTStandalone.startArOriginalPerigee)
27  result.setPrivateTools(CompFactory.Reco.TrackToVertex(name, **kwargs))
28  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
TrackToVertexConfig.InDetTrackToVertexCfg
def InDetTrackToVertexCfg(flags, name='InDetTrackToVertex', **kwargs)
Definition: TrackToVertexConfig.py:18
TrackToVertexConfig.TrackToVertexCfg
def TrackToVertexCfg(flags, name="AtlasTrackToVertexTool", **kwargs)
Definition: TrackToVertexConfig.py:6
python.AtlasExtrapolatorConfig.InDetExtrapolatorCfg
def InDetExtrapolatorCfg(flags, name='InDetExtrapolator', **kwargs)
Definition: AtlasExtrapolatorConfig.py:315