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)
41 if flags.Common.ProductionStep
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
42 kwargs.setdefault(
"EventInfoKey", flags.Overlay.BkgPrefix +
"EventInfo")
45 kwargs.setdefault(
"useZvertexTool",
46 flags.Tracking.ActiveConfig.extension
in [
"HeavyIon",
"VtxLumiHeavyIon"])
47 if flags.Tracking.ActiveConfig.extension
in [
"HeavyIon",
"VtxLumiHeavyIon"]:
49 kwargs.setdefault(
"FreeClustersCut", 2)
50 kwargs.setdefault(
"useMBTSTimeDiff",
True)
53 if "ZvertexTool" not in kwargs:
54 from InDetConfig.SiZvertexToolConfig
import SiZvertexMaker_xkCfg
55 kwargs.setdefault(
"ZvertexTool", acc.popToolsAndMerge(
58 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinder(
59 name+flags.Tracking.ActiveConfig.extension, **kwargs))
65 if "TracksLocation" not in kwargs:
66 kwargs.setdefault(
"TracksLocation", flags.Tracking.ActiveConfig.trkTracks_IDTrig)
68 kwargs.setdefault(
"SpacePointsSCTName",
"SCT_TrigSpacePoints")
69 kwargs.setdefault(
"SpacePointsPixelName",
"PixelTrigSpacePoints")
71 if "TrackTool" not in kwargs:
72 from InDetConfig.SiTrackMakerConfig
import TrigSiTrackMaker_xkCfg
73 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
79 if "TrackSummaryTool" not in kwargs:
80 from TrkConfig.TrkTrackSummaryToolConfig
import (
81 InDetTrigFastTrackSummaryToolCfg)
82 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
85 if "SeedsTool" not in kwargs:
86 from InDetConfig.SiSpacePointsSeedToolConfig
import (
87 TrigSiSpacePointsSeedMakerCfg)
88 kwargs.setdefault(
"SeedsTool", acc.popToolsAndMerge(
92 kwargs.setdefault(
"useMBTSTimeDiff",
False)
93 kwargs.setdefault(
"useZvertexTool",
False)
94 kwargs.setdefault(
"useZBoundFinding",
95 flags.Tracking.ActiveConfig.doZBoundary)
96 if flags.Reco.EnableHI:
98 kwargs.setdefault(
"FreeClustersCut", 2)
101 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
103 kwargs.setdefault(
"PRDtoTrackMap", (
104 'InDetPRDtoTrackMap' + flags.Tracking.ActiveConfig.input_name))
106 kwargs.setdefault(
"PRDtoTrackMap",
"")
114 if "TrackTool" not in kwargs:
115 from InDetConfig.SiTrackMakerConfig
import ITkSiTrackMaker_xkCfg
116 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
119 if "PropagatorTool" not in kwargs:
120 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import ITkPropagatorCfg
122 acc.addPublicTool(ITkPropagator)
123 kwargs.setdefault(
"PropagatorTool", ITkPropagator)
125 if "TrackSummaryTool" not in kwargs:
126 from TrkConfig.TrkTrackSummaryToolConfig
import (
127 ITkTrackSummaryToolNoHoleSearchCfg)
128 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
131 if "SeedsTool" not in kwargs:
132 ITkSiSpacePointsSeedMaker =
None
134 if (flags.Tracking.ActiveConfig.extension !=
"Conversion" and
135 flags.Tracking.ActiveConfig.doActsToAthenaSeed):
136 from ActsConfig.ActsSeedingConfig
import (
137 ActsSiSpacePointsSeedMakerToolCfg)
138 ITkSiSpacePointsSeedMaker = acc.popToolsAndMerge(
141 from InDetConfig.SiSpacePointsSeedToolConfig
import (
142 ITkSiSpacePointsSeedMakerCfg)
143 ITkSiSpacePointsSeedMaker = acc.popToolsAndMerge(
146 kwargs.setdefault(
"SeedsTool", ITkSiSpacePointsSeedMaker)
148 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
150 kwargs.setdefault(
"PRDtoTrackMap", (
151 'ITkPRDtoTrackMap' + flags.Tracking.ActiveConfig.extension))
153 kwargs.setdefault(
"useZvertexTool",
False)
154 kwargs.setdefault(
"useZBoundFinding",
155 flags.Tracking.ActiveConfig.doZBoundary)
156 kwargs.setdefault(
"ITKGeometry",
True)
157 kwargs.setdefault(
"SpacePointsSCTName",
"ITkStripSpacePoints"
158 if flags.Tracking.ActiveConfig.useITkStripSeeding
else "")
159 kwargs.setdefault(
"SpacePointsPixelName",
"ITkPixelSpacePoints"
160 if flags.Tracking.ActiveConfig.useITkPixelSeeding
else "")
161 if flags.Common.ProductionStep
in [ProductionStep.PileUpPretracking, ProductionStep.MinbiasPreprocessing]:
162 kwargs.setdefault(
"EventInfoKey", flags.Overlay.BkgPrefix +
"EventInfo")
164 if flags.Tracking.doITkFastTracking:
165 kwargs.setdefault(
"doFastTracking",
True)
166 kwargs.setdefault(
"writeHolesFromPattern",
True)
168 if 'InDetEtaDependentCutsSvc' not in kwargs:
169 from InDetConfig.InDetEtaDependentCutsConfig
import (
170 ITkEtaDependentCutsSvcCfg)
172 kwargs.setdefault(
"InDetEtaDependentCutsSvc", acc.getService(
173 "ITkEtaDependentCutsSvc"+flags.Tracking.ActiveConfig.extension))
175 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinder(
176 name+flags.Tracking.ActiveConfig.extension, **kwargs))
181 flags, name="ITkSiSpTrackFinderROIConv", **kwargs):
182 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
183 ITkCaloClusterROIPhiRZContainerMakerCfg)
186 if "RegSelTool_Strip" not in kwargs:
187 from RegionSelector.RegSelToolConfig
import regSelTool_ITkStrip_Cfg
188 kwargs.setdefault(
"RegSelTool_Strip", acc.popToolsAndMerge(
191 kwargs.setdefault(
"useITkConvSeeded",
True)
192 kwargs.setdefault(
"EMROIPhiRZContainer",
193 "ITkCaloClusterROIPhiRZ15GeVUnordered")
195 if "SeedsTool" not in kwargs:
196 if flags.Tracking.ActiveConfig.doActsToAthenaSeed:
197 from ActsConfig.ActsSeedingConfig
import ActsSiSpacePointsSeedMakerToolCfg
200 from InDetConfig.SiSpacePointsSeedToolConfig
import ITkSiSpacePointsSeedMakerCfg
210 if "TrackTool" not in kwargs:
211 from InDetConfig.SiTrackMakerConfig
import SiTrackMaker_xkCfg
212 kwargs.setdefault(
"TrackTool", acc.popToolsAndMerge(
215 if "TrackSummaryTool" not in kwargs:
216 from TrkConfig.TrkTrackSummaryToolConfig
import (
217 InDetTrackSummaryToolNoHoleSearchCfg)
218 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
221 if "SeedsTool" not in kwargs:
222 from InDetConfig.SiSpacePointsSeedToolConfig
import (
223 SiSpacePointsSeedMakerCfg)
224 kwargs.setdefault(
"SeedsTool", acc.popToolsAndMerge(
227 if flags.Tracking.ActiveConfig.usePrdAssociationTool:
228 kwargs.setdefault(
"PRDtoTrackMap", (
229 'InDetPRDtoTrackMap' + flags.Tracking.ActiveConfig.extension))
231 if "ZWindowRoISeedTool" not in kwargs:
232 if flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.LeadTracks:
233 from InDetConfig.ZWindowRoISeedToolConfig
import (
234 LeadTracksRoISeedToolCfg
as ZWindowRoISeedToolCfg)
235 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.Random:
236 from InDetConfig.ZWindowRoISeedToolConfig
import (
237 RandomRoISeedToolCfg
as ZWindowRoISeedToolCfg)
238 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.File:
239 from InDetConfig.ZWindowRoISeedToolConfig
import (
240 FileRoISeedToolCfg
as ZWindowRoISeedToolCfg)
241 elif flags.Tracking.ActiveConfig.RoIStrategy
is RoIStrategy.TruthHS:
242 from InDetConfig.ZWindowRoISeedToolConfig
import (
243 TruthHSRoISeedToolCfg
as ZWindowRoISeedToolCfg)
244 kwargs.setdefault(
"ZWindowRoISeedTool", acc.popToolsAndMerge(
245 ZWindowRoISeedToolCfg(flags)))
247 kwargs.setdefault(
"doRandomSpot", flags.Tracking.ActiveConfig.doRandomSpot)
248 if (flags.Tracking.ActiveConfig.doRandomSpot
and
249 "RandomRoISeedTool" not in kwargs):
250 from InDetConfig.ZWindowRoISeedToolConfig
import RandomRoISeedToolCfg
251 kwargs.setdefault(
"RandomRoISeedTool", acc.popToolsAndMerge(
254 kwargs.setdefault(
"useRoIWidth", flags.Tracking.ActiveConfig.z0WindowRoI>0)
255 kwargs.setdefault(
"VxOutputName",
256 "RoIVertices"+flags.Tracking.ActiveConfig.extension)
258 acc.addEventAlgo(CompFactory.InDet.SiSPSeededTrackFinderRoI(
259 name+flags.Tracking.ActiveConfig.extension, **kwargs))