def __init__(self, name='LocalExtrapolator'): # get the correct TrackingGeometry setup include('TrkDetDescrSvc/LocalTrackingGeometrySvc.py') from __main__ import LocalTrackingGeometrySvc from __main__ import ToolSvc # the Navigator has to get this one from TrkExTools.TrkExToolsConf import Trk__Navigator LocalNavigator = Trk__Navigator(name='LocalNavigator') LocalNavigator.TrackingGeometryName = LocalTrackingGeometrySvc.TrackingGeometryName ToolSvc += LocalNavigator # the standard RungeKuttaPropagator from TrkExRungeKuttaPropagator.TrkExRungeKuttaPropagatorConf import Trk__RungeKuttaPropagator as Propagator LocalPropagator = Propagator(name='LocalPropagator') ToolSvc += LocalPropagator # call the base class constructor Trk__Extrapolator.__init__(self, name, Navigator=LocalNavigator, Propagators=[LocalPropagator])
# from TrkMagFieldTools.TrkMagFieldToolsConf import Trk__MagneticFieldTool LocalMagField = Trk__MagneticFieldTool(name='LocalMagField') ToolSvc += LocalMagField print LocalMagField # # get the ATLAS tracking geometry include('TrkDetDescrSvc/LocalTrackingGeometrySvc.py') # Setup the Navigator (default, could be removed) # from TrkExTools.TrkExToolsConf import Trk__Navigator LocalNavigator = Trk__Navigator(name='LocalNavigator') LocalNavigator.TrackingGeometryName = LocalTrackingGeometrySvc.TrackingGeometryName ToolSvc += LocalNavigator print LocalNavigator # # Setup the MaterialEffectsUpdator # from TrkExTools.TrkExToolsConf import Trk__MaterialEffectsUpdator LocalMaterialUpdator = Trk__MaterialEffectsUpdator( name="LocalMaterialEffectsUpdator") ToolSvc += LocalMaterialUpdator print LocalMaterialUpdator # # set the propagator # from TrkExRungeKuttaPropagator.TrkExRungeKuttaPropagatorConf import Trk__RungeKuttaPropagator as Propagator