File indexing completed on 2024-04-06 11:56:45
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005 from Configuration.StandardSequences.Services_cff import *
0006
0007
0008 from RecoTracker.Configuration.RecoTracker_cff import *
0009
0010
0011
0012
0013 from TrackingTools.TrackRefitter.globalMuonTrajectories_cff import *
0014 MuonAlignmentFromReferenceGlobalMuonRefit = globalMuons.clone()
0015 MuonAlignmentFromReferenceGlobalMuonRefit.Tracks = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon")
0016 MuonAlignmentFromReferenceGlobalMuonRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
0017
0018
0019 from TrackingTools.TrackRefitter.globalCosmicMuonTrajectories_cff import *
0020
0021
0022
0023
0024
0025 from RecoMuon.Configuration.RecoMuon_cff import *
0026 newmuons = muons.clone(
0027 inputCollectionTypes = cms.vstring("inner tracks"),
0028
0029 inputCollectionLabels = cms.VInputTag(cms.InputTag("refittedGeneralTracks")),
0030 fillIsolation = cms.bool(False),
0031 )
0032
0033
0034 from Alignment.CommonAlignmentProducer.AlignmentProducer_cff import *
0035 looper.tjTkAssociationMapTag = cms.InputTag("MuonAlignmentFromReferenceGlobalMuonRefit:Refitted")
0036 looper.doTracker = cms.untracked.bool(False)
0037 looper.doMuon = cms.untracked.bool(True)
0038 looper.checkDbAlignmentValidity = cms.untracked.bool(False)
0039 looper.useExtras = cms.untracked.bool(False)
0040 looper.ParameterBuilder.Selector = cms.PSet(
0041 alignParams = cms.vstring("MuonDTChambers,111111,stations123", "MuonDTChambers,100011,station4", "MuonCSCChambers,100011"),
0042 stations123 = cms.PSet(rRanges = cms.vdouble(0., 660.),
0043 xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()),
0044 station4 = cms.PSet(rRanges = cms.vdouble(660., 800.),
0045 xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()))
0046
0047
0048 from Alignment.MuonAlignmentAlgorithms.MuonAlignmentFromReference_cfi import *
0049 looper.algoConfig = MuonAlignmentFromReference
0050
0051
0052 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
0053
0054
0055 looper.applyDbAlignment = cms.untracked.bool(True)
0056 from CondCore.DBCommon.CondDBSetup_cfi import *
0057 MuonAlignmentFromReferenceInputDB = cms.ESSource("PoolDBESSource",
0058 CondDBSetup,
0059 connect = cms.string("sqlite_file:MuonAlignmentFromReference_inputdb.db"),
0060 toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
0061 cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
0062 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
0063 cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
0064 es_prefer_MuonAlignmentFromReferenceInputDB = cms.ESPrefer("PoolDBESSource", "MuonAlignmentFromReferenceInputDB")
0065
0066
0067 looper.saveToDB = cms.bool(True)
0068 from CondCore.DBCommon.CondDBSetup_cfi import *
0069 PoolDBOutputService = cms.Service("PoolDBOutputService",
0070 CondDBSetup,
0071 connect = cms.string("sqlite_file:MuonAlignmentFromReference_outputdb.db"),
0072 toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
0073 cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
0074 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
0075 cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))