2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.Enums
import BeamType
12 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
13 prd_to_track_map =
'InDetTRTonly_PRDtoTrackMap'
14 from InDetConfig.InDetTrackPRD_AssociationConfig
import (
15 InDetTrackPRD_AssociationCfg)
17 name =
'InDetTRTonly_TrackPRD_Association',
18 AssociationMapName = prd_to_track_map,
19 TracksName =
list(InputCollections)))
21 if flags.Beam.Type
is BeamType.Cosmics:
25 from InDetConfig.TRT_SegmentsToTrackConfig
import TRT_Cosmics_SegmentsToTrackCfg
27 OutputTrackCollection =
'TRTStandaloneTracks',
28 InputSegmentsCollection =
'TRTSegments',
29 InputAssociationMapName = prd_to_track_map))
35 from InDetConfig.TRT_StandaloneTrackFinderConfig
import (
36 TRT_StandaloneTrackFinderCfg)
38 InputSegmentsLocation =
'TRTSegments',
39 PRDtoTrackMap = prd_to_track_map))
40 if flags.Tracking.doTruth:
41 from InDetConfig.TrackTruthConfig
import InDetTrackTruthCfg
44 Tracks =
"TRTStandaloneTracks",
45 DetailedTruth =
"TRTStandaloneTracksDetailedTruth",
46 TracksTruth =
"TRTStandaloneTracksTruthCollection"))
53 if flags.Beam.Type
is BeamType.Cosmics:
57 from InDetConfig.TRT_SegmentsToTrackConfig
import TRT_Cosmics_SegmentsToTrackCfg
59 OutputTrackCollection =
'StandaloneTRTTracks',
60 InputSegmentsCollection =
'TRTSegmentsTRT'))
66 from InDetConfig.TRT_StandaloneTrackFinderConfig
import (
67 TRT_TrackSegment_TrackFinderCfg)
69 InputSegmentsLocation =
'TRTSegmentsTRT'))
75 if __name__ ==
"__main__":
76 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
79 from AthenaConfiguration.TestDefaults
import defaultTestFiles
80 flags.Input.Files=defaultTestFiles.RDO_RUN2
83 flags.Detector.EnableCalo =
False
88 flags.Concurrency.NumThreads=numThreads
89 flags.Concurrency.NumConcurrentEvents=numThreads
95 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
99 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
102 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
105 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
108 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
112 from InDetConfig.TRTPreProcessing
import TRTPreProcessingCfg
115 from InDetConfig.TRTSegmentFindingConfig
import TRTSegmentFindingCfg
121 iovsvc = top_acc.getService(
'IOVDbSvc')
125 top_acc.store(
open(
"test_TRTStandaloneConfig.pkl",
"wb"))