156 """Sets up a GNN for seeding algorithm and returns it."""
159 from InDetConfig.SiCombinatorialTrackFinderToolConfig
import SiDetElementBoundaryLinksCondAlg_xk_ITkPixel_Cfg, SiDetElementBoundaryLinksCondAlg_xk_ITkStrip_Cfg
164 from MagFieldServices.MagFieldServicesConfig
import (
165 AtlasFieldCacheCondAlgCfg)
168 from TrkConfig.TrkRIO_OnTrackCreatorConfig
import ITkRotCreatorCfg
170 flags, name=
"ITkRotCreator"+flags.Tracking.ActiveConfig.extension))
171 acc.addPublicTool(ITkRotCreator)
172 kwargs.setdefault(
"RIOonTrackTool", ITkRotCreator)
174 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import (
175 RungeKuttaPropagatorCfg)
176 ITkPatternPropagator = acc.popToolsAndMerge(
178 acc.addPublicTool(ITkPatternPropagator)
179 kwargs.setdefault(
"PropagatorTool", ITkPatternPropagator)
181 from TrkConfig.TrkMeasurementUpdatorConfig
import KalmanUpdator_xkCfg
182 ITkPatternUpdator = acc.popToolsAndMerge(
184 acc.addPublicTool(ITkPatternUpdator)
185 kwargs.setdefault(
"UpdatorTool", ITkPatternUpdator)
187 from InDetConfig.InDetBoundaryCheckToolConfig
import ITkBoundaryCheckToolCfg
188 kwargs.setdefault(
"BoundaryCheckTool", acc.popToolsAndMerge(
191 from PixelConditionsTools.ITkPixelConditionsSummaryConfig
import (
192 ITkPixelConditionsSummaryCfg)
193 kwargs.setdefault(
"PixelSummaryTool", acc.popToolsAndMerge(
196 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import (
197 ITkStripConditionsSummaryToolCfg)
198 kwargs.setdefault(
"StripSummaryTool", acc.popToolsAndMerge(
201 if flags.Tracking.GNN.useTrackFinder:
203 kwargs.setdefault(
"GNNTrackReaderTool",
None)
204 elif flags.Tracking.GNN.useTrackReader:
206 kwargs.setdefault(
"GNNTrackFinderTool",
None)
208 raise RuntimeError(
"GNNTrackFinder or GNNTrackReader must be enabled!")
210 kwargs.setdefault(
"SeedFitterTool", acc.popToolsAndMerge(
SeedFitterToolCfg(flags)))
212 from TrkConfig.CommonTrackFitterConfig
import ITkTrackFitterCfg
215 from InDetConfig.SiDetElementsRoadToolConfig
import ITkSiDetElementsRoadMaker_xkCfg
220 kwargs.setdefault(
"nClustersMin", flags.Tracking.ActiveConfig.minClusters[0])
221 kwargs.setdefault(
"nWeightedClustersMin", flags.Tracking.ActiveConfig.nWeightedClustersMin[0])
222 kwargs.setdefault(
"nHolesMax", flags.Tracking.ActiveConfig.nHolesMax[0])
223 kwargs.setdefault(
"nHolesGapMax", flags.Tracking.ActiveConfig.nHolesGapMax[0])
225 kwargs.setdefault(
"pTmin", flags.Tracking.ActiveConfig.minPT[0])
226 kwargs.setdefault(
"pTminBrem", flags.Tracking.ActiveConfig.minPTBrem[0])
227 kwargs.setdefault(
"Xi2max", flags.Tracking.ActiveConfig.Xi2max[0])
228 kwargs.setdefault(
"Xi2maxNoAdd", flags.Tracking.ActiveConfig.Xi2maxNoAdd[0])
229 kwargs.setdefault(
"Xi2maxMultiTracks", flags.Tracking.ActiveConfig.Xi2max[0])
230 kwargs.setdefault(
"doMultiTracksProd",
False)
232 acc.addEventAlgo(CompFactory.InDet.GNNSeedingTrackMaker(name, **kwargs))