CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
muonEfficiencyAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
6 TightMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
7  MuonServiceProxy,
8  MuonCollection = cms.InputTag("muons"),
9  TrackCollection = cms.InputTag("generalTracks"),
10  VertexLabel = cms.InputTag("offlinePrimaryVertices"),
11  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
12 
13  doPrimaryVertexCheck = cms.bool( True ),
14 
15  ptBin = cms.int32(10),
16  ptMax = cms.double(100),
17  ptMin = cms.double(10),
18 
19  etaBin = cms.int32(8),
20  etaMax = cms.double(2.5),
21  etaMin = cms.double(-2.5),
22 
23  phiBin = cms.int32(8),
24  phiMax = cms.double(3.2),
25  phiMin = cms.double(-3.2),
26 
27  vtxBin = cms.int32(30),
28  vtxMax = cms.double(149.5),
29  vtxMin = cms.double(0.5),
30 
31  ID = cms.string("Tight"),
32  folder = cms.string("Muons/EfficiencyAnalyzer/")
33  )
34 TightMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
35  MuonServiceProxy,
36  MuonCollection = cms.InputTag("slimmedMuons"),
37  TrackCollection = cms.InputTag("generalTracks"),
38  VertexLabel = cms.InputTag("offlineSlimmedPrimaryVertices"),
39  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
40 
41  doPrimaryVertexCheck = cms.bool( True ),
42 
43  ptBin = cms.int32(10),
44  ptMax = cms.double(100),
45  ptMin = cms.double(10),
46 
47  etaBin = cms.int32(8),
48  etaMax = cms.double(2.5),
49  etaMin = cms.double(-2.5),
50 
51  phiBin = cms.int32(8),
52  phiMax = cms.double(3.2),
53  phiMin = cms.double(-3.2),
54 
55  vtxBin = cms.int32(30),
56  vtxMax = cms.double(149.5),
57  vtxMin = cms.double(0.5),
58 
59  ID = cms.string("Tight"),
60  folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer/")
61  )
62 
63 
64 LooseMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
65  MuonServiceProxy,
66  MuonCollection = cms.InputTag("muons"),
67  TrackCollection = cms.InputTag("generalTracks"),
68  VertexLabel = cms.InputTag("offlinePrimaryVertices"),
69  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
70 
71  doPrimaryVertexCheck = cms.bool( True ),
72 
73  ptBin = cms.int32(10),
74  ptMax = cms.double(100),
75  ptMin = cms.double(10),
76 
77  etaBin = cms.int32(8),
78  etaMax = cms.double(2.5),
79  etaMin = cms.double(-2.5),
80 
81  phiBin = cms.int32(8),
82  phiMax = cms.double(3.2),
83  phiMin = cms.double(-3.2),
84 
85  vtxBin = cms.int32(30),
86  vtxMax = cms.double(149.5),
87  vtxMin = cms.double(0.5),
88 
89  ID = cms.string("Loose"),
90  folder = cms.string("Muons/EfficiencyAnalyzer/")
91 
92  )
93 LooseMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
94  MuonServiceProxy,
95  MuonCollection = cms.InputTag("slimmedMuons"),
96  TrackCollection = cms.InputTag("generalTracks"),
97  VertexLabel = cms.InputTag("offlineSlimmedPrimaryVertices"),
98  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
99 
100  doPrimaryVertexCheck = cms.bool( True ),
101 
102  ptBin = cms.int32(10),
103  ptMax = cms.double(100),
104  ptMin = cms.double(10),
105 
106  etaBin = cms.int32(8),
107  etaMax = cms.double(2.5),
108  etaMin = cms.double(-2.5),
109 
110  phiBin = cms.int32(8),
111  phiMax = cms.double(3.2),
112  phiMin = cms.double(-3.2),
113 
114  vtxBin = cms.int32(30),
115  vtxMax = cms.double(149.5),
116  vtxMin = cms.double(0.5),
117 
118  ID = cms.string("Loose"),
119  folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer/")
120 
121  )
122 
123 
124 MediumMuonEfficiencyAnalyzer = DQMEDAnalyzer('EfficiencyAnalyzer',
125  MuonServiceProxy,
126  MuonCollection = cms.InputTag("muons"),
127  TrackCollection = cms.InputTag("generalTracks"),
128  VertexLabel = cms.InputTag("offlinePrimaryVertices"),
129  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
130 
131  doPrimaryVertexCheck = cms.bool( True ),
132 
133  ptBin = cms.int32(10),
134  ptMax = cms.double(100),
135  ptMin = cms.double(10),
136 
137  etaBin = cms.int32(8),
138  etaMax = cms.double(2.5),
139  etaMin = cms.double(-2.5),
140 
141  phiBin = cms.int32(8),
142  phiMax = cms.double(3.2),
143  phiMin = cms.double(-3.2),
144 
145  vtxBin = cms.int32(30),
146  vtxMax = cms.double(149.5),
147  vtxMin = cms.double(0.5),
148 
149  ID = cms.string("Medium"),
150  folder = cms.string("Muons/EfficiencyAnalyzer/")
151  )
152 
153 MediumMuonEfficiencyAnalyzer_miniAOD = DQMEDAnalyzer('EfficiencyAnalyzer',
154  MuonServiceProxy,
155  MuonCollection = cms.InputTag("slimmedMuons"),
156  TrackCollection = cms.InputTag("generalTracks"),
157  VertexLabel = cms.InputTag("offlineSlimmedPrimaryVertices"),
158  BeamSpotLabel = cms.InputTag("offlineBeamSpot"),
159 
160  doPrimaryVertexCheck = cms.bool( True ),
161 
162  ptBin = cms.int32(10),
163  ptMax = cms.double(100),
164  ptMin = cms.double(10),
165 
166  etaBin = cms.int32(8),
167  etaMax = cms.double(2.5),
168  etaMin = cms.double(-2.5),
169 
170  phiBin = cms.int32(8),
171  phiMax = cms.double(3.2),
172  phiMin = cms.double(-3.2),
173 
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/")
179  )
180 
181 
182 EfficiencyAnalyzer = cms.Sequence(TightMuonEfficiencyAnalyzer*LooseMuonEfficiencyAnalyzer*MediumMuonEfficiencyAnalyzer)
183 
184 EfficiencyAnalyzer_miniAOD = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD*LooseMuonEfficiencyAnalyzer_miniAOD*MediumMuonEfficiencyAnalyzer_miniAOD)
185 
186 TightMuonEfficiencyAnalyzer_Phase2=TightMuonEfficiencyAnalyzer.clone(
187  vtxBin=20,
188  vtxMin=149.5,
189  vtxMax=249.5
190 )
191 
192 LooseMuonEfficiencyAnalyzer_Phase2=LooseMuonEfficiencyAnalyzer.clone(
193  vtxBin=20,
194  vtxMin=149.5,
195  vtxMax=249.5
196 )
197 
198 MediumMuonEfficiencyAnalyzer_Phase2=MediumMuonEfficiencyAnalyzer.clone(
199  vtxBin=20,
200  vtxMin=149.5,
201  vtxMax=249.5
202 )
203 
204 TightMuonEfficiencyAnalyzer_miniAOD_Phase2=TightMuonEfficiencyAnalyzer_miniAOD.clone(
205  vtxBin=20,
206  vtxMin=149.5,
207  vtxMax=249.5
208 )
209 
210 LooseMuonEfficiencyAnalyzer_miniAOD_Phase2=LooseMuonEfficiencyAnalyzer_miniAOD.clone(
211  vtxBin=20,
212  vtxMin=149.5,
213  vtxMax=249.5
214 )
215 
216 MediumMuonEfficiencyAnalyzer_miniAOD_Phase2=MediumMuonEfficiencyAnalyzer.clone(
217  vtxBin=20,
218  vtxMin=149.5,
219  vtxMax=249.5
220 )
221 
222 EfficiencyAnalyzer_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_Phase2*LooseMuonEfficiencyAnalyzer_Phase2*MediumMuonEfficiencyAnalyzer_Phase2)
223 
224 EfficiencyAnalyzer_miniAOD_Phase2 = cms.Sequence(TightMuonEfficiencyAnalyzer_miniAOD_Phase2*LooseMuonEfficiencyAnalyzer_miniAOD_Phase2*MediumMuonEfficiencyAnalyzer_miniAOD_Phase2)
225 
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)