00001 import FWCore.ParameterSet.Config as cms 00002 00003 from TrackingTools.TrackRefitter.TracksToTrajectories_cff import * 00004 # IMPORTANT !!! ## 00005 # If you want to revert the fit direction, then 00006 # Case 1 # 00007 # string RefitDirection = "alongMomentum" 00008 # KFTrajectoryFitterESProducer ---> Fitter = "KFFitterForRefitInsideOut" 00009 # KFTrajectorySmootherESProducer ---> Smoother = "KFSmootherForRefitInsideOut" 00010 # Case 2 # 00011 # string RefitDirection = "alongMomentum" 00012 # KFTrajectoryFitterESProducer ---> Fitter = "KFFitterForRefitOutsideIn" 00013 # KFTrajectorySmootherESProducer ---> Smoother = "KFSmootherForRefitOutsideIn" 00014 # Case 3 # 00015 # string RefitDirection = "oppositeToMomentum" 00016 # KFTrajectoryFitterESProducer ---> Fitter = "KFFitterForRefitOutsideIn" 00017 # KFTrajectorySmootherESProducer ---> Smoother = "KFSmootherForRefitOutsideIn" 00018 # Case 4 # 00019 # string RefitDirection = "oppositeToMomentum" 00020 # KFTrajectoryFitterESProducer ---> Fitter = "KFFitterForRefitOutsideIn" 00021 # KFTrajectorySmootherESProducer ---> Smoother = "KFSmootherForRefitOutsideIn" 00022 # 00023 cosmicMuons = cms.EDProducer("TracksToTrajectories", 00024 Type = cms.string("CosmicMuonsForAlignment"), 00025 Tracks = cms.InputTag("cosmicMuons"), 00026 TrackTransformer = cms.PSet( TrackerRecHitBuilder = cms.string('WithTrackAngle'), 00027 MuonRecHitBuilder = cms.string('MuonRecHitBuilder'), 00028 RefitRPCHits = cms.bool(True) 00029 ) 00030 ) 00031 00032 MuAlCosmics = cosmicMuons.clone() 00033 MuAlCosmics.Tracks = cms.InputTag("ALCARECOMuAlGlobalCosmics","StandAlone")