CMS 3D CMS Logo

MuonGEMDigis_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 gemStripValidation = DQMEDAnalyzer('GEMStripDigiValidation',
5  outputFile = cms.string(''),
6  stripLabel= cms.InputTag('muonGEMDigis'),
7  simInputLabel = cms.InputTag('g4SimHits',"MuonGEMHits"),
8  # st1, st2 of xbin, st1, st2 of ybin
9  nBinGlobalZR = cms.untracked.vdouble(200,200,150,250),
10  # st1 xmin xmax, st2 xmin xmax, st1 ymin ymax, st2 ymin ymax
11  RangeGlobalZR = cms.untracked.vdouble(564,574,792,802,110,290,120,390),
12  nBinGlobalXY = cms.untracked.int32(360),
13  detailPlot = cms.bool(False),
14 )
15 gemPadValidation = DQMEDAnalyzer('GEMPadDigiValidation',
16  outputFile = cms.string(''),
17  PadLabel = cms.InputTag('simMuonGEMPadDigis'),
18  simInputLabel = cms.InputTag('g4SimHits',"MuonGEMHits"),
19  nBinGlobalZR = cms.untracked.vdouble(200,200,150,250),
20  RangeGlobalZR = cms.untracked.vdouble(564,574,792,802,110,290,120,390),
21  nBinGlobalXY = cms.untracked.int32(360),
22  detailPlot = cms.bool(False),
23 )
24 gemCoPadValidation = DQMEDAnalyzer('GEMCoPadDigiValidation',
25  outputFile = cms.string(''),
26  CopadLabel = cms.InputTag('simCscTriggerPrimitiveDigis') ,
27  simInputLabel = cms.InputTag('g4SimHits',"MuonGEMHits"),
28  nBinGlobalZR = cms.untracked.vdouble(200,200,150,250),
29  RangeGlobalZR = cms.untracked.vdouble(564,574,792,802,110,290,120,390),
30  nBinGlobalXY = cms.untracked.int32(360),
31  detailPlot = cms.bool(False),
32  minBXGEM = cms.int32(-1),
33  maxBXGEM = cms.int32(1),
34 )
35 
36 gemDigiTrackValidation = DQMEDAnalyzer('GEMDigiTrackMatch',
37  simInputLabel = cms.untracked.string('g4SimHits'),
38  simTrackCollection = cms.InputTag('g4SimHits'),
39  simVertexCollection = cms.InputTag('g4SimHits'),
40  verboseSimHit = cms.untracked.int32(0),
41  # GEM digi matching:
42  verboseGEMDigi = cms.untracked.int32(0),
43  gemDigiInput = cms.InputTag("muonGEMDigis"),
44  gemPadDigiInput = cms.InputTag("simMuonGEMPadDigis"),
45  gemCoPadDigiInput = cms.InputTag("simCscTriggerPrimitiveDigis"),
46  minBXGEM = cms.untracked.int32(-1),
47  maxBXGEM = cms.untracked.int32(1),
48  matchDeltaStripGEM = cms.untracked.int32(1),
49  gemMinPt = cms.untracked.double(5.0),
50  gemMinEta = cms.untracked.double(1.55),
51  gemMaxEta = cms.untracked.double(2.45),
52  detailPlot = cms.bool(False),
53 )
54 
55 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
56 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
57 (premix_stage2 & phase2_muon).toModify(gemStripValidation, stripLabel = "mixData")
58 (premix_stage2 & phase2_muon).toModify(gemDigiTrackValidation, gemDigiInput = "mixData")
59 
60 gemGeometryChecker = DQMEDAnalyzer('GEMCheckGeometry',
61  detailPlot = cms.bool(False),
62 )
63 
64 gemDigiValidation = cms.Sequence( gemStripValidation+gemPadValidation+gemCoPadValidation+gemDigiTrackValidation+gemGeometryChecker)
65 
66 from Configuration.Eras.Modifier_run2_GEM_2017_cff import run2_GEM_2017
67 run2_GEM_2017.toReplaceWith(gemDigiValidation, gemDigiValidation.copyAndExclude([gemPadValidation,gemCoPadValidation]))