CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MuonAlignmentFromReference_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ### General track re-fitting includes
4 ### (don't load dtGeometry_cfi or cscGeometry_cfi because it's provided by AlignmentProducer)
6 #from Configuration.StandardSequences.GeometryExtended_cff import *
7 #from Configuration.StandardSequences.MagneticField_cff import *
9 #del DTGeometryESModule
10 #del CSCGeometryESModule
11 
12 ### Track refitter for global collisions muons
14 MuonAlignmentFromReferenceGlobalMuonRefit = globalMuons.clone()
15 MuonAlignmentFromReferenceGlobalMuonRefit.Tracks = cms.InputTag("ALCARECOMuAlCalIsolatedMu:GlobalMuon")
16 MuonAlignmentFromReferenceGlobalMuonRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
17 
18 ### Track refitter for global cosmic muons
20 #MuonAlignmentFromReferenceGlobalCosmicRefit = globalCosmicMuons.clone()
21 #MuonAlignmentFromReferenceGlobalCosmicRefit.Tracks = cms.InputTag("ALCARECOMuAlGlobalCosmics:GlobalMuon")
22 #MuonAlignmentFromReferenceGlobalCosmicRefit.TrackTransformer.RefitRPCHits = cms.bool(False)
23 
24 ### for Tracker muon re-reco
26 newmuons = muons.clone(
27  inputCollectionTypes = cms.vstring("inner tracks"),
28  #inputCollectionLabels = cms.VInputTag(cms.InputTag("generalTracks")),
29  inputCollectionLabels = cms.VInputTag(cms.InputTag("refittedGeneralTracks")),
30  fillIsolation = cms.bool(False),
31 )
32 
33 ### AlignmentProducer with basic options for muon alignment
35 looper.tjTkAssociationMapTag = cms.InputTag("MuonAlignmentFromReferenceGlobalMuonRefit:Refitted")
36 looper.doTracker = cms.untracked.bool(False)
37 looper.doMuon = cms.untracked.bool(True)
38 looper.checkDbAlignmentValidity = cms.untracked.bool(False)
39 looper.useExtras = cms.untracked.bool(False)
40 looper.ParameterBuilder.Selector = cms.PSet(
41  alignParams = cms.vstring("MuonDTChambers,111111,stations123", "MuonDTChambers,100011,station4", "MuonCSCChambers,100011"),
42  stations123 = cms.PSet(rRanges = cms.vdouble(0., 660.),
43  xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()),
44  station4 = cms.PSet(rRanges = cms.vdouble(660., 800.),
45  xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()))
46 
47 ### MuonAlignmentFromReference with default options
49 looper.algoConfig = MuonAlignmentFromReference
50 
51 ### Diagnostic histograms
52 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
53 
54 ### Input geometry database
55 looper.applyDbAlignment = cms.untracked.bool(True)
57 MuonAlignmentFromReferenceInputDB = cms.ESSource("PoolDBESSource",
58  CondDBSetup,
59  connect = cms.string("sqlite_file:MuonAlignmentFromReference_inputdb.db"),
60  toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
61  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
62  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
63  cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
64 es_prefer_MuonAlignmentFromReferenceInputDB = cms.ESPrefer("PoolDBESSource", "MuonAlignmentFromReferenceInputDB")
65 
66 ### Output geometry database
67 looper.saveToDB = cms.bool(True)
69 PoolDBOutputService = cms.Service("PoolDBOutputService",
70  CondDBSetup,
71  connect = cms.string("sqlite_file:MuonAlignmentFromReference_outputdb.db"),
72  toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
73  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
74  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
75  cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
General track re-fitting includes (don't load dtGeometry_cfi or cscGeometry_cfi because it's provided...
Track refitter for global collisions muons.
for Tracker muon re-reco
MuonAlignmentFromReference with default options.
Track refitter for global cosmic muons.