3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from TrkConfig.TrackingPassFlags
import RoIStrategy
6 from AthenaConfiguration.Enums
import ProductionStep
11 if "TrackTool" not in kwargs:
12 from InDetConfig.SiTrackMakerConfig
import SiTrackMaker_xkCfg
13 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
16 if "PropagatorTool" not in kwargs:
17 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import InDetPropagatorCfg
19 acc.addPublicTool(InDetPropagator)
20 kwargs.setdefault(
"PropagatorTool", InDetPropagator)
22 if "TrackSummaryTool" not in kwargs:
23 from TrkConfig.TrkTrackSummaryToolConfig
import (
24 InDetTrackSummaryToolNoHoleSearchCfg)
25 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
28 if "SeedsTool" not in kwargs:
29 from InDetConfig.SiSpacePointsSeedToolConfig
import (
30 SiSpacePointsSeedMakerCfg)
31 kwargs.setdefault(
"SeedsTool", acc.popToolsAndMerge(
34 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
36 kwargs.setdefault(
"PRDtoTrackMap", (
37 'InDetPRDtoTrackMap' + flags.Tracking.ActiveConfig.extension))
39 kwargs.setdefault(
"useZBoundFinding",
40 flags.Tracking.ActiveConfig.doZBoundary)
42 if flags.Common.ProductionStep
is ProductionStep.PileUpPretracking:
43 kwargs.setdefault(
"EventInfoKey", flags.Overlay.BkgPrefix +
"EventInfo")
46 kwargs.setdefault(
"useZvertexTool",
47 flags.Tracking.ActiveConfig.extension
in [
"HeavyIon",
"VtxLumiHeavyIon"])
48 if flags.Tracking.ActiveConfig.extension
in [
"HeavyIon",
"VtxLumiHeavyIon"]:
50 kwargs.setdefault(
"FreeClustersCut", 2)
51 kwargs.setdefault(
"useMBTSTimeDiff",
True)
54 if "ZvertexTool" not in kwargs:
55 from InDetConfig.SiZvertexToolConfig
import SiZvertexMaker_xkCfg
56 kwargs.setdefault(
"ZvertexTool", acc.popToolsAndMerge(
59 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinder(
60 name+flags.Tracking.ActiveConfig.extension, **kwargs))
66 if "TracksLocation" not in kwargs:
67 kwargs.setdefault(
"TracksLocation", flags.Tracking.ActiveConfig.trkTracks_IDTrig)
69 kwargs.setdefault(
"SpacePointsSCTName",
"SCT_TrigSpacePoints")
70 kwargs.setdefault(
"SpacePointsPixelName",
"PixelTrigSpacePoints")
72 if "TrackTool" not in kwargs:
73 from InDetConfig.SiTrackMakerConfig
import TrigSiTrackMaker_xkCfg
74 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
80 if "TrackSummaryTool" not in kwargs:
81 from TrkConfig.TrkTrackSummaryToolConfig
import (
82 InDetTrigFastTrackSummaryToolCfg)
83 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
86 if "SeedsTool" not in kwargs:
87 from InDetConfig.SiSpacePointsSeedToolConfig
import (
88 TrigSiSpacePointsSeedMakerCfg)
89 kwargs.setdefault(
"SeedsTool", acc.popToolsAndMerge(
93 kwargs.setdefault(
"useMBTSTimeDiff",
False)
94 kwargs.setdefault(
"useZvertexTool",
False)
95 kwargs.setdefault(
"useZBoundFinding",
96 flags.Tracking.ActiveConfig.doZBoundary)
97 if flags.Reco.EnableHI:
99 kwargs.setdefault(
"FreeClustersCut", 2)
102 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
104 kwargs.setdefault(
"PRDtoTrackMap", (
105 'InDetPRDtoTrackMap' + flags.Tracking.ActiveConfig.input_name))
107 kwargs.setdefault(
"PRDtoTrackMap",
"")
115 if "TrackTool" not in kwargs:
116 from InDetConfig.SiTrackMakerConfig
import ITkSiTrackMaker_xkCfg
117 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
120 if "PropagatorTool" not in kwargs:
121 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import ITkPropagatorCfg
123 acc.addPublicTool(ITkPropagator)
124 kwargs.setdefault(
"PropagatorTool", ITkPropagator)
126 if "TrackSummaryTool" not in kwargs:
127 from TrkConfig.TrkTrackSummaryToolConfig
import (
128 ITkTrackSummaryToolNoHoleSearchCfg)
129 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
132 if "SeedsTool" not in kwargs:
133 ITkSiSpacePointsSeedMaker =
None
135 if (flags.Tracking.ActiveConfig.extension !=
"Conversion" and
136 flags.Tracking.ActiveConfig.doActsToAthenaSeed):
137 from ActsConfig.ActsSeedingConfig
import (
138 ActsSiSpacePointsSeedMakerToolCfg)
139 ITkSiSpacePointsSeedMaker = acc.popToolsAndMerge(
142 from InDetConfig.SiSpacePointsSeedToolConfig
import (
143 ITkSiSpacePointsSeedMakerCfg)
144 ITkSiSpacePointsSeedMaker = acc.popToolsAndMerge(
147 kwargs.setdefault(
"SeedsTool", ITkSiSpacePointsSeedMaker)
149 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
151 kwargs.setdefault(
"PRDtoTrackMap", (
152 'ITkPRDtoTrackMap' + flags.Tracking.ActiveConfig.extension))
154 kwargs.setdefault(
"useZvertexTool",
False)
155 kwargs.setdefault(
"useZBoundFinding",
156 flags.Tracking.ActiveConfig.doZBoundary)
157 kwargs.setdefault(
"ITKGeometry",
True)
158 kwargs.setdefault(
"SpacePointsSCTName",
"ITkStripSpacePoints"
159 if flags.Tracking.ActiveConfig.useITkStripSeeding
else "")
160 kwargs.setdefault(
"SpacePointsPixelName",
"ITkPixelSpacePoints"
161 if flags.Tracking.ActiveConfig.useITkPixelSeeding
else "")
162 if flags.Common.ProductionStep
is ProductionStep.PileUpPretracking:
163 kwargs.setdefault(
"EventInfoKey", flags.Overlay.BkgPrefix +
"EventInfo")
165 if flags.Tracking.doITkFastTracking:
166 kwargs.setdefault(
"doFastTracking",
True)
167 kwargs.setdefault(
"writeHolesFromPattern",
True)
169 if 'InDetEtaDependentCutsSvc' not in kwargs:
170 from InDetConfig.InDetEtaDependentCutsConfig
import (
171 ITkEtaDependentCutsSvcCfg)
173 kwargs.setdefault(
"InDetEtaDependentCutsSvc", acc.getService(
174 "ITkEtaDependentCutsSvc"+flags.Tracking.ActiveConfig.extension))
176 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinder(
177 name+flags.Tracking.ActiveConfig.extension, **kwargs))
182 flags, name="ITkSiSpTrackFinderROIConv", **kwargs):
183 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
184 ITkCaloClusterROIPhiRZContainerMakerCfg)
187 if "RegSelTool_Strip" not in kwargs:
188 from RegionSelector.RegSelToolConfig
import regSelTool_ITkStrip_Cfg
189 kwargs.setdefault(
"RegSelTool_Strip", acc.popToolsAndMerge(
192 kwargs.setdefault(
"useITkConvSeeded",
True)
193 kwargs.setdefault(
"EMROIPhiRZContainer",
194 "ITkCaloClusterROIPhiRZ15GeVUnordered")
196 if "SeedsTool" not in kwargs:
197 if flags.Tracking.ActiveConfig.doActsToAthenaSeed:
198 from ActsConfig.ActsSeedingConfig
import ActsSiSpacePointsSeedMakerToolCfg
201 from InDetConfig.SiSpacePointsSeedToolConfig
import ITkSiSpacePointsSeedMakerCfg
211 if "TrackTool" not in kwargs:
212 from InDetConfig.SiTrackMakerConfig
import SiTrackMaker_xkCfg
213 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
216 if "TrackSummaryTool" not in kwargs:
217 from TrkConfig.TrkTrackSummaryToolConfig
import (
218 InDetTrackSummaryToolNoHoleSearchCfg)
219 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
222 if "SeedsTool" not in kwargs:
223 from InDetConfig.SiSpacePointsSeedToolConfig
import (
224 SiSpacePointsSeedMakerCfg)
225 kwargs.setdefault(
"SeedsTool", acc.popToolsAndMerge(
228 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
229 kwargs.setdefault(
"PRDtoTrackMap", (
230 'InDetPRDtoTrackMap' + flags.Tracking.ActiveConfig.extension))
232 if "ZWindowRoISeedTool" not in kwargs:
233 if flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.LeadTracks:
234 from InDetConfig.ZWindowRoISeedToolConfig
import (
235 LeadTracksRoISeedToolCfg
as ZWindowRoISeedToolCfg)
236 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.Random:
237 from InDetConfig.ZWindowRoISeedToolConfig
import (
238 RandomRoISeedToolCfg
as ZWindowRoISeedToolCfg)
239 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.File:
240 from InDetConfig.ZWindowRoISeedToolConfig
import (
241 FileRoISeedToolCfg
as ZWindowRoISeedToolCfg)
242 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.TruthHS:
243 from InDetConfig.ZWindowRoISeedToolConfig
import (
244 TruthHSRoISeedToolCfg
as ZWindowRoISeedToolCfg)
245 kwargs.setdefault(
"ZWindowRoISeedTool", acc.popToolsAndMerge(
246 ZWindowRoISeedToolCfg(flags)))
248 kwargs.setdefault(
"doRandomSpot", flags.Tracking.ActiveConfig.doRandomSpot)
249 if (flags.Tracking.ActiveConfig.doRandomSpot
and
250 "RandomRoISeedTool" not in kwargs):
251 from InDetConfig.ZWindowRoISeedToolConfig
import RandomRoISeedToolCfg
252 kwargs.setdefault(
"RandomRoISeedTool", acc.popToolsAndMerge(
255 kwargs.setdefault(
"useRoIWidth", flags.Tracking.ActiveConfig.z0WindowRoI>0)
256 kwargs.setdefault(
"VxOutputName",
257 "RoIVertices"+flags.Tracking.ActiveConfig.extension)
259 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinderRoI(
260 name+flags.Tracking.ActiveConfig.extension, **kwargs))