ATLAS Offline Software
TRT_StandaloneTrackFinderConfig.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_StandaloneTrackFinder package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from TrkConfig.TrkConfigFlags import PrimaryPassConfig
6 
8  flags, name ='InDetTRT_StandaloneTrackFinder', **kwargs):
10 
11  kwargs.setdefault("MinNumDriftCircles", flags.Tracking.TRTStandalone.minTRT)
12  kwargs.setdefault("MinPt", flags.Tracking.TRTStandalone.minPt)
13  kwargs.setdefault("OldTransitionLogic", (
14  flags.Tracking.PrimaryPassConfig is PrimaryPassConfig.MinBias))
15 
16  if "TRT_SegToTrackTool" not in kwargs:
17  from InDetConfig.TRT_SegmentsToTrackToolConfig import (
18  TRT_Standalone_SegmentToTrackToolCfg)
19  kwargs.setdefault("TRT_SegToTrackTool", acc.popToolsAndMerge(
21 
22  acc.addEventAlgo(CompFactory.InDet.TRT_StandaloneTrackFinder(name, **kwargs))
23  return acc
24 
26  flags, name ='InDetTRT_TrackSegment_TrackFinder',
27  **kwargs):
28  acc = ComponentAccumulator()
29 
30  if "TRT_SegToTrackTool" not in kwargs:
31  from InDetConfig.TRT_SegmentsToTrackToolConfig import (
32  TRT_TrackSegment_SegmentToTrackToolCfg)
33  kwargs.setdefault("TRT_SegToTrackTool", acc.popToolsAndMerge(
35 
36  kwargs.setdefault("OutputTracksLocation", "StandaloneTRTTracks")
37 
38  acc.merge(TRT_StandaloneTrackFinderCfg(flags, name, **kwargs))
39  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_StandaloneTrackFinderConfig.TRT_TrackSegment_TrackFinderCfg
def TRT_TrackSegment_TrackFinderCfg(flags, name='InDetTRT_TrackSegment_TrackFinder', **kwargs)
Definition: TRT_StandaloneTrackFinderConfig.py:25
python.TRT_StandaloneTrackFinderConfig.TRT_StandaloneTrackFinderCfg
def TRT_StandaloneTrackFinderCfg(flags, name='InDetTRT_StandaloneTrackFinder', **kwargs)
Definition: TRT_StandaloneTrackFinderConfig.py:7
python.TRT_SegmentsToTrackToolConfig.TRT_Standalone_SegmentToTrackToolCfg
def TRT_Standalone_SegmentToTrackToolCfg(flags, name='InDetTRT_Standalone_SegmentToTrackTool', **kwargs)
Definition: TRT_SegmentsToTrackToolConfig.py:6
python.TRT_SegmentsToTrackToolConfig.TRT_TrackSegment_SegmentToTrackToolCfg
def TRT_TrackSegment_SegmentToTrackToolCfg(flags, name='InDetTRT_TrackSegment_SegmentToTrackTool', **kwargs)
Definition: TRT_SegmentsToTrackToolConfig.py:53