Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004
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
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
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
00025 from Alignment.CommonAlignmentProducer.AlignmentProducer_cff import *
00026 looper.tjTkAssociationMapTag = cms.InputTag("MuonAlignmentFromReferenceGlobalMuonRefit:Refitted")
00027 looper.doTracker = cms.untracked.bool(False)
00028 looper.doMuon = cms.untracked.bool(True)
00029 looper.ParameterBuilder.Selector = cms.PSet(
00030 alignParams = cms.vstring("MuonDTChambers,111111,stations123", "MuonDTChambers,100011,station4", "MuonCSCChambers,100011"),
00031 stations123 = cms.PSet(rRanges = cms.vdouble(0., 660.),
00032 xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()),
00033 station4 = cms.PSet(rRanges = cms.vdouble(660., 800.),
00034 xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()))
00035
00036
00037 from Alignment.MuonAlignmentAlgorithms.MuonAlignmentFromReference_cfi import *
00038 looper.algoConfig = MuonAlignmentFromReference
00039
00040
00041 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
00042
00043
00044 looper.applyDbAlignment = cms.untracked.bool(True)
00045 from CondCore.DBCommon.CondDBSetup_cfi import *
00046 MuonAlignmentFromReferenceInputDB = cms.ESSource("PoolDBESSource",
00047 CondDBSetup,
00048 connect = cms.string("sqlite_file:MuonAlignmentFromReference_inputdb.db"),
00049 toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00050 cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00051 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00052 cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00053 es_prefer_MuonAlignmentFromReferenceInputDB = cms.ESPrefer("PoolDBESSource", "MuonAlignmentFromReferenceInputDB")
00054
00055
00056 looper.saveToDB = cms.bool(True)
00057 from CondCore.DBCommon.CondDBSetup_cfi import *
00058 PoolDBOutputService = cms.Service("PoolDBOutputService",
00059 CondDBSetup,
00060 connect = cms.string("sqlite_file:MuonAlignmentFromReference_outputdb.db"),
00061 toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00062 cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00063 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00064 cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))