3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
9 flags, name='TRT_TrackExtensionToolCosmics', **kwargs):
12 if 'Extrapolator' not in kwargs:
13 from TrkConfig.AtlasExtrapolatorConfig
import InDetExtrapolatorCfg
14 kwargs.setdefault(
"Extrapolator", acc.popToolsAndMerge(
17 if 'RIOonTrackToolNoDr' not in kwargs:
18 from InDetConfig.TRT_DriftCircleOnTrackToolConfig
import (
19 TRT_DriftCircleOnTrackNoDriftTimeToolCfg)
20 kwargs.setdefault(
"RIOonTrackToolNoDr", acc.popToolsAndMerge(
23 kwargs.setdefault(
"TRT_ClustersContainer",
'TRT_DriftCircles')
24 kwargs.setdefault(
"SearchNeighbour",
False)
25 kwargs.setdefault(
"RoadWidth", 10.0)
27 CompFactory.InDet.TRT_TrackExtensionToolCosmics(name, **kwargs))
32 flags, name='TRT_TrackExtensionToolPhase', **kwargs):
34 kwargs.setdefault(
"TRT_ClustersContainer",
'TRT_DriftCirclesUncalibrated')
35 kwargs.setdefault(
"RoadWidth", 20.0)
36 acc.setPrivateTools(acc.popToolsAndMerge(
42 flags, name='TRT_TrackExtensionTool_xk', **kwargs):
43 from MagFieldServices.MagFieldServicesConfig
import (
44 AtlasFieldCacheCondAlgCfg)
47 if 'PropagatorTool' not in kwargs:
48 from TrkConfig.TrkExRungeKuttaPropagatorConfig
import (
49 RungeKuttaPropagatorCfg)
50 InDetPatternPropagator = acc.popToolsAndMerge(
52 acc.addPublicTool(InDetPatternPropagator)
53 kwargs.setdefault(
"PropagatorTool", InDetPatternPropagator)
55 if 'UpdatorTool' not in kwargs:
56 from TrkConfig.TrkMeasurementUpdatorConfig
import KalmanUpdator_xkCfg
57 InDetPatternUpdator = acc.popToolsAndMerge(
59 acc.addPublicTool(InDetPatternUpdator)
60 kwargs.setdefault(
"UpdatorTool", InDetPatternUpdator)
62 if 'RoadTool' not in kwargs:
63 from InDetConfig.TRT_DetElementsRoadToolConfig
import (
64 TRT_DetElementsRoadMaker_xk_TRTExtensionCfg)
65 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
68 kwargs.setdefault(
"TRT_ClustersContainer",
"TRT_DriftCircles")
69 kwargs.setdefault(
"MinNumberDriftCircles",
70 flags.Tracking.ActiveConfig.minTRTonTrk)
71 kwargs.setdefault(
"ScaleHitUncertainty", 2)
72 kwargs.setdefault(
"RoadWidth", 20.)
73 kwargs.setdefault(
"UseParameterization", flags.Tracking.useNewParamTRT)
76 CompFactory.InDet.TRT_TrackExtensionTool_xk(name, **kwargs))
81 flags, name='TRT_TrackExtensionTool_xk', **kwargs):
84 if 'DriftCircleCutTool' not in kwargs:
85 from InDetConfig.InDetTrackSelectorToolConfig
import (
86 InDetTRTDriftCircleCutToolCfg)
87 kwargs.setdefault(
"DriftCircleCutTool", acc.popToolsAndMerge(
90 if 'RIOonTrackToolYesDr' not in kwargs:
91 from InDetConfig.TRT_DriftCircleOnTrackToolConfig
import (
92 TRT_DriftCircleOnTrackToolCfg)
93 kwargs.setdefault(
"RIOonTrackToolYesDr", acc.popToolsAndMerge(
96 if 'RIOonTrackToolNoDr' not in kwargs:
97 from InDetConfig.TRT_DriftCircleOnTrackToolConfig
import (
98 TRT_DriftCircleOnTrackNoDriftTimeToolCfg)
99 kwargs.setdefault(
"RIOonTrackToolNoDr", acc.popToolsAndMerge(
102 kwargs.setdefault(
"UseDriftRadius",
not flags.InDet.noTRTTiming)
103 kwargs.setdefault(
"maxImpactParameter",
105 500
if flags.Tracking.doBeamGas
108 if flags.Tracking.BackTracking.doRoISeeded:
109 kwargs.setdefault(
"minTRTSegmentpT",
110 flags.Tracking.BackTracking.minPt)
112 acc.setPrivateTools(acc.popToolsAndMerge(
118 flags, name='Trig_TRT_TrackExtensionTool', **kwargs):
121 if 'DriftCircleCutTool' not in kwargs:
122 from InDetConfig.InDetTrackSelectorToolConfig
import (
123 InDetTrigTRTDriftCircleCutToolCfg)
124 kwargs.setdefault(
"DriftCircleCutTool", acc.popToolsAndMerge(
127 if 'RoadTool' not in kwargs:
128 from InDetConfig.TRT_DetElementsRoadToolConfig
import Trig_TRT_DetElementsRoadMaker_xk_TRTExtensionCfg
129 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
132 kwargs.setdefault(
"TRT_ClustersContainer",
"TRT_TrigDriftCircles")
133 kwargs.setdefault(
"RoadWidth", 20.)
134 kwargs.setdefault(
"ScaleHitUncertainty", 2.)
135 kwargs.setdefault(
"MinNumberDriftCircles", flags.Tracking.ActiveConfig.minTRTonTrk)
137 acc.setPrivateTools(acc.popToolsAndMerge(
143 if flags.Beam.Type
is BeamType.Cosmics: