ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConfig
python
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
7
def
TRT_StandaloneTrackFinderCfg
(
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
25
def
TRT_TrackSegment_TrackFinderCfg
(
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
python.TRT_StandaloneTrackFinderConfig.TRT_TrackSegment_TrackFinderCfg
TRT_TrackSegment_TrackFinderCfg(flags, name='InDetTRT_TrackSegment_TrackFinder', **kwargs)
Definition
TRT_StandaloneTrackFinderConfig.py:27
python.TRT_StandaloneTrackFinderConfig.TRT_StandaloneTrackFinderCfg
TRT_StandaloneTrackFinderCfg(flags, name='InDetTRT_StandaloneTrackFinder', **kwargs)
Definition
TRT_StandaloneTrackFinderConfig.py:8
Generated on
for ATLAS Offline Software by
1.17.0