80 LayerMaterialInspector = CompFactory.Trk.LayerMaterialInspector(
"LayerMaterialInspector",
82 acc.addPublicTool(LayerMaterialInspector)
85 from TrkDetDescrSvc.TrkDetDescrJobProperties
import TrkDetFlags
86 TrackingVolumeDisplayer = CompFactory.Trk.TrackingVolumeDisplayer(
"TrackingVolumeDisplayer",
87 TrackingVolumeOutputFile=
'TrackingVolumes-'+TrkDetFlags.MaterialMagicTag()+
'.C',
88 LayerOutputFile=
'Layers-'+TrkDetFlags.MaterialMagicTag()+
'.C',
89 SurfaceOutputFile=
'Surfaces-'+TrkDetFlags.MaterialMagicTag()+
'.C')
90 acc.addPublicTool(TrackingVolumeDisplayer)
94 TestPropagator = CompFactory.Trk.RungeKuttaPropagator(
"TestPropagator")
95 acc.addPublicTool(TestPropagator)
96 TestPropagators += [TestPropagator]
98 from TrkConfig.TrkExSTEP_PropagatorConfig
import AtlasSTEP_PropagatorCfg
99 TestSTEP_Propagator = acc.popToolsAndMerge(
AtlasSTEP_PropagatorCfg(flags, name=
"TestSTEP_Propagator", DetailedEloss=
True))
100 TestPropagators += [TestSTEP_Propagator]
102 TestSTEP_Propagator.Straggling =
False
104 if args.myPDG == 998 :
105 TestSTEP_Propagator.MultipleScattering =
False
106 TestSTEP_Propagator.EnergyLoss =
False
111 TestMaterialEffectsUpdator = CompFactory.Trk.MaterialEffectsUpdator(
"TestMaterialEffectsUpdator")
112 acc.addPublicTool(TestMaterialEffectsUpdator)
113 if args.myPDG == 998 :
114 TestMaterialEffectsUpdator.EnergyLoss =
False
115 TestMaterialEffectsUpdator.MultipleScattering =
False
117 TestUpdators += [TestMaterialEffectsUpdator]
119 TestMaterialEffectsUpdatorLandau = CompFactory.Trk.MaterialEffectsUpdator(
"TestMaterialEffectsUpdatorLandau",
121 acc.addPublicTool(TestMaterialEffectsUpdatorLandau)
123 if args.myPDG == 998 :
124 TestMaterialEffectsUpdatorLandau.EnergyLoss =
False
125 TestMaterialEffectsUpdatorLandau.MultipleScattering =
False
130 TestNavigator = CompFactory.Trk.Navigator(
"TestNavigator",
131 TrackingGeometrySvc=
"Trk::TrackingGeometrySvc/AtlasTrackingGeometrySvc")
132 acc.addPublicTool(TestNavigator)
136 TestSubPropagators = []
141 TestSubPropagators += [ TestPropagator.name ]
142 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
145 TestSubPropagators += [ TestPropagator.name ]
146 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
149 TestSubPropagators += [ TestPropagator.name ]
150 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
153 TestSubPropagators += [ TestSTEP_Propagator.name ]
155 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
158 TestSubPropagators += [ TestSTEP_Propagator.name ]
159 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
162 TestSubPropagators += [ TestPropagator.name ]
163 TestSubUpdators += [ TestMaterialEffectsUpdator.name ]
166 AtlasEnergyLossUpdator = CompFactory.Trk.EnergyLossUpdator(
"AtlasEnergyLossUpdator",
168 acc.addPublicTool(AtlasEnergyLossUpdator)
177 TestExtrapolator = CompFactory.Trk.Extrapolator(
"TestExtrapolator",
178 Navigator = TestNavigator,
179 MaterialEffectsUpdators = TestUpdators,
180 STEP_Propagator = TestSTEP_Propagator.name,
181 Propagators = TestPropagators,
182 SubPropagators = TestSubPropagators,
183 SubMEUpdators = TestSubUpdators,
184 EnergyLossUpdater = AtlasEnergyLossUpdator
186 acc.addPublicTool(TestExtrapolator, primary=
True)