CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KalmanAlignmentAlgorithm_Commons.py
Go to the documentation of this file.
1 
2 def loadKAACommons( cms, process ) :
3  #
4  # magnetic field
5  #
6  process.load( "Configuration.StandardSequences.MagneticField_cff" )
7  #
8  # ideal geometry and interface
9  #
10  process.load( "Geometry.CMSCommonData.cmsIdealGeometryXML_cfi" )
11  process.load( "Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi" )
12  process.load( "Geometry.CommonDetUnit.bareGlobalTrackingGeometry_cfi" )
13  #
14  # beam spot
15  #
16  process.load( "RecoVertex.BeamSpotProducer.BeamSpot_cff" )
17  #
18  # track selector
19  #
20  process.load("Alignment.CommonAlignmentProducer.AlignmentTrackSelector_cfi")
21  #
22  # track refitter (adapted to alignment needs)
23  #
24  process.load( "TrackingTools.KalmanUpdators.KFUpdatorESProducer_cfi" )
25  process.load( "TrackingTools.KalmanUpdators.Chi2MeasurementEstimatorESProducer_cfi" )
26  process.load( "TrackingTools.TrackFitters.KFTrajectoryFitterESProducer_cfi" )
27  process.load( "TrackingTools.TrackFitters.KFTrajectorySmootherESProducer_cfi" )
28  process.load( "TrackingTools.TrackFitters.KFFittingSmootherESProducer_cfi" )
29  process.load( "TrackingTools.MaterialEffects.MaterialPropagator_cfi" )
30  process.load( "TrackingTools.GeomPropagators.AnalyticalPropagator_cfi" )
31  process.load( "RecoTracker.TrackProducer.RefitterWithMaterial_cff" )
32  process.load( "RecoTracker.TransientTrackingRecHit.TTRHBuilders_cff" )
33  process.TrackRefitter.src = "AlignmentTrackSelector"
34  process.TrackRefitter.TTRHBuilder = "WithAngleAndTemplate"
35  process.TrackRefitter.TrajectoryInEvent = True
36  #
37  # alignment producer
38  #
39  process.load( "Alignment.CommonAlignmentProducer.AlignmentProducer_cff" )
40  process.AlignmentProducer.algoConfig = cms.PSet( process.KalmanAlignmentAlgorithm )
41  #
42  # KAA specific includes
43  #
44  process.load( "Alignment.KalmanAlignmentAlgorithm.AlignmentUpdators_cff" )
45  process.load( "Alignment.KalmanAlignmentAlgorithm.MetricsUpdators_cff" )
46  process.load( "Alignment.ReferenceTrajectories.TrajectoryFactories_cff" )
47  #
48  # standard processing path for track-based alignment
49  #
50  process.p = cms.Path( process.AlignmentTrackSelector * process.offlineBeamSpot * process.TrackRefitter )