ATLAS Offline Software
Functions | Variables
python.TRTStandaloneConfig Namespace Reference

Functions

def TRTStandaloneCfg (flags, InputCollections=None)
 
def 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 #############################. More...
 
 OutputLevel
 

Function Documentation

◆ TRT_TrackSegment_Cfg()

def python.TRTStandaloneConfig.TRT_TrackSegment_Cfg (   flags)

Definition at line 50 of file TRTStandaloneConfig.py.

50 def 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()

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

Definition at line 5 of file TRTStandaloneConfig.py.

5 def TRTStandaloneCfg(flags, InputCollections = None):
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

int python.TRTStandaloneConfig.numThreads = 1

Definition at line 87 of file TRTStandaloneConfig.py.

◆ NumThreads

python.TRTStandaloneConfig.NumThreads

Definition at line 88 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.

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.TrackTruthConfig.InDetTrackTruthCfg
def InDetTrackTruthCfg(flags, Tracks="CombinedInDetTracks", DetailedTruth="CombinedInDetTracksDetailedTruth", TracksTruth="CombinedInDetTracksTruthCollection")
Definition: TrackTruthConfig.py:11
python.InDetTrackPRD_AssociationConfig.InDetTrackPRD_AssociationCfg
def InDetTrackPRD_AssociationCfg(flags, name='InDetTrackPRD_Association', **kwargs)
Definition: InDetTrackPRD_AssociationConfig.py:6
python.TRT_StandaloneTrackFinderConfig.TRT_StandaloneTrackFinderCfg
def TRT_StandaloneTrackFinderCfg(flags, name='InDetTRT_StandaloneTrackFinder', **kwargs)
Definition: TRT_StandaloneTrackFinderConfig.py:7
python.TRT_SegmentsToTrackConfig.TRT_Cosmics_SegmentsToTrackCfg
def TRT_Cosmics_SegmentsToTrackCfg(flags, name='InDetTRT_Cosmics_SegmentsToTrack', **kwargs)
Definition: TRT_SegmentsToTrackConfig.py:6
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.TRTStandaloneConfig.TRT_TrackSegment_Cfg
def TRT_TrackSegment_Cfg(flags)
Definition: TRTStandaloneConfig.py:50
python.TRTStandaloneConfig.TRTStandaloneCfg
def TRTStandaloneCfg(flags, InputCollections=None)
Definition: TRTStandaloneConfig.py:5