1 import FWCore.ParameterSet.Config
as cms
5 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
8 MuonCollection = cms.InputTag(
"muons"),
9 TrackCollection = cms.InputTag(
"generalTracks"),
10 VertexLabel = cms.InputTag(
"offlinePrimaryVertices"),
11 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
13 doPrimaryVertexCheck = cms.bool(
True ),
15 ptBin = cms.int32(10),
16 ptMax = cms.double(100),
17 ptMin = cms.double(10),
19 etaBin = cms.int32(8),
20 etaMax = cms.double(2.5),
21 etaMin = cms.double(-2.5),
23 phiBin = cms.int32(8),
24 phiMax = cms.double(3.2),
25 phiMin = cms.double(-3.2),
27 vtxBin = cms.int32(30),
28 vtxMax = cms.double(149.5),
29 vtxMin = cms.double(0.5),
31 ID = cms.string(
"Tight"),
32 folder = cms.string(
"Muons/EfficiencyAnalyzer/")
34 TightMuonEfficiencyAnalyzer_miniAOD =
DQMEDAnalyzer(
'EfficiencyAnalyzer',
36 MuonCollection = cms.InputTag(
"slimmedMuons"),
37 TrackCollection = cms.InputTag(
"generalTracks"),
38 VertexLabel = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
39 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
41 doPrimaryVertexCheck = cms.bool(
True ),
43 ptBin = cms.int32(10),
44 ptMax = cms.double(100),
45 ptMin = cms.double(10),
47 etaBin = cms.int32(8),
48 etaMax = cms.double(2.5),
49 etaMin = cms.double(-2.5),
51 phiBin = cms.int32(8),
52 phiMax = cms.double(3.2),
53 phiMin = cms.double(-3.2),
55 vtxBin = cms.int32(30),
56 vtxMax = cms.double(149.5),
57 vtxMin = cms.double(0.5),
59 ID = cms.string(
"Tight"),
60 folder = cms.string(
"Muons_miniAOD/EfficiencyAnalyzer/")
66 MuonCollection = cms.InputTag(
"muons"),
67 TrackCollection = cms.InputTag(
"generalTracks"),
68 VertexLabel = cms.InputTag(
"offlinePrimaryVertices"),
69 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
71 doPrimaryVertexCheck = cms.bool(
True ),
73 ptBin = cms.int32(10),
74 ptMax = cms.double(100),
75 ptMin = cms.double(10),
77 etaBin = cms.int32(8),
78 etaMax = cms.double(2.5),
79 etaMin = cms.double(-2.5),
81 phiBin = cms.int32(8),
82 phiMax = cms.double(3.2),
83 phiMin = cms.double(-3.2),
85 vtxBin = cms.int32(30),
86 vtxMax = cms.double(149.5),
87 vtxMin = cms.double(0.5),
89 ID = cms.string(
"Loose"),
90 folder = cms.string(
"Muons/EfficiencyAnalyzer/")
93 LooseMuonEfficiencyAnalyzer_miniAOD =
DQMEDAnalyzer(
'EfficiencyAnalyzer',
95 MuonCollection = cms.InputTag(
"slimmedMuons"),
96 TrackCollection = cms.InputTag(
"generalTracks"),
97 VertexLabel = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
98 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
100 doPrimaryVertexCheck = cms.bool(
True ),
102 ptBin = cms.int32(10),
103 ptMax = cms.double(100),
104 ptMin = cms.double(10),
106 etaBin = cms.int32(8),
107 etaMax = cms.double(2.5),
108 etaMin = cms.double(-2.5),
110 phiBin = cms.int32(8),
111 phiMax = cms.double(3.2),
112 phiMin = cms.double(-3.2),
114 vtxBin = cms.int32(30),
115 vtxMax = cms.double(149.5),
116 vtxMin = cms.double(0.5),
118 ID = cms.string(
"Loose"),
119 folder = cms.string(
"Muons_miniAOD/EfficiencyAnalyzer/")
126 MuonCollection = cms.InputTag(
"muons"),
127 TrackCollection = cms.InputTag(
"generalTracks"),
128 VertexLabel = cms.InputTag(
"offlinePrimaryVertices"),
129 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
131 doPrimaryVertexCheck = cms.bool(
True ),
133 ptBin = cms.int32(10),
134 ptMax = cms.double(100),
135 ptMin = cms.double(10),
137 etaBin = cms.int32(8),
138 etaMax = cms.double(2.5),
139 etaMin = cms.double(-2.5),
141 phiBin = cms.int32(8),
142 phiMax = cms.double(3.2),
143 phiMin = cms.double(-3.2),
145 vtxBin = cms.int32(30),
146 vtxMax = cms.double(149.5),
147 vtxMin = cms.double(0.5),
149 ID = cms.string(
"Medium"),
150 folder = cms.string(
"Muons/EfficiencyAnalyzer/")
155 MuonCollection = cms.InputTag(
"slimmedMuons"),
156 TrackCollection = cms.InputTag(
"generalTracks"),
157 VertexLabel = cms.InputTag(
"offlineSlimmedPrimaryVertices"),
158 BeamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
160 doPrimaryVertexCheck = cms.bool(
True ),
162 ptBin = cms.int32(10),
163 ptMax = cms.double(100),
164 ptMin = cms.double(10),
166 etaBin = cms.int32(8),
167 etaMax = cms.double(2.5),
168 etaMin = cms.double(-2.5),
170 phiBin = cms.int32(8),
171 phiMax = cms.double(3.2),
172 phiMin = cms.double(-3.2),
174 vtxBin = cms.int32(30),
175 vtxMax = cms.double(149.5),
176 vtxMin = cms.double(0.5),
177 ID = cms.string(
"Medium"),
178 folder = cms.string(
"Muons_miniAOD/EfficiencyAnalyzer/")
182 EfficiencyAnalyzer = cms.Sequence(TightMuonEfficiencyAnalyzer*LooseMuonEfficiencyAnalyzer*MediumMuonEfficiencyAnalyzer)
184 EfficiencyAnalyzer_miniAOD = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD*LooseMuonEfficiencyAnalyzer_miniAOD*MediumMuonEfficiencyAnalyzer_miniAOD)
186 TightMuonEfficiencyAnalyzer_Phase2=TightMuonEfficiencyAnalyzer.clone(
192 LooseMuonEfficiencyAnalyzer_Phase2=LooseMuonEfficiencyAnalyzer.clone(
198 MediumMuonEfficiencyAnalyzer_Phase2=MediumMuonEfficiencyAnalyzer.clone(
204 TightMuonEfficiencyAnalyzer_miniAOD_Phase2=TightMuonEfficiencyAnalyzer_miniAOD.clone(
210 LooseMuonEfficiencyAnalyzer_miniAOD_Phase2=LooseMuonEfficiencyAnalyzer_miniAOD.clone(
216 MediumMuonEfficiencyAnalyzer_miniAOD_Phase2=MediumMuonEfficiencyAnalyzer.clone(
222 EfficiencyAnalyzer_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_Phase2*LooseMuonEfficiencyAnalyzer_Phase2*MediumMuonEfficiencyAnalyzer_Phase2)
224 EfficiencyAnalyzer_miniAOD_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD_Phase2*LooseMuonEfficiencyAnalyzer_miniAOD_Phase2*MediumMuonEfficiencyAnalyzer_miniAOD_Phase2)
226 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
227 phase2_muon.toReplaceWith(EfficiencyAnalyzer, EfficiencyAnalyzer_Phase2)
228 phase2_muon.toReplaceWith(EfficiencyAnalyzer_miniAOD, EfficiencyAnalyzer_miniAOD_Phase2)