CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
KalmanAlignmentAlgorithm_Commons Namespace Reference

Functions

def loadKAACommons
 

Function Documentation

def KalmanAlignmentAlgorithm_Commons.loadKAACommons (   cms,
  process 
)

Definition at line 2 of file KalmanAlignmentAlgorithm_Commons.py.

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