CMS 3D CMS Logo

DTRecHitQualityAll_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(True),
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(True),
15  local = cms.untracked.bool(False)
16 
17 )
18 
19 seg2dvalidation = cms.EDAnalyzer("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 = cms.EDAnalyzer("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(True),
34  local = cms.untracked.bool(False)
35  )
36 
37 seg4dvalidation = cms.EDAnalyzer("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(True),
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 if fastSim.isChosen():
57  rechivalidation.simHitLabel = cms.untracked.InputTag("MuonSimHits","MuonDTHits")
58  seg2dvalidation.simHitLabel = cms.untracked.InputTag("MuonSimHits","MuonDTHits")
59  seg2dsuperphivalidation.simHitLabel = cms.untracked.InputTag("MuonSimHits","MuonDTHits")
60  seg4dvalidation.simHitLabel = cms.untracked.InputTag("MuonSimHits","MuonDTHits")
61