CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTRecHitQualityAll_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 rechivalidation = DQMEDAnalyzer("DTRecHitQuality",
5  doStep2 = cms.untracked.bool(False),
6  # Switches for analysis at various steps
7  doStep1 = cms.untracked.bool(True),
8  # Lable to retrieve RecHits from the event
9  recHitLabel = cms.untracked.InputTag('dt1DRecHits'),
10  doStep3 = cms.untracked.bool(True),
11  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
12  segment2DLabel = cms.untracked.InputTag('dt2DSegments'),
13  debug = cms.untracked.bool(False),
14  segment4DLabel = cms.untracked.InputTag('dt4DSegments'),
15  doall = cms.untracked.bool(True),
16  local = cms.untracked.bool(False)
17 
18 )
19 
20 seg2dvalidation = DQMEDAnalyzer("DTSegment2DQuality",
21  sigmaResPos = cms.double(0.013),
22  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
23  segment2DLabel = cms.untracked.InputTag('dt2DSegments'),
24  debug = cms.untracked.bool(False),
25  sigmaResAngle = cms.double(0.008)
26 )
27 
28 seg2dsuperphivalidation = DQMEDAnalyzer("DTSegment2DSLPhiQuality",
29  sigmaResPos = cms.double(0.013),
30  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
31  sigmaResAngle = cms.double(0.008),
32  debug = cms.untracked.bool(False),
33  segment4DLabel = cms.untracked.InputTag('dt4DSegments'),
34  doall = cms.untracked.bool(True),
35  local = cms.untracked.bool(False)
36  )
37 
38 seg4dvalidation = DQMEDAnalyzer("DTSegment4DQuality",
39  #resolution on angle
40  sigmaResAlpha = cms.double(0.001),
41  sigmaResBeta = cms.double(0.007),
42  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
43  rootFileName = cms.untracked.string(''),
44  debug = cms.untracked.bool(False),
45  #resolution on position
46  sigmaResX = cms.double(0.01),
47  sigmaResY = cms.double(0.05),
48  segment4DLabel = cms.untracked.InputTag('dt4DSegments'),
49  doall = cms.untracked.bool(True),
50  local = cms.untracked.bool(False)
51 )
52 
53 dtLocalRecoValidation = cms.Sequence(rechivalidation*seg2dvalidation*seg2dsuperphivalidation*seg4dvalidation)
54 dtLocalRecoValidation_no2D = cms.Sequence(rechivalidation*seg2dsuperphivalidation*seg4dvalidation)
55 
56 from Configuration.Eras.Modifier_fastSim_cff import fastSim
57 fastSim.toModify(rechivalidation, simHitLabel = "MuonSimHits:MuonDTHits")
58 fastSim.toModify(seg2dvalidation, simHitLabel = "MuonSimHits:MuonDTHits")
59 fastSim.toModify(seg2dsuperphivalidation, simHitLabel = "MuonSimHits:MuonDTHits")
60 fastSim.toModify(seg4dvalidation, simHitLabel = "MuonSimHits:MuonDTHits")