Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ### General track re-fitting includes
0004 ### (don't load dtGeometry_cfi or cscGeometry_cfi because it's provided by AlignmentProducer)
0005 from Configuration.StandardSequences.Services_cff import *
0006 #from Configuration.StandardSequences.GeometryExtended_cff import *
0007 #from Configuration.StandardSequences.MagneticField_cff import *
0008 from RecoTracker.Configuration.RecoTracker_cff import *
0009 #del DTGeometryESModule
0010 #del CSCGeometryESModule
0011 
0012 ### Track refitter for global collisions muons
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 ### Track refitter for global cosmic muons
0019 from TrackingTools.TrackRefitter.globalCosmicMuonTrajectories_cff import *
0020 #MuonAlignmentFromReferenceGlobalCosmicRefit = globalCosmicMuons.clone()
0021 #MuonAlignmentFromReferenceGlobalCosmicRefit.Tracks = cms.InputTag("ALCARECOMuAlGlobalCosmics:GlobalMuon")
0022 #MuonAlignmentFromReferenceGlobalCosmicRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
0023 
0024 ### for Tracker muon re-reco
0025 from RecoMuon.Configuration.RecoMuon_cff import *
0026 newmuons = muons.clone(
0027   inputCollectionTypes = cms.vstring("inner tracks"),
0028   #inputCollectionLabels = cms.VInputTag(cms.InputTag("generalTracks")),
0029   inputCollectionLabels = cms.VInputTag(cms.InputTag("refittedGeneralTracks")),
0030   fillIsolation = cms.bool(False),
0031 )
0032 
0033 ### AlignmentProducer with basic options for muon alignment
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 ### MuonAlignmentFromReference with default options
0048 from Alignment.MuonAlignmentAlgorithms.MuonAlignmentFromReference_cfi import *
0049 looper.algoConfig = MuonAlignmentFromReference
0050 
0051 ### Diagnostic histograms
0052 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
0053 
0054 ### Input geometry database
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 ### Output geometry database
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"))))