CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/Alignment/MuonAlignmentAlgorithms/python/MuonAlignmentFromReference_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ### General track re-fitting includes
00004 ### (don't load dtGeometry_cfi or cscGeometry_cfi because it's provided by AlignmentProducer)
00005 from Configuration.StandardSequences.Services_cff import *
00006 from Configuration.StandardSequences.GeometryExtended_cff import *
00007 from Configuration.StandardSequences.MagneticField_cff import *
00008 from RecoTracker.Configuration.RecoTracker_cff import *
00009 del DTGeometryESModule
00010 del CSCGeometryESModule
00011 
00012 ### Track refitter for global collisions muons
00013 from TrackingTools.TrackRefitter.globalMuonTrajectories_cff import *
00014 MuonAlignmentFromReferenceGlobalMuonRefit = globalMuons.clone()
00015 MuonAlignmentFromReferenceGlobalMuonRefit.Tracks = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon")
00016 MuonAlignmentFromReferenceGlobalMuonRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
00017 
00018 ### Track refitter for global cosmic muons
00019 from TrackingTools.TrackRefitter.globalCosmicMuonTrajectories_cff import *
00020 MuonAlignmentFromReferenceGlobalCosmicRefit = globalCosmicMuons.clone()
00021 MuonAlignmentFromReferenceGlobalCosmicRefit.Tracks = cms.InputTag("ALCARECOMuAlGlobalCosmics:GlobalMuon")
00022 MuonAlignmentFromReferenceGlobalCosmicRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
00023 
00024 ### for Tracker muon re-reco
00025 from RecoMuon.Configuration.RecoMuon_cff import *
00026 newmuons = muons.clone(
00027   inputCollectionTypes = cms.vstring("inner tracks"),
00028   #inputCollectionLabels = cms.VInputTag(cms.InputTag("generalTracks")),
00029   inputCollectionLabels = cms.VInputTag(cms.InputTag("refittedGeneralTracks")),
00030   fillIsolation = cms.bool(False),
00031 )
00032 
00033 ### AlignmentProducer with basic options for muon Alignment
00034 from Alignment.CommonAlignmentProducer.AlignmentProducer_cff import *
00035 looper.tjTkAssociationMapTag = cms.InputTag("MuonAlignmentFromReferenceGlobalMuonRefit:Refitted")
00036 looper.doTracker = cms.untracked.bool(False)
00037 looper.doMuon = cms.untracked.bool(True)
00038 looper.ParameterBuilder.Selector = cms.PSet(
00039     alignParams = cms.vstring("MuonDTChambers,111111,stations123", "MuonDTChambers,100011,station4", "MuonCSCChambers,100011"),
00040     stations123 = cms.PSet(rRanges = cms.vdouble(0., 660.),
00041                            xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()),
00042     station4 = cms.PSet(rRanges = cms.vdouble(660., 800.),
00043                         xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()))
00044 
00045 ### MuonAlignmentFromReference with default options
00046 from Alignment.MuonAlignmentAlgorithms.MuonAlignmentFromReference_cfi import *
00047 looper.algoConfig = MuonAlignmentFromReference
00048 
00049 ### Diagnostic histograms
00050 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
00051 
00052 ### Input geometry database
00053 looper.applyDbAlignment = cms.untracked.bool(True)
00054 from CondCore.DBCommon.CondDBSetup_cfi import *
00055 MuonAlignmentFromReferenceInputDB = cms.ESSource("PoolDBESSource",
00056                                                   CondDBSetup,
00057                                                   connect = cms.string("sqlite_file:MuonAlignmentFromReference_inputdb.db"),
00058                                                   toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00059                                                                     cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00060                                                                     cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00061                                                                     cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00062 es_prefer_MuonAlignmentFromReferenceInputDB = cms.ESPrefer("PoolDBESSource", "MuonAlignmentFromReferenceInputDB")
00063 
00064 ### Output geometry database
00065 looper.saveToDB = cms.bool(True)
00066 from CondCore.DBCommon.CondDBSetup_cfi import *
00067 PoolDBOutputService = cms.Service("PoolDBOutputService",
00068                                   CondDBSetup,
00069                                   connect = cms.string("sqlite_file:MuonAlignmentFromReference_outputdb.db"),
00070                                   toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00071                                                     cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00072                                                     cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00073                                                     cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))