CMS 3D CMS Logo

DTRecHitQuality_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(False),
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(False),
16  local = cms.untracked.bool(False)
17 )
18 
19 seg2dvalidation = DQMEDAnalyzer("DTSegment2DQuality",
20  sigmaResPos = cms.double(0.013),
21  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
22  segment2DLabel = cms.untracked.InputTag('dt2DSegments'),
23  debug = cms.untracked.bool(False),
24  sigmaResAngle = cms.double(0.008)
25 )
26 
27 seg2dsuperphivalidation = DQMEDAnalyzer("DTSegment2DSLPhiQuality",
28  sigmaResPos = cms.double(0.013),
29  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
30  sigmaResAngle = cms.double(0.008),
31  debug = cms.untracked.bool(False),
32  segment4DLabel = cms.untracked.InputTag('dt4DSegments'),
33  doall = cms.untracked.bool(False),
34  local = cms.untracked.bool(False)
35 )
36 
37 seg4dvalidation = DQMEDAnalyzer("DTSegment4DQuality",
38  #resolution on angle
39  sigmaResAlpha = cms.double(0.001),
40  sigmaResBeta = cms.double(0.007),
41  simHitLabel = cms.untracked.InputTag('g4SimHits',"MuonDTHits"),
42  rootFileName = cms.untracked.string(''),
43  debug = cms.untracked.bool(False),
44  #resolution on position
45  sigmaResX = cms.double(0.01),
46  sigmaResY = cms.double(0.05),
47  segment4DLabel = cms.untracked.InputTag('dt4DSegments'),
48  doall = cms.untracked.bool(False),
49  local = cms.untracked.bool(False)
50 )
51 
52 dtLocalRecoValidation = cms.Sequence(rechivalidation*seg2dvalidation*seg2dsuperphivalidation*seg4dvalidation)
53 dtLocalRecoValidation_no2D = cms.Sequence(rechivalidation*seg2dsuperphivalidation*seg4dvalidation)
54 
55 from Configuration.Eras.Modifier_fastSim_cff import fastSim
56 fastSim.toModify(rechivalidation, simHitLabel = "MuonSimHits:MuonDTHits")
57 fastSim.toModify(seg2dvalidation, simHitLabel = "MuonSimHits:MuonDTHits")
58 fastSim.toModify(seg2dsuperphivalidation, simHitLabel = "MuonSimHits:MuonDTHits")
59 fastSim.toModify(seg4dvalidation, simHitLabel = "MuonSimHits:MuonDTHits")
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1