Esempio n. 1
0
# load error scaling
#
from IOVDbSvc.CondDB import conddb
if not conddb.folderRequested('Indet/TrkErrorScaling'):
    conddb.addFolder("INDET", "/Indet/TrkErrorScaling")

###############################################################################
###############################################################################
#######          Trk     Extraplotor Related Packaages                 ########
###############################################################################
###############################################################################
#
# declare the extrapolator
#
from TrkMagFieldTools.TrkMagFieldToolsConf import Trk__MagneticFieldTool
ElectronTrkMagField = Trk__MagneticFieldTool('ElectronTrkMagField')
ToolSvc += ElectronTrkMagField
#
# set up geometry
#
include('TrkDetDescrSvc/AtlasTrackingGeometrySvc.py')
from __main__ import AtlasTrackingGeometrySvc
#
# get propagator
#
from TrkExRungeKuttaPropagator.TrkExRungeKuttaPropagatorConf import Trk__RungeKuttaPropagator as Propagator
#
ElectronTrkPropagator = Propagator(name='ElectronTrkPropagator')
ElectronTrkPropagator.AccuracyParameter = 0.0001
ToolSvc += ElectronTrkPropagator
Esempio n. 2
0
    TrackSelectorTool=InDetConversionTrackSelector,
    TrackPairsSelector=InDetConversionTrackPairsSelector,
    ConversionFinderHelperTool=InDetConversionHelper,
    VertexPointEstimator=InDetConversionVtxPointEstimator,
    PostSelector=InDetConversionPostSelector,
    SingleTrackConversionTool=InDetSingleTrackConversion,
    Extrapolator=theAtlasExtrapolator,
    TrackParticleCollection="TrackParticleCandidate",
    RemoveTrtTracks=False,
    IsConversion=True)
ToolSvc += InDetConversionFinderToolsBis
print InDetConversionFinderToolsBis
############################################################################################################

from TrkMagFieldTools.TrkMagFieldToolsConf import Trk__MagneticFieldTool
theAtlasMagField = Trk__MagneticFieldTool('theAtlasMagField')
ToolSvc += theAtlasMagField

###### Vertex fitter ######
from TrkVKalVrtFitter.TrkVKalVrtFitterConf import Trk__TrkVKalVrtFitter
InDetConversionVxFitterTool = Trk__TrkVKalVrtFitter(
    name="InDetConversionVxFitter",
    # Extrapolator        = InDetExtrapolator,
    Extrapolator=theAtlasExtrapolator,
    IterationNumber=30,
    #MagFieldSvc         = InDetMagField,
    MagFieldSvc=theAtlasMagField,
    Robustness=6,
    #This line has no more meaning                      Constraint          = 12,
    usePhiCnst=True,
    useThetaCnst=True,
Esempio n. 3
0
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

###############################################################################
#
# configureServices.py
# Author: ATLAS B-physics group
# Configures supporting services for the B-physics AOD analyses.
#
###############################################################################

#------------------------------------------------------------------------------
# Magnetic field tool
#------------------------------------------------------------------------------

from TrkMagFieldTools.TrkMagFieldToolsConf import Trk__MagneticFieldTool
InDetMagField = Trk__MagneticFieldTool('InDetMagField')
ToolSvc += InDetMagField
print      InDetMagField

#------------------------------------------------------------------------------
# Set up extrapolator
#------------------------------------------------------------------------------

from TrkExTools.AtlasExtrapolator import AtlasExtrapolator
InDetExtrapolator = AtlasExtrapolator()
ToolSvc += InDetExtrapolator
print      InDetExtrapolator

#------------------------------------------------------------------------------
# Vertex point estimator
#------------------------------------------------------------------------------
Esempio n. 4
0
# block the include for all others
include.block('TrkExExample/LocalExtrapolator.py')
######################################################
# LocalExtrapolator module
#
# it using the standard Local Tracking Geometry
#
######################################################

print 'Setting up default LocalExtrapolator'
#
# Magnetic field tool
#
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
#