ATLAS Offline Software
Loading...
Searching...
No Matches
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
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from TrkConfig.TrkConfigFlags import PrimaryPassConfig
6
8 flags, name ='InDetTRT_StandaloneTrackFinder', **kwargs):
9 acc = ComponentAccumulator()
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(
20 TRT_Standalone_SegmentToTrackToolCfg(flags)))
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(
34 TRT_TrackSegment_SegmentToTrackToolCfg(flags)))
35
36 kwargs.setdefault("OutputTracksLocation", "StandaloneTRTTracks")
37
38 acc.merge(TRT_StandaloneTrackFinderCfg(flags, name, **kwargs))
39 return acc
TRT_StandaloneTrackFinderCfg(flags, name='InDetTRT_StandaloneTrackFinder', **kwargs)
TRT_TrackSegment_TrackFinderCfg(flags, name='InDetTRT_TrackSegment_TrackFinder', **kwargs)