3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from TrkConfig.TrkConfigFlags
import TrackFitterType
11 from TrkConfig.TrkDistributedKalmanFilterConfig
import (
12 DistributedKalmanFilterCfg)
13 from TrkConfig.TrkGlobalChi2FitterConfig
import InDetGlobalChi2FitterCfg
14 from TrkConfig.TrkGaussianSumFilterConfig
import GaussianSumFitterCfg
16 TrackFitterType.DistributedKalmanFilter : DistributedKalmanFilterCfg,
17 TrackFitterType.GlobalChi2Fitter : InDetGlobalChi2FitterCfg,
18 TrackFitterType.GaussianSumFilter : GaussianSumFitterCfg
19 }[flags.Tracking.trackFitterType](flags, name, **kwargs)
24 if "BoundaryCheckTool" not in kwargs:
25 from InDetConfig.InDetBoundaryCheckToolConfig
import (
26 InDetBoundaryCheckToolCfg)
27 kwargs.setdefault(
"BoundaryCheckTool", acc.popToolsAndMerge(
30 kwargs.setdefault(
"DoHoleSearch",
True)
32 acc.setPrivateTools(acc.popToolsAndMerge(
39 InDetTrackFitter = acc.popToolsAndMerge(
41 ClusterSplitProbabilityName = (
"InDetAmbiguityProcessorSplitProb" +
42 flags.Tracking.ActiveConfig.extension)
44 if flags.Tracking.trackFitterType==TrackFitterType.DistributedKalmanFilter:
45 InDetTrackFitter.RecalibratorHandle.BroadPixelClusterOnTrackTool.ClusterSplitProbabilityName = ClusterSplitProbabilityName
47 elif flags.Tracking.trackFitterType==TrackFitterType.GlobalChi2Fitter:
48 InDetTrackFitter.ClusterSplitProbabilityName = ClusterSplitProbabilityName
49 InDetTrackFitter.RotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
50 InDetTrackFitter.BroadRotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
52 elif flags.Tracking.trackFitterType==TrackFitterType.GaussianSumFilter:
53 InDetTrackFitter.ToolForROTCreation.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
55 acc.setPrivateTools(InDetTrackFitter)
59 if flags.Tracking.trackFitterType==TrackFitterType.GlobalChi2Fitter:
60 from TrkConfig.TrkGlobalChi2FitterConfig
import (
61 InDetGlobalChi2FitterTRTCfg)
62 TrackFitterTRTCfg = InDetGlobalChi2FitterTRTCfg
64 TrackFitterTRTCfg = InDetTrackFitterCfg
65 return TrackFitterTRTCfg(flags, name, **kwargs)
68 if flags.Tracking.trackFitterType==TrackFitterType.GlobalChi2Fitter:
69 from TrkConfig.TrkGlobalChi2FitterConfig
import (
70 InDetGlobalChi2FitterLowPtCfg)
71 TrackFitterLowPtCfg = InDetGlobalChi2FitterLowPtCfg
73 TrackFitterLowPtCfg = InDetTrackFitterCfg
74 return TrackFitterLowPtCfg(flags, name, **kwargs)
79 if "BoundaryCheckTool" not in kwargs:
80 from InDetConfig.InDetBoundaryCheckToolConfig
import (
81 InDetBoundaryCheckToolCfg)
82 kwargs.setdefault(
"BoundaryCheckTool", acc.popToolsAndMerge(
85 kwargs.setdefault(
"DoHoleSearch",
True)
87 acc.setPrivateTools(acc.popToolsAndMerge(
94 if flags.Tracking.trackFitterType == TrackFitterType.GlobalChi2Fitter:
95 from TrkConfig.TrkGlobalChi2FitterConfig
import (
96 InDetGlobalChi2FitterLowPtCfg)
97 InDetGlobalChi2FitterLowPt = acc.popToolsAndMerge(
100 ClusterSplitProbabilityName = (
"InDetAmbiguityProcessorSplitProb" +
101 flags.Tracking.ActiveConfig.extension)
102 InDetGlobalChi2FitterLowPt.RotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
103 InDetGlobalChi2FitterLowPt.BroadRotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
104 acc.setPrivateTools(InDetGlobalChi2FitterLowPt)
107 acc.setPrivateTools(acc.popToolsAndMerge(
113 if flags.Tracking.trackFitterType==TrackFitterType.GlobalChi2Fitter:
114 from TrkConfig.TrkGlobalChi2FitterConfig
import (
115 InDetGlobalChi2FitterBTCfg)
116 TrackFitterBTCfg = InDetGlobalChi2FitterBTCfg
118 TrackFitterBTCfg = InDetTrackFitterCfg
119 return TrackFitterBTCfg(flags, name, **kwargs)
127 from TrkConfig.TrkDistributedKalmanFilterConfig
import (
128 ITkDistributedKalmanFilterCfg)
129 from TrkConfig.TrkGlobalChi2FitterConfig
import ITkGlobalChi2FitterCfg
130 from TrkConfig.TrkGaussianSumFilterConfig
import ITkGaussianSumFitterCfg
132 TrackFitterType.DistributedKalmanFilter : ITkDistributedKalmanFilterCfg,
133 TrackFitterType.GlobalChi2Fitter : ITkGlobalChi2FitterCfg,
134 TrackFitterType.GaussianSumFilter : ITkGaussianSumFitterCfg
135 }[flags.Tracking.trackFitterType](flags, name, **kwargs)
140 if "BoundaryCheckTool" not in kwargs:
141 from InDetConfig.InDetBoundaryCheckToolConfig
import (
142 ITkBoundaryCheckToolCfg)
143 kwargs.setdefault(
"BoundaryCheckTool", acc.popToolsAndMerge(
146 kwargs.setdefault(
"DoHoleSearch",
True)
148 ITkTrackFitter = acc.popToolsAndMerge(
150 ClusterSplitProbabilityName = (
"ITkAmbiguityProcessorSplitProb" +
151 flags.Tracking.ActiveConfig.extension)
153 if flags.Tracking.trackFitterType==TrackFitterType.DistributedKalmanFilter:
154 ITkTrackFitter.RecalibratorHandle.BroadPixelClusterOnTrackTool.ClusterSplitProbabilityName = ClusterSplitProbabilityName
156 elif flags.Tracking.trackFitterType==TrackFitterType.GlobalChi2Fitter:
157 ITkTrackFitter.ClusterSplitProbabilityName = ClusterSplitProbabilityName
158 ITkTrackFitter.RotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
159 ITkTrackFitter.BroadRotCreatorTool.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
161 elif flags.Tracking.trackFitterType==TrackFitterType.GaussianSumFilter:
162 ITkTrackFitter.ToolForROTCreation.ToolPixelCluster.ClusterSplitProbabilityName = ClusterSplitProbabilityName
164 acc.setPrivateTools(ITkTrackFitter)