2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.Enums
import BeamType
11 if InputCollections
is not None:
12 from InDetConfig.InDetTrackPRD_AssociationConfig
import (
13 InDetTrackPRD_AssociationCfg)
16 name =
'InDetSegmentTrackPRD_Association',
17 AssociationMapName =
'InDetSegmentPRDtoTrackMap',
18 TracksName =
list(InputCollections)))
23 if flags.Beam.Type
is BeamType.Cosmics:
24 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
25 TRT_TrackSegmentsFinder_Cosmics_Cfg)
28 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
29 TRT_TrackSegmentsFinderCfg)
31 InputCollections = InputCollections))
36 if flags.Tracking.doTruth:
37 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig
import (
38 SegmentDriftCircleAssValidationCfg)
49 if flags.Beam.Type
is BeamType.Cosmics:
50 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
51 TRT_TrackSegmentsFinder_Cosmics_Cfg)
54 name=
'InDetTRT_TrackSegmentsFinder_Phase_Cosmics',
55 SegmentsLocation =
'TRTSegments_Phase'))
57 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
58 TRT_TrackSegmentsFinder_Phase_Cfg)
64 if flags.Tracking.doTruth:
65 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig
import (
66 SegmentDriftCircleAssValidationCfg)
69 name =
"InDetSegmentDriftCircleAssValidation_Phase"))
79 if flags.Beam.Type
is BeamType.Cosmics:
80 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
81 TRT_TrackSegmentsFinder_Cosmics_Cfg)
84 name=
'InDetTRT_TrackSegmentsFinder_TrackSegments_Cosmics',
85 SegmentsLocation =
'TRTSegmentsTRT'))
87 from InDetConfig.TRT_TrackSegmentsFinderConfig
import (
88 TRT_TrackSegmentsFinder_TrackSegments_Cfg)
95 if flags.Tracking.doTruth:
96 from InDetConfig.InDetSegmentDriftCircleAssValidationConfig
import (
97 SegmentDriftCircleAssValidation_TrackSegments_Cfg)
103 if __name__ ==
"__main__":
104 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
107 from AthenaConfiguration.TestDefaults
import defaultTestFiles
108 flags.Input.Files=defaultTestFiles.RDO_RUN2
111 flags.Detector.EnableCalo =
False
114 flags.Concurrency.NumThreads=numThreads
115 flags.Concurrency.NumConcurrentEvents=numThreads
117 flags = flags.cloneAndReplace(
"Tracking.ActiveConfig",
"Tracking.MainPass")
122 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
125 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
128 from InDetConfig.TRTPreProcessing
import TRTPreProcessingCfg
132 iovsvc = top_acc.getService(
'IOVDbSvc')
135 top_acc.store(
open(
"test_TRTSegmentFinding.pkl",
"wb"))
138 if "--norun" not in sys.argv:
140 sys.exit(
not sc.isSuccess())