ATLAS Offline Software
Loading...
Searching...
No Matches
python.TRTSegmentFindingConfig Namespace Reference

Functions

 TRTSegmentFindingCfg (flags, InputCollections=None, ExtraAssociationTracks=None)
 TRTSegmentFinding_Phase_Cfg (flags)
 TRTSegmentFinding_TrackSegments_Cfg (flags)

Variables

 flags = initConfigFlags()
 Files
 EnableCalo
int numThreads = 1
 NumThreads
 NumConcurrentEvents
 top_acc = MainServicesCfg(flags)
 iovsvc = top_acc.getService('IOVDbSvc')
 OutputLevel
 sc = top_acc.run(5)

Function Documentation

◆ TRTSegmentFinding_Phase_Cfg()

TRTSegmentFinding_Phase_Cfg ( flags)

Definition at line 44 of file TRTSegmentFindingConfig.py.

44def TRTSegmentFinding_Phase_Cfg(flags):
45 acc = ComponentAccumulator()
46
47 #
48 # --- TRT track reconstruction
49 #
50 if flags.Beam.Type is BeamType.Cosmics:
51 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
52 TRT_TrackSegmentsFinder_Cosmics_Cfg)
53 acc.merge(TRT_TrackSegmentsFinder_Cosmics_Cfg(
54 flags,
55 name='InDetTRT_TrackSegmentsFinder_Phase_Cosmics',
56 SegmentsLocation = 'TRTSegments_Phase'))
57 else:
58 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
59 TRT_TrackSegmentsFinder_Phase_Cfg)
60 acc.merge(TRT_TrackSegmentsFinder_Phase_Cfg(flags))
61
62 #
63 # --- load TRT validation alg
64 #
65 if flags.Tracking.doTruth:
66 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig import (
67 SegmentDriftCircleAssValidationCfg)
68 acc.merge(SegmentDriftCircleAssValidationCfg(
69 flags,
70 name = "InDetSegmentDriftCircleAssValidation_Phase"))
71
72 return acc
73

◆ TRTSegmentFinding_TrackSegments_Cfg()

TRTSegmentFinding_TrackSegments_Cfg ( flags)

Definition at line 74 of file TRTSegmentFindingConfig.py.

74def TRTSegmentFinding_TrackSegments_Cfg(flags):
75 acc = ComponentAccumulator()
76
77 #
78 # --- TRT track reconstruction
79 #
80 if flags.Beam.Type is BeamType.Cosmics:
81 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
82 TRT_TrackSegmentsFinder_Cosmics_Cfg)
83 acc.merge(TRT_TrackSegmentsFinder_Cosmics_Cfg(
84 flags,
85 name='InDetTRT_TrackSegmentsFinder_TrackSegments_Cosmics',
86 SegmentsLocation = 'TRTSegmentsTRT'))
87 else:
88 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
89 TRT_TrackSegmentsFinder_TrackSegments_Cfg)
90 acc.merge(TRT_TrackSegmentsFinder_TrackSegments_Cfg(flags))
91
92 #
93 # --- load TRT validation alg
94 #
95
96 if flags.Tracking.doTruth:
97 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig import (
98 SegmentDriftCircleAssValidation_TrackSegments_Cfg)
99 acc.merge(SegmentDriftCircleAssValidation_TrackSegments_Cfg(flags))
100
101 return acc
102
103

◆ TRTSegmentFindingCfg()

TRTSegmentFindingCfg ( flags,
InputCollections = None,
ExtraAssociationTracks = None )

Definition at line 5 of file TRTSegmentFindingConfig.py.

6 ExtraAssociationTracks = None):
7 acc = ComponentAccumulator()
8
9 #
10 # --- get list of already associated hits (always do this, even if no other tracking ran before)
11 #
12 if InputCollections is not None:
13 from InDetConfig.InDetTrackPRD_AssociationConfig import (
14 InDetTrackPRD_AssociationCfg)
15 acc.merge(InDetTrackPRD_AssociationCfg(
16 flags,
17 name = 'InDetSegmentTrackPRD_Association',
18 AssociationMapName = 'InDetSegmentPRDtoTrackMap',
19 TracksName = list(InputCollections) + list(ExtraAssociationTracks or [])))
20
21 #
22 # --- TRT track reconstruction
23 #
24 if flags.Beam.Type is BeamType.Cosmics:
25 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
26 TRT_TrackSegmentsFinder_Cosmics_Cfg)
27 acc.merge(TRT_TrackSegmentsFinder_Cosmics_Cfg(flags))
28 else:
29 from InDetConfig.TRT_TrackSegmentsFinderConfig import (
30 TRT_TrackSegmentsFinderCfg)
31 acc.merge(TRT_TrackSegmentsFinderCfg(flags,
32 InputCollections = InputCollections))
33
34 #
35 # --- load TRT validation alg
36 #
37 if flags.Tracking.doTruth:
38 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig import (
39 SegmentDriftCircleAssValidationCfg)
40 acc.merge(SegmentDriftCircleAssValidationCfg(flags))
41
42 return acc
43

Variable Documentation

◆ EnableCalo

python.TRTSegmentFindingConfig.EnableCalo

Definition at line 112 of file TRTSegmentFindingConfig.py.

◆ Files

python.TRTSegmentFindingConfig.Files

Definition at line 109 of file TRTSegmentFindingConfig.py.

◆ flags

python.TRTSegmentFindingConfig.flags = initConfigFlags()

Definition at line 106 of file TRTSegmentFindingConfig.py.

◆ iovsvc

python.TRTSegmentFindingConfig.iovsvc = top_acc.getService('IOVDbSvc')

Definition at line 133 of file TRTSegmentFindingConfig.py.

◆ NumConcurrentEvents

python.TRTSegmentFindingConfig.NumConcurrentEvents

Definition at line 116 of file TRTSegmentFindingConfig.py.

◆ NumThreads

python.TRTSegmentFindingConfig.NumThreads

Definition at line 115 of file TRTSegmentFindingConfig.py.

◆ numThreads

int python.TRTSegmentFindingConfig.numThreads = 1

Definition at line 114 of file TRTSegmentFindingConfig.py.

◆ OutputLevel

python.TRTSegmentFindingConfig.OutputLevel

Definition at line 134 of file TRTSegmentFindingConfig.py.

◆ sc

python.TRTSegmentFindingConfig.sc = top_acc.run(5)

Definition at line 140 of file TRTSegmentFindingConfig.py.

◆ top_acc

python.TRTSegmentFindingConfig.top_acc = MainServicesCfg(flags)

Definition at line 124 of file TRTSegmentFindingConfig.py.