9 name: str =
"ActsFitterTool",
10 **kwargs) -> ComponentAccumulator:
13 if flags.Acts.fitFromPRD:
15 if 'RotCreatorTool' not in kwargs:
16 from TrkConfig.TrkRIO_OnTrackCreatorConfig
import ITkRotCreatorCfg
17 kwargs.setdefault(
'RotCreatorTool', acc.popToolsAndMerge(
ITkRotCreatorCfg(flags)))
19 if 'BroadRotCreatorTool' not in kwargs:
20 from TrkConfig.TrkRIO_OnTrackCreatorConfig
import ITkBroadRotCreatorCfg
26 if "TrackingGeometryTool" not in kwargs:
27 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
30 if "ExtrapolationTool" not in kwargs:
31 from ActsConfig.ActsGeometryConfig
import ActsExtrapolationToolCfg
34 if flags.Acts.trackFitterType
is TrackFitterType.KalmanFitter:
35 kwargs.setdefault(
"ReverseFilteringPt", 1.0 * UnitConstants.GeV)
37 if 'ATLASConverterTool' not in kwargs:
38 from ActsConfig.ActsEventCnvConfig
import ActsToTrkConverterToolCfg
41 if "SummaryTool" not in kwargs:
42 from TrkConfig.TrkTrackSummaryToolConfig
import InDetTrackSummaryToolCfg
45 if 'BoundaryCheckTool' not in kwargs:
46 if flags.Detector.GeometryITk:
47 from InDetConfig.InDetBoundaryCheckToolConfig
import ITkBoundaryCheckToolCfg
50 from InDetConfig.InDetBoundaryCheckToolConfig
import InDetBoundaryCheckToolCfg
53 if flags.Acts.trackFitterType
is TrackFitterType.KalmanFitter:
54 acc.setPrivateTools(CompFactory.ActsTrk.KalmanFitterTool(name, **kwargs))
55 elif flags.Acts.trackFitterType
is TrackFitterType.GaussianSumFitter:
56 name = name.replace(
"KalmanFitter",
"GaussianSumFitter")
57 acc.setPrivateTools(CompFactory.ActsTrk.GaussianSumFitterTool(name, **kwargs))
58 elif flags.Acts.trackFitterType
is TrackFitterType.GlobalChiSquareFitter:
59 name = name.replace(
"KalmanFitter",
"GlobalChiSquareFitter")
60 acc.setPrivateTools(CompFactory.ActsTrk.GlobalChiSquareFitterTool(name, **kwargs))