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

Functions

 TRTStandaloneCfg (flags, InputCollections=None)
 TRT_TrackSegment_Cfg (flags)

Variables

 flags = initConfigFlags()
 Files
 EnableCalo
int numThreads = 1
 NumThreads
 NumConcurrentEvents
 top_acc = MainServicesCfg(flags)
 iovsvc = top_acc.getService('IOVDbSvc')
 TRTStandalone configuration #############################.
 OutputLevel

Function Documentation

◆ TRT_TrackSegment_Cfg()

python.TRTStandaloneConfig.TRT_TrackSegment_Cfg ( flags)

Definition at line 50 of file TRTStandaloneConfig.py.

50def TRT_TrackSegment_Cfg(flags):
51 acc = ComponentAccumulator()
52
53 if flags.Beam.Type is BeamType.Cosmics:
54 #
55 # --- cosmics segment to track conversion for Barrel
56 #
57 from InDetConfig.TRT_SegmentsToTrackConfig import TRT_Cosmics_SegmentsToTrackCfg
58 acc.merge(TRT_Cosmics_SegmentsToTrackCfg(flags, name = 'InDetTRT_Cosmics_SegmentsToTrack',
59 OutputTrackCollection = 'StandaloneTRTTracks',
60 InputSegmentsCollection = 'TRTSegmentsTRT'))
61
62 else:
63 #
64 # --- TRT standalone tracks algorithm
65 #
66 from InDetConfig.TRT_StandaloneTrackFinderConfig import (
67 TRT_TrackSegment_TrackFinderCfg)
68 acc.merge(TRT_TrackSegment_TrackFinderCfg(flags,
69 InputSegmentsLocation = 'TRTSegmentsTRT'))
70
71
72 return acc
73
74

◆ TRTStandaloneCfg()

python.TRTStandaloneConfig.TRTStandaloneCfg ( flags,
InputCollections = None )

Definition at line 5 of file TRTStandaloneConfig.py.

5def TRTStandaloneCfg(flags, InputCollections = None):
6 acc = ComponentAccumulator()
7
8 #
9 # --- get list of already associated hits (always do this, even if no other tracking ran before)
10 #
11 prd_to_track_map = ''
12 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
13 prd_to_track_map = 'InDetTRTonly_PRDtoTrackMap'
14 from InDetConfig.InDetTrackPRD_AssociationConfig import (
15 InDetTrackPRD_AssociationCfg)
16 acc.merge(InDetTrackPRD_AssociationCfg(flags,
17 name = 'InDetTRTonly_TrackPRD_Association',
18 AssociationMapName = prd_to_track_map,
19 TracksName = list(InputCollections)))
20
21 if flags.Beam.Type is BeamType.Cosmics:
22 #
23 # --- cosmics segment to track conversion for Barrel
24 #
25 from InDetConfig.TRT_SegmentsToTrackConfig import TRT_Cosmics_SegmentsToTrackCfg
26 acc.merge(TRT_Cosmics_SegmentsToTrackCfg(flags, name = 'InDetTRT_SegmentsToTrack_Barrel',
27 OutputTrackCollection = 'TRTStandaloneTracks',
28 InputSegmentsCollection = 'TRTSegments',
29 InputAssociationMapName = prd_to_track_map))
30
31 else:
32 #
33 # --- TRT standalone tracks algorithm
34 #
35 from InDetConfig.TRT_StandaloneTrackFinderConfig import (
36 TRT_StandaloneTrackFinderCfg)
37 acc.merge(TRT_StandaloneTrackFinderCfg(flags,
38 InputSegmentsLocation = 'TRTSegments',
39 PRDtoTrackMap = prd_to_track_map))
40 if flags.Tracking.doTruth:
41 from InDetConfig.TrackTruthConfig import InDetTrackTruthCfg
42 acc.merge(InDetTrackTruthCfg(
43 flags,
44 Tracks = "TRTStandaloneTracks",
45 DetailedTruth = "TRTStandaloneTracksDetailedTruth",
46 TracksTruth = "TRTStandaloneTracksTruthCollection"))
47
48 return acc
49

Variable Documentation

◆ EnableCalo

python.TRTStandaloneConfig.EnableCalo

Definition at line 83 of file TRTStandaloneConfig.py.

◆ Files

python.TRTStandaloneConfig.Files

Definition at line 80 of file TRTStandaloneConfig.py.

◆ flags

python.TRTStandaloneConfig.flags = initConfigFlags()

Definition at line 77 of file TRTStandaloneConfig.py.

◆ iovsvc

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

TRTStandalone configuration #############################.

Definition at line 121 of file TRTStandaloneConfig.py.

◆ NumConcurrentEvents

python.TRTStandaloneConfig.NumConcurrentEvents

Definition at line 89 of file TRTStandaloneConfig.py.

◆ NumThreads

python.TRTStandaloneConfig.NumThreads

Definition at line 88 of file TRTStandaloneConfig.py.

◆ numThreads

int python.TRTStandaloneConfig.numThreads = 1

Definition at line 87 of file TRTStandaloneConfig.py.

◆ OutputLevel

python.TRTStandaloneConfig.OutputLevel

Definition at line 122 of file TRTStandaloneConfig.py.

◆ top_acc

python.TRTStandaloneConfig.top_acc = MainServicesCfg(flags)

Definition at line 96 of file TRTStandaloneConfig.py.