3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.Enums
import BeamType
9 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
10 from MagFieldServices.MagFieldServicesConfig
import (
11 AtlasFieldCacheCondAlgCfg)
15 if "RoadTool" not in kwargs:
16 from InDetConfig.SiDetElementsRoadToolConfig
import (
17 SiDetElementsRoadMaker_xkCfg)
18 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
21 if "CombinatorialTrackFinder" not in kwargs:
22 from InDetConfig.SiCombinatorialTrackFinderToolConfig
import (
23 SiCombinatorialTrackFinder_xkCfg)
24 kwargs.setdefault(
"CombinatorialTrackFinder", acc.popToolsAndMerge(
27 kwargs.setdefault(
"useSCT", flags.Tracking.ActiveConfig.useSCT)
28 kwargs.setdefault(
"usePixel", flags.Tracking.ActiveConfig.usePixel)
30 kwargs.setdefault(
"pTmin", flags.Tracking.ActiveConfig.minPT)
31 kwargs.setdefault(
"pTminBrem", flags.Tracking.ActiveConfig.minPTBrem)
32 kwargs.setdefault(
"nClustersMin", flags.Tracking.ActiveConfig.minClusters)
33 kwargs.setdefault(
"nHolesMax", flags.Tracking.ActiveConfig.nHolesMax)
34 kwargs.setdefault(
"nHolesGapMax", flags.Tracking.ActiveConfig.nHolesGapMax)
35 kwargs.setdefault(
"UseSeedFilter",
36 flags.Tracking.ActiveConfig.useSeedFilter)
37 kwargs.setdefault(
"Xi2max", flags.Tracking.ActiveConfig.Xi2max)
38 kwargs.setdefault(
"Xi2maxNoAdd", flags.Tracking.ActiveConfig.Xi2maxNoAdd)
39 kwargs.setdefault(
"nWeightedClustersMin",
40 flags.Tracking.ActiveConfig.nWeightedClustersMin)
42 kwargs.setdefault(
"CosmicTrack", flags.Beam.Type
is BeamType.Cosmics)
43 kwargs.setdefault(
"Xi2maxMultiTracks", flags.Tracking.ActiveConfig.Xi2max)
44 kwargs.setdefault(
"useSSSseedsFilter",
True)
45 kwargs.setdefault(
"doMultiTracksProd",
True)
47 kwargs.setdefault(
"useBremModel",
48 flags.Tracking.ActiveConfig.doBremRecoverySi)
49 kwargs.setdefault(
"doCaloSeededBrem", flags.Tracking.doCaloSeededBrem)
51 if kwargs[
"useBremModel"]
and kwargs[
"doCaloSeededBrem"]:
52 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
53 CaloClusterROIPhiRZContainerMakerCfg)
56 kwargs.setdefault(
"doHadCaloSeedSSS", flags.Tracking.doHadCaloSeededSSS)
58 if kwargs[
"doHadCaloSeedSSS"]:
59 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
60 HadCaloClusterROIPhiRZContainerMakerCfg)
63 kwargs.setdefault(
"phiWidth", flags.Tracking.phiWidthBrem)
64 kwargs.setdefault(
"etaWidth", flags.Tracking.etaWidthBrem)
65 kwargs.setdefault(
"EMROIPhiRZContainer",
"InDetCaloClusterROIPhiRZ0GeV")
66 kwargs.setdefault(
"HadROIPhiRZContainer",
"InDetHadCaloClusterROIPhiRZ")
67 kwargs.setdefault(
"UseAssociationTool",
68 flags.Tracking.ActiveConfig.usePrdAssociationTool)
70 if flags.Beam.Type
is BeamType.Cosmics:
71 kwargs.setdefault(
"TrackPatternRecoInfo",
72 'SiSpacePointsSeedMaker_Cosmic')
74 elif flags.Tracking.ActiveConfig.extension ==
"LowPt":
75 kwargs.setdefault(
"TrackPatternRecoInfo",
76 'SiSpacePointsSeedMaker_LowMomentum')
78 elif (flags.Tracking.ActiveConfig.extension ==
"VeryLowPt" or
79 (flags.Tracking.ActiveConfig.extension ==
"Pixel" and
80 flags.Tracking.doMinBias)):
81 kwargs.setdefault(
"TrackPatternRecoInfo",
82 'SiSpacePointsSeedMaker_VeryLowMomentum')
84 elif flags.Tracking.ActiveConfig.extension ==
"HeavyIon":
85 kwargs.setdefault(
"TrackPatternRecoInfo",
86 'SiSpacePointsSeedMaker_HeavyIon')
88 elif flags.Tracking.ActiveConfig.extension ==
"BeamGas":
89 kwargs.setdefault(
"TrackPatternRecoInfo",
90 'SiSpacePointsSeedMaker_BeamGas')
92 elif flags.Tracking.ActiveConfig.extension ==
"Forward":
93 kwargs.setdefault(
"TrackPatternRecoInfo",
94 'SiSpacePointsSeedMaker_ForwardTracks')
96 elif "LargeD0" in flags.Tracking.ActiveConfig.extension:
97 kwargs.setdefault(
"TrackPatternRecoInfo",
98 'SiSpacePointsSeedMaker_LargeD0')
101 kwargs.setdefault(
"TrackPatternRecoInfo",
'SiSPSeededFinder')
105 if (flags.Tracking.doStoreTrackSeeds
and
106 (flags.Tracking.ActiveConfig.extension ==
"" or flags.Tracking.ActiveConfig.storeTrackSeeds)
and
107 "SeedToTrackConversion" not in kwargs):
108 from InDetConfig.SeedToTrackConversionToolConfig
import (
109 SeedToTrackConversionToolCfg)
110 kwargs.setdefault(
"SeedToTrackConversion", acc.popToolsAndMerge(
112 kwargs.setdefault(
"SeedSegmentsWrite",
True)
114 acc.setPrivateTools(CompFactory.InDet.SiTrackMaker_xk(
115 name+flags.Tracking.ActiveConfig.extension, **kwargs))
121 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
122 from MagFieldServices.MagFieldServicesConfig
import (
123 AtlasFieldCacheCondAlgCfg)
127 if "RoadTool" not in kwargs:
128 from InDetConfig.SiDetElementsRoadToolConfig
import (
129 SiDetElementsRoadMaker_xkCfg)
130 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
133 if "CombinatorialTrackFinder" not in kwargs:
134 from InDetConfig.SiCombinatorialTrackFinderToolConfig
import (
135 SiCombinatorialTrackFinder_xk_Trig_Cfg)
136 kwargs.setdefault(
"CombinatorialTrackFinder", acc.popToolsAndMerge(
139 kwargs.setdefault(
"pTmin", flags.Tracking.ActiveConfig.minPT)
140 kwargs.setdefault(
"nClustersMin", flags.Tracking.ActiveConfig.nClustersMin)
141 kwargs.setdefault(
"nHolesMax", flags.Tracking.ActiveConfig.nHolesMax)
142 kwargs.setdefault(
"nHolesGapMax",
143 flags.Tracking.ActiveConfig.nHolesGapMax)
144 kwargs.setdefault(
"UseSeedFilter",
145 flags.Tracking.ActiveConfig.useSeedFilter)
146 kwargs.setdefault(
"Xi2max", flags.Tracking.ActiveConfig.Xi2max)
147 kwargs.setdefault(
"Xi2maxNoAdd", flags.Tracking.ActiveConfig.Xi2maxNoAdd)
148 kwargs.setdefault(
"nWeightedClustersMin",
149 flags.Tracking.ActiveConfig.nWeightedClustersMin)
150 kwargs.setdefault(
"Xi2maxMultiTracks", flags.Tracking.ActiveConfig.Xi2max)
151 kwargs.setdefault(
"UseAssociationTool",
False)
153 kwargs.setdefault(
"useBremModel",
154 flags.Tracking.ActiveConfig.doBremRecoverySi)
156 kwargs.setdefault(
"CosmicTrack",
157 flags.Tracking.ActiveConfig.input_name ==
"cosmics")
159 acc.setPrivateTools(CompFactory.InDet.SiTrackMaker_xk(name, **kwargs))
165 from BeamSpotConditions.BeamSpotConditionsConfig
import BeamSpotCondAlgCfg
166 from MagFieldServices.MagFieldServicesConfig
import (
167 AtlasFieldCacheCondAlgCfg)
171 if "RoadTool" not in kwargs:
172 from InDetConfig.SiDetElementsRoadToolConfig
import (
173 ITkSiDetElementsRoadMaker_xkCfg)
174 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
177 if "CombinatorialTrackFinder" not in kwargs:
178 from InDetConfig.SiCombinatorialTrackFinderToolConfig
import (
179 ITkSiCombinatorialTrackFinder_xkCfg)
180 kwargs.setdefault(
"CombinatorialTrackFinder", acc.popToolsAndMerge(
183 kwargs.setdefault(
"useSCT", flags.Tracking.ActiveConfig.useITkStrip)
184 kwargs.setdefault(
"usePixel", flags.Tracking.ActiveConfig.useITkPixel)
185 kwargs.setdefault(
"etaBins", flags.Tracking.ActiveConfig.etaBins)
186 kwargs.setdefault(
"pTBins", flags.Tracking.ActiveConfig.minPT)
187 kwargs.setdefault(
"pTmin", flags.Tracking.ActiveConfig.minPT[0])
188 kwargs.setdefault(
"pTminBrem", flags.Tracking.ActiveConfig.minPTBrem[0])
189 kwargs.setdefault(
"nClustersMin",
190 min(flags.Tracking.ActiveConfig.minClusters))
191 kwargs.setdefault(
"nHolesMax", flags.Tracking.ActiveConfig.nHolesMax[0])
192 kwargs.setdefault(
"nHolesGapMax",
193 flags.Tracking.ActiveConfig.nHolesGapMax[0])
194 kwargs.setdefault(
"UseSeedFilter",
195 flags.Tracking.ActiveConfig.useSeedFilter)
196 kwargs.setdefault(
"Xi2max", flags.Tracking.ActiveConfig.Xi2max[0])
197 kwargs.setdefault(
"Xi2maxNoAdd", flags.Tracking.ActiveConfig.Xi2maxNoAdd[0])
198 kwargs.setdefault(
"nWeightedClustersMin",
199 flags.Tracking.ActiveConfig.nWeightedClustersMin[0])
200 kwargs.setdefault(
"CosmicTrack", flags.Beam.Type
is BeamType.Cosmics)
201 kwargs.setdefault(
"Xi2maxMultiTracks",
202 flags.Tracking.ActiveConfig.Xi2max[0])
203 kwargs.setdefault(
"doMultiTracksProd",
True)
206 kwargs.setdefault(
"useBremModel",
207 flags.Tracking.ActiveConfig.doBremRecoverySi)
208 kwargs.setdefault(
"doCaloSeededBrem", flags.Tracking.doCaloSeededBrem)
210 if kwargs[
"useBremModel"]
and kwargs[
"doCaloSeededBrem"]:
211 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
212 ITkCaloClusterROIPhiRZContainerMakerCfg)
215 kwargs.setdefault(
"doHadCaloSeedSSS", flags.Tracking.doHadCaloSeededSSS)
217 if kwargs[
"doHadCaloSeedSSS"]:
218 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
219 ITkHadCaloClusterROIPhiRZContainerMakerCfg)
222 kwargs.setdefault(
"phiWidth", flags.Tracking.phiWidthBrem)
223 kwargs.setdefault(
"etaWidth", flags.Tracking.etaWidthBrem)
224 kwargs.setdefault(
"EMROIPhiRZContainer",
"ITkCaloClusterROIPhiRZ0GeV")
225 kwargs.setdefault(
"HadROIPhiRZContainer",
"ITkHadCaloClusterROIPhiRZ")
226 kwargs.setdefault(
"UseAssociationTool",
227 flags.Tracking.ActiveConfig.usePrdAssociationTool)
228 kwargs.setdefault(
"ITKGeometry",
True)
230 if flags.Beam.Type
is BeamType.Cosmics:
231 kwargs.setdefault(
"TrackPatternRecoInfo",
232 'SiSpacePointsSeedMaker_Cosmic')
234 elif flags.Tracking.ActiveConfig.extension ==
"Conversion":
235 kwargs.setdefault(
"TrackPatternRecoInfo",
236 'SiSpacePointsSeedMaker_ITkConversionTracks')
238 elif flags.Tracking.ActiveConfig.extension ==
"LargeD0":
239 kwargs.setdefault(
"TrackPatternRecoInfo",
240 'SiSpacePointsSeedMaker_LargeD0')
242 elif flags.Tracking.ActiveConfig.extension ==
"LowPt":
243 kwargs.setdefault(
"TrackPatternRecoInfo",
244 'SiSpacePointsSeedMaker_LowMomentum')
247 kwargs.setdefault(
"TrackPatternRecoInfo",
'SiSPSeededFinder')
249 if (flags.Tracking.doStoreTrackSeeds
and
250 "SeedToTrackConversion" not in kwargs):
251 from InDetConfig.SeedToTrackConversionToolConfig
import (
252 ITkSeedToTrackConversionToolCfg)
253 kwargs.setdefault(
"SeedToTrackConversion", acc.popToolsAndMerge(
255 kwargs.setdefault(
"SeedSegmentsWrite",
True)
257 acc.setPrivateTools(CompFactory.InDet.SiTrackMaker_xk(
258 name+flags.Tracking.ActiveConfig.extension, **kwargs))