ATLAS Offline Software
TRT_SegmentsToTrackConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TRT_SegmentsToTrack package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def TRT_Cosmics_SegmentsToTrackCfg(flags, name ='InDetTRT_Cosmics_SegmentsToTrack', **kwargs):
8 
9  if "ExtrapolationTool" not in kwargs:
10  from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
11  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
12  InDetExtrapolatorCfg(flags)))
13 
14  if "TrackFitter" not in kwargs:
15  from TrkConfig.CommonTrackFitterConfig import InDetTrackFitterCfg
16  kwargs.setdefault("TrackFitter", acc.popToolsAndMerge(
17  InDetTrackFitterCfg(flags)))
18 
19  if "SummaryTool" not in kwargs:
20  from TrkConfig.TrkTrackSummaryToolConfig import InDetTrackSummaryToolCfg
21  kwargs.setdefault("SummaryTool", acc.popToolsAndMerge(
23 
24  if ("AssociationTool" not in kwargs
25  and "InputAssociationMapName" in kwargs
26  and kwargs["InputAssociationMapName"] != ''):
27  from InDetConfig.InDetAssociationToolsConfig import (
28  InDetPRDtoTrackMapToolGangedPixelsCfg)
29  kwargs.setdefault("AssociationTool", acc.popToolsAndMerge(
31 
32  kwargs.setdefault("MinNHit", flags.Tracking.TRTStandalone.minTRT)
33  kwargs.setdefault("OutlierRemoval", True)
34  kwargs.setdefault("MaterialEffects", False)
35 
36  acc.addEventAlgo(CompFactory.InDet.TRT_SegmentsToTrack(name, **kwargs))
37  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CommonTrackFitterConfig.InDetTrackFitterCfg
def InDetTrackFitterCfg(flags, name='InDetTrackFitter', **kwargs)
InDet configs #####.
Definition: CommonTrackFitterConfig.py:10
python.TrkTrackSummaryToolConfig.InDetTrackSummaryToolCfg
def InDetTrackSummaryToolCfg(flags, name='InDetTrackSummaryTool', **kwargs)
Definition: TrkTrackSummaryToolConfig.py:22
python.InDetAssociationToolsConfig.InDetPRDtoTrackMapToolGangedPixelsCfg
def InDetPRDtoTrackMapToolGangedPixelsCfg(flags, name='PRDtoTrackMapToolGangedPixels', **kwargs)
Definition: InDetAssociationToolsConfig.py:29
python.TRT_SegmentsToTrackConfig.TRT_Cosmics_SegmentsToTrackCfg
def TRT_Cosmics_SegmentsToTrackCfg(flags, name='InDetTRT_Cosmics_SegmentsToTrack', **kwargs)
Definition: TRT_SegmentsToTrackConfig.py:6
python.AtlasExtrapolatorConfig.InDetExtrapolatorCfg
def InDetExtrapolatorCfg(flags, name='InDetExtrapolator', **kwargs)
Definition: AtlasExtrapolatorConfig.py:315