CMS 3D CMS Logo

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