29 """Configure an algorithm to read a TrackCollection.
30 KEY is the desired TrackCollection key.
31 Will do nothing in serial mode, or if the requested object is not
36 if flags.Concurrency.NumThreads <= 0:
41 from AthenaConfiguration.AutoConfigFlags
import GetFileMD
42 tcolls = set ([k
for t,k
in GetFileMD (flags.Input.Files).
get(
'itemList', [])
43 if t ==
'TrackCollection'])
44 tracks_alias = _guessTracksAlias (tcolls)
47 if key ==
'Tracks' and tracks_alias
is not None and key
not in tcolls:
56 if key == tracks_alias
and 'Tracks' not in tcolls:
60 if flags.Detector.GeometryPixel:
61 extra_inputs.append((
'InDetDD::SiDetectorElementCollection',
'ConditionStore+PixelDetectorElementCollection'))
62 if flags.Detector.GeometrySCT:
63 extra_inputs.append((
'InDetDD::SiDetectorElementCollection',
'ConditionStore+SCT_DetectorElementCollection'))
64 if flags.Detector.GeometryTRT:
65 extra_inputs.append((
'InDetDD::TRT_DetElementContainer' ,
'ConditionStore+TRT_DetElementContainer' ))
66 if flags.Detector.GeometryITkPixel:
67 extra_inputs.append((
'InDetDD::SiDetectorElementCollection' ,
'ConditionStore+ITkPixelDetectorElementCollection' ))
68 if flags.Detector.GeometryITkStrip:
69 extra_inputs.append((
'InDetDD::SiDetectorElementCollection' ,
'ConditionStore+ITkStripDetectorElementCollection' ))
70 if flags.Detector.GeometryMuon:
71 extra_inputs.append((
'MuonGM::MuonDetectorManager',
'ConditionStore+MuonDetectorManager'))
74 AthReadAlg=CompFactory.AthReadAlg
75 alg = AthReadAlg (
'TrackCollectionRead_' + key,
76 Key =
'TrackCollection/' + key,
78 ExtraInputs = extra_inputs)
79 result.addEventAlgo (alg)
82 from SGComps.AddressRemappingConfig
import AddressRemappingCfg