CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Alignment/KalmanAlignmentAlgorithm/python/KalmanAlignmentAlgorithm_Commons.py

Go to the documentation of this file.
00001 
00002 def loadKAACommons( cms, process ) :
00003     #
00004     # magnetic field
00005     #
00006     process.load( "Configuration.StandardSequences.MagneticField_cff" )
00007     #
00008     # ideal geometry and interface
00009     #
00010     process.load( "Geometry.CMSCommonData.cmsIdealGeometryXML_cfi" )
00011     process.load( "Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi" )
00012     process.load( "Geometry.CommonDetUnit.bareGlobalTrackingGeometry_cfi" )
00013     #
00014     # beam spot
00015     #
00016     process.load( "RecoVertex.BeamSpotProducer.BeamSpot_cff" )
00017     #
00018     # track selector
00019     #
00020     process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
00021     #
00022     # track refitter (adapted to alignment needs)
00023     #
00024     process.load( "TrackingTools.KalmanUpdators.KFUpdatorESProducer_cfi" )
00025     process.load( "TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi" )
00026     process.load( "TrackingTools.TrackFitters.KFTrajectoryFitterESProducer_cfi" )
00027     process.load( "TrackingTools.TrackFitters.KFTrajectorySmootherESProducer_cfi" )
00028     process.load( "TrackingTools.TrackFitters.KFFittingSmootherESProducer_cfi" )
00029     process.load( "TrackingTools.MaterialEffects.MaterialPropagator_cfi" )
00030     process.load( "TrackingTools.GeomPropagators.AnalyticalPropagator_cfi" )
00031     process.load( "RecoTracker.TrackProducer.RefitterWithMaterial_cff" )
00032     process.load( "RecoTracker.TransientTrackingRecHit.TTRHBuilders_cff" )
00033     process.TrackRefitter.src = "AlignmentTrackSelector"
00034     process.TrackRefitter.TTRHBuilder = "WithAngleAndTemplate"
00035     process.TrackRefitter.TrajectoryInEvent = True
00036     #
00037     # alignment producer
00038     #
00039     process.load( "Alignment.CommonAlignmentProducer.AlignmentProducer_cff" )
00040     process.AlignmentProducer.algoConfig = cms.PSet( process.KalmanAlignmentAlgorithm )
00041     #
00042     # KAA specific includes
00043     #
00044     process.load( "Alignment.KalmanAlignmentAlgorithm.AlignmentUpdators_cff" )
00045     process.load( "Alignment.KalmanAlignmentAlgorithm.MetricsUpdators_cff" )
00046     process.load( "Alignment.ReferenceTrajectories.TrajectoryFactories_cff" )
00047     #
00048     # standard processing path for track-based alignment
00049     #
00050     process.p = cms.Path( process.AlignmentTrackSelector * process.offlineBeamSpot * process.TrackRefitter )