CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
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.ParameterBuilder.Selector = cms.PSet(
39  alignParams = cms.vstring("MuonDTChambers,111111,stations123", "MuonDTChambers,100011,station4", "MuonCSCChambers,100011"),
40  stations123 = cms.PSet(rRanges = cms.vdouble(0., 660.),
41  xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()),
42  station4 = cms.PSet(rRanges = cms.vdouble(660., 800.),
43  xRanges = cms.vdouble(), yRanges = cms.vdouble(), zRanges = cms.vdouble(), etaRanges = cms.vdouble(), phiRanges = cms.vdouble()))
44 
45 ### MuonAlignmentFromReference with default options
47 looper.algoConfig = MuonAlignmentFromReference
48 
49 ### Diagnostic histograms
50 MuonAlignmentFromReferenceTFileService = cms.Service("TFileService", fileName = cms.string("MuonAlignmentFromReference.root"))
51 
52 ### Input geometry database
53 looper.applyDbAlignment = cms.untracked.bool(True)
55 MuonAlignmentFromReferenceInputDB = cms.ESSource("PoolDBESSource",
56  CondDBSetup,
57  connect = cms.string("sqlite_file:MuonAlignmentFromReference_inputdb.db"),
58  toGet = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
59  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
60  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
61  cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
62 es_prefer_MuonAlignmentFromReferenceInputDB = cms.ESPrefer("PoolDBESSource", "MuonAlignmentFromReferenceInputDB")
63 
64 ### Output geometry database
65 looper.saveToDB = cms.bool(True)
67 PoolDBOutputService = cms.Service("PoolDBOutputService",
68  CondDBSetup,
69  connect = cms.string("sqlite_file:MuonAlignmentFromReference_outputdb.db"),
70  toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
71  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
72  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
73  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.