122 """Sets up a GNN for seeding algorithm and returns it."""
125 from InDetConfig.SiCombinatorialTrackFinderToolConfig
import SiDetElementBoundaryLinksCondAlg_xk_ITkPixel_Cfg, SiDetElementBoundaryLinksCondAlg_xk_ITkStrip_Cfg
130 from MagFieldServices.MagFieldServicesConfig
import (
131 AtlasFieldCacheCondAlgCfg)
134 from TrkConfig.TrkRIO_OnTrackCreatorConfig
import ITkRotCreatorCfg
136 flags, name=
"ITkRotCreator"+flags.Tracking.ActiveConfig.extension))
137 acc.addPublicTool(ITkRotCreator)
138 kwargs.setdefault(
"RIOonTrackTool", ITkRotCreator)
140 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import (
141 RungeKuttaPropagatorCfg)
142 ITkPatternPropagator = acc.popToolsAndMerge(
144 acc.addPublicTool(ITkPatternPropagator)
145 kwargs.setdefault(
"PropagatorTool", ITkPatternPropagator)
147 from TrkConfig.TrkMeasurementUpdatorConfig
import KalmanUpdator_xkCfg
148 ITkPatternUpdator = acc.popToolsAndMerge(
150 acc.addPublicTool(ITkPatternUpdator)
151 kwargs.setdefault(
"UpdatorTool", ITkPatternUpdator)
153 from InDetConfig.InDetBoundaryCheckToolConfig
import ITkBoundaryCheckToolCfg
154 kwargs.setdefault(
"BoundaryCheckTool", acc.popToolsAndMerge(
157 from PixelConditionsTools.ITkPixelConditionsSummaryConfig
import (
158 ITkPixelConditionsSummaryCfg)
159 kwargs.setdefault(
"PixelSummaryTool", acc.popToolsAndMerge(
162 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import (
163 ITkStripConditionsSummaryToolCfg)
164 kwargs.setdefault(
"StripSummaryTool", acc.popToolsAndMerge(
167 if flags.Tracking.GNN.useTrackFinder:
169 kwargs.setdefault(
"GNNTrackReaderTool",
None)
170 elif flags.Tracking.GNN.useTrackReader:
172 kwargs.setdefault(
"GNNTrackFinderTool",
None)
174 raise RuntimeError(
"GNNTrackFinder or GNNTrackReader must be enabled!")
176 kwargs.setdefault(
"SeedFitterTool", acc.popToolsAndMerge(
SeedFitterToolCfg(flags)))
178 from TrkConfig.CommonTrackFitterConfig
import ITkTrackFitterCfg
181 from InDetConfig.SiDetElementsRoadToolConfig
import ITkSiDetElementsRoadMaker_xkCfg
186 kwargs.setdefault(
"nClustersMin", flags.Tracking.ActiveConfig.minClusters[0])
187 kwargs.setdefault(
"nWeightedClustersMin", flags.Tracking.ActiveConfig.nWeightedClustersMin[0])
188 kwargs.setdefault(
"nHolesMax", flags.Tracking.ActiveConfig.nHolesMax[0])
189 kwargs.setdefault(
"nHolesGapMax", flags.Tracking.ActiveConfig.nHolesGapMax[0])
191 kwargs.setdefault(
"pTmin", flags.Tracking.ActiveConfig.minPT[0])
192 kwargs.setdefault(
"pTminBrem", flags.Tracking.ActiveConfig.minPTBrem[0])
193 kwargs.setdefault(
"Xi2max", flags.Tracking.ActiveConfig.Xi2max[0])
194 kwargs.setdefault(
"Xi2maxNoAdd", flags.Tracking.ActiveConfig.Xi2maxNoAdd[0])
195 kwargs.setdefault(
"Xi2maxMultiTracks", flags.Tracking.ActiveConfig.Xi2max[0])
196 kwargs.setdefault(
"doMultiTracksProd",
False)
198 acc.addEventAlgo(CompFactory.InDet.GNNSeedingTrackMaker(name, **kwargs))