CMS 3D CMS Logo

HLTObjectMonitor_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #setup names for multiple plots that use the same paths+modules
4 photon_pathName = "HLT_DoublePhoton33_CaloIdL" # "HLT_Photon30_R9Id90_HE10_IsoM"
5 photon_moduleName = "hltEG33CaloIdLClusterShapeFilter" # "hltEG30R9Id90HE10IsoMTrackIsoFilter"
6 
7 muon_pathName = "HLT_IsoMu27"
8 muon_moduleName = "hltL3crIsoL1sMu22Or25L1f0L2f10QL3f27QL3trkIsoFiltered0p07" # "hltL3crIsoL1sMu22Or25L1f0L2f10QL3f27QL3trkIsoFiltered0p09"
9 
10 l2muon_pathName = "HLT_L2Mu10"
11 l2muon_moduleName = "hltL2fL1sMu22L1f0L2Filtered10Q"
12 
13 l2NoBPTXmuon_pathName = "HLT_L2Mu40_NoVertex_3Sta_NoBPTX3BX" # "HLT_L2Mu10_NoVertex_NoBPTX3BX"
14 l2NoBPTXmuon_moduleName = "hltL2fL1sMuOpenNotBptxORNoHaloMu3BXL1f0NoVtxCosmicSeedMeanTimerL2Filtered40Sta3" # "hltL2fL1sMuOpenNotBptxORNoHaloMu3BXL1f0NoVtxCosmicSeedMeanTimerL2Filtered10"
15 
16 electron_pathName = "HLT_Ele38_WPTight_Gsf" # "HLT_Ele23_WPLoose_Gsf"
17 electron_moduleName = "hltEle38noerWPTightGsfTrackIsoFilter" # "hltEle23WPLooseGsfTrackIsoFilter"
18 
19 caloMet_pathName = "HLT_MET60_IsoTrk35_Loose"
20 caloMet_moduleName = "hltMET60"
21 
22 pfMet_pathName = "HLT_PFMET110_PFMHT110_IDTight" # "HLT_PFMET120_PFMHT120_IDTight"
23 pfMet_moduleName = "hltPFMET110" # "hltPFMET120"
24 
25 jetAk8_pathName = "HLT_AK8PFJet400_TrimMass30" # "HLT_AK8PFJet360_TrimMass30"
26 jetAk8_moduleName = "hltAK8SinglePFJet400TrimModMass30" # "hltAK8SinglePFJet360TrimModMass30"
27 
28 rsq_mr_pathName = "HLT_RsqMR240_Rsq0p09_MR200"
29 rsq_mr_moduleName = "hltRsqMR240Rsq0p09MR200"
30 
31 bJet_pathNameCalo = "HLT_DoubleJets100_DoubleBTagCSV_0p92_DoublePFJets128MaxDeta1p6" # "HLT_PFMET120_BTagCSV_p067"
32 bJet_moduleNameCalo = "hltBTagCalo80x6CSVp0p92DoubleWithMatching" # "hltBTagCaloCSVp067Single"
33 
34 bJet_pathNamePF = "HLT_PFHT380_SixJet32_DoubleBTagCSV_p075" # "HLT_QuadPFJet_BTagCSV_p016_VBF_Mqq500"
35 bJet_moduleNamePF = "hltBTagPFCSVp075Double" # "hltBTagPFCSVp016SingleWithMatching"
36 
37 #To avoid booking histogram, set pathName = cms.string("")
38 
39 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
40 hltObjectMonitor = DQMEDAnalyzer('HLTObjectMonitor',
41  processName = cms.string("HLT"),
42  alphaT = cms.PSet(
43  pathName = cms.string("HLT_PFHT200_DiPFJetAve90_PFAlphaT0p63"),
44  moduleName = cms.string("hltPFHT200PFAlphaT0p63"),
45  axisLabel = cms.string("Alpha_{T}"),
46  plotLabel = cms.string("alphaT"),
47  mainWorkspace = cms.bool(True),
48  NbinsX = cms.int32(30),
49  Xmin = cms.double(0),
50  Xmax = cms.double(5)
51  ),
52  photonPt = cms.PSet(
53  pathName = cms.string(photon_pathName),
54  moduleName = cms.string(photon_moduleName),
55  plotLabel = cms.string("Photon_pT"),
56  axisLabel = cms.string("photon p_{T} [GeV]"),
57  mainWorkspace = cms.bool(True),
58  NbinsX = cms.int32(100),
59  Xmin = cms.double(0),
60  Xmax = cms.double(200)
61  ),
62  photonEta = cms.PSet(
63  pathName = cms.string(photon_pathName),
64  moduleName = cms.string(photon_moduleName),
65  plotLabel = cms.string("Photon_eta"),
66  axisLabel = cms.string("photon eta"),
67  mainWorkspace = cms.bool(False),
68  NbinsX = cms.int32(50),
69  Xmin = cms.double(-3),
70  Xmax = cms.double(3)
71  ),
72  photonPhi = cms.PSet(
73  pathName = cms.string(photon_pathName),
74  moduleName = cms.string(photon_moduleName),
75  plotLabel = cms.string("Photon_phi"),
76  axisLabel = cms.string("photon phi"),
77  mainWorkspace = cms.bool(False),
78  NbinsX = cms.int32(50),
79  Xmin = cms.double(-3.4),
80  Xmax = cms.double(3.4)
81  ),
82  muonPt = cms.PSet(
83  pathName = cms.string(muon_pathName),
84  moduleName = cms.string(muon_moduleName),
85  plotLabel = cms.string("Muon_pT"),
86  axisLabel = cms.string("muon p_{T} [GeV]"),
87  mainWorkspace = cms.bool(True),
88  NbinsX = cms.int32(75),
89  Xmin = cms.double(0),
90  Xmax = cms.double(150)
91  ),
92  muonEta = cms.PSet(
93  pathName = cms.string(muon_pathName),
94  moduleName = cms.string(muon_moduleName),
95  plotLabel = cms.string("Muon_eta"),
96  axisLabel = cms.string("muon eta"),
97  mainWorkspace = cms.bool(False),
98  NbinsX = cms.int32(50),
99  Xmin = cms.double(-3),
100  Xmax = cms.double(3)
101  ),
102  muonPhi = cms.PSet(
103  pathName = cms.string(muon_pathName),
104  moduleName = cms.string(muon_moduleName),
105  plotLabel = cms.string("Muon_phi"),
106  axisLabel = cms.string("muon phi"),
107  mainWorkspace = cms.bool(False),
108  NbinsX = cms.int32(50),
109  Xmin = cms.double(-3.4),
110  Xmax = cms.double(3.4)
111  ),
112  l2muonPt = cms.PSet(
113  pathName = cms.string(l2muon_pathName),
114  moduleName = cms.string(l2muon_moduleName),
115  plotLabel = cms.string("L2Muon_pT"),
116  axisLabel = cms.string("L2 muon p_{T} [GeV]"),
117  mainWorkspace = cms.bool(True),
118  NbinsX = cms.int32(75),
119  Xmin = cms.double(0),
120  Xmax = cms.double(150)
121  ),
122  l2muonEta = cms.PSet(
123  pathName = cms.string(l2muon_pathName),
124  moduleName = cms.string(l2muon_moduleName),
125  plotLabel = cms.string("L2Muon_eta"),
126  axisLabel = cms.string("L2 muon eta"),
127  mainWorkspace = cms.bool(False),
128  NbinsX = cms.int32(50),
129  Xmin = cms.double(-3),
130  Xmax = cms.double(3)
131  ),
132  l2muonPhi = cms.PSet(
133  pathName = cms.string(l2muon_pathName),
134  moduleName = cms.string(l2muon_moduleName),
135  plotLabel = cms.string("L2Muon_phi"),
136  axisLabel = cms.string("L2 muon phi"),
137  mainWorkspace = cms.bool(False),
138  NbinsX = cms.int32(50),
139  Xmin = cms.double(-3.4),
140  Xmax = cms.double(3.4)
141  ),
142  l2NoBPTXmuonPt = cms.PSet(
143  pathName = cms.string(l2NoBPTXmuon_pathName),
144  moduleName = cms.string(l2NoBPTXmuon_moduleName),
145  plotLabel = cms.string("L2NoBPTXMuon_pT"),
146  axisLabel = cms.string("L2 No BPTX muon p_{T} [GeV]"),
147  mainWorkspace = cms.bool(True),
148  NbinsX = cms.int32(75),
149  Xmin = cms.double(0),
150  Xmax = cms.double(150)
151  ),
152  l2NoBPTXmuonEta = cms.PSet(
153  pathName = cms.string(l2NoBPTXmuon_pathName),
154  moduleName = cms.string(l2NoBPTXmuon_moduleName),
155  plotLabel = cms.string("L2NoBPTXMuon_eta"),
156  axisLabel = cms.string("L2 NoBPTX muon eta"),
157  mainWorkspace = cms.bool(False),
158  NbinsX = cms.int32(50),
159  Xmin = cms.double(-3),
160  Xmax = cms.double(3)
161  ),
162  l2NoBPTXmuonPhi = cms.PSet(
163  pathName = cms.string(l2NoBPTXmuon_pathName),
164  moduleName = cms.string(l2NoBPTXmuon_moduleName),
165  plotLabel = cms.string("L2NoBPTXMuon_phi"),
166  axisLabel = cms.string("L2 NoBPTX muon phi"),
167  mainWorkspace = cms.bool(False),
168  NbinsX = cms.int32(50),
169  Xmin = cms.double(-3.4),
170  Xmax = cms.double(3.4)
171  ),
172  electronPt = cms.PSet(
173  pathName = cms.string(electron_pathName),
174  moduleName = cms.string(electron_moduleName),
175  plotLabel = cms.string("Electron_pT"),
176  axisLabel = cms.string("electron p_{T} [GeV]"),
177  mainWorkspace = cms.bool(True),
178  NbinsX = cms.int32(75),
179  Xmin = cms.double(0),
180  Xmax = cms.double(150)
181  ),
182  electronEta = cms.PSet(
183  pathName = cms.string(electron_pathName),
184  moduleName = cms.string(electron_moduleName),
185  plotLabel = cms.string("Electron_eta"),
186  axisLabel = cms.string("electron eta"),
187  mainWorkspace = cms.bool(False),
188  NbinsX = cms.int32(50),
189  Xmin = cms.double(-3),
190  Xmax = cms.double(3)
191  ),
192  electronPhi = cms.PSet(
193  pathName = cms.string(electron_pathName),
194  moduleName = cms.string(electron_moduleName),
195  plotLabel = cms.string("Electron_phi"),
196  axisLabel = cms.string("electron phi"),
197  mainWorkspace = cms.bool(False),
198  NbinsX = cms.int32(50),
199  Xmin = cms.double(-3.4),
200  Xmax = cms.double(3.4)
201  ),
202  jetPt = cms.PSet(
203  pathName = cms.string("HLT_PFJet200"),
204  moduleName = cms.string("hltSinglePFJet200"),
205  plotLabel = cms.string("Jet_pT"),
206  axisLabel = cms.string("jet p_{T} [GeV]"),
207  mainWorkspace = cms.bool(True),
208  NbinsX = cms.int32(75),
209  Xmin = cms.double(150),
210  Xmax = cms.double(550)
211  ),
212  jetAK8Pt = cms.PSet(
213  pathName = cms.string(jetAk8_pathName),
214  moduleName = cms.string(jetAk8_moduleName),
215  axisLabel = cms.string("AK8 jet p_{T} [GeV]"),
216  plotLabel = cms.string("JetAK8_Pt"),
217  mainWorkspace = cms.bool(True),
218  NbinsX = cms.int32(75),
219  Xmin = cms.double(300),
220  Xmax = cms.double(750)
221  ),
222  jetAK8Mass = cms.PSet(
223  pathName = cms.string(jetAk8_pathName),
224  moduleName = cms.string(jetAk8_moduleName),
225  plotLabel = cms.string("JetAK8_mass"),
226  axisLabel = cms.string("AK8 jet mass [GeV]"),
227  mainWorkspace = cms.bool(True),
228  NbinsX = cms.int32(100),
229  Xmin = cms.double(0),
230  Xmax = cms.double(200)
231  ),
232  tauPt = cms.PSet(
233  pathName = cms.string("HLT_IsoMu24_eta2p1_MediumChargedIsoPFTau35_Trk1_eta2p1_Reg_CrossL1"), # HLT_DoubleMediumIsoPFTau40_Trk1_eta2p1_Reg"),
234  moduleName = cms.string("hltOverlapFilterIsoMu24MediumChargedIsoPFTau35MonitoringReg"), #hltDoublePFTau40TrackPt1MediumIsolationDz02Reg"),
235  axisLabel = cms.string("tau p_{T} [GeV]"),
236  plotLabel = cms.string("Tau_pT"),
237  mainWorkspace = cms.bool(True),
238  NbinsX = cms.int32(75),
239  Xmin = cms.double(30),
240  Xmax = cms.double(350)
241  ),
242  diMuonLowMass = cms.PSet(
243  pathName = cms.string("HLT_DoubleMu4_3_Jpsi_Displaced"),
244  moduleName = cms.string("hltDisplacedmumuFilterDoubleMu43Jpsi"),
245  plotLabel = cms.string("Dimuon_LowMass"),
246  axisLabel = cms.string("di-muon low mass [GeV]"),
247  mainWorkspace = cms.bool(True),
248  NbinsX = cms.int32(100),
249  Xmin = cms.double(2.5),
250  Xmax = cms.double(3.5)
251  ),
252  caloMetPt = cms.PSet(
253  pathName = cms.string(caloMet_pathName),
254  moduleName = cms.string(caloMet_moduleName),
255  plotLabel = cms.string("CaloMET_pT"),
256  axisLabel = cms.string("calo MET p_{T} [GeV]"),
257  mainWorkspace = cms.bool(True),
258  NbinsX = cms.int32(60),
259  Xmin = cms.double(50),
260  Xmax = cms.double(250)
261  ),
262  caloMetPhi = cms.PSet(
263  pathName = cms.string(caloMet_pathName),
264  moduleName = cms.string(caloMet_moduleName),
265  plotLabel = cms.string("CaloMET_phi"),
266  axisLabel = cms.string("calo MET phi"),
267  mainWorkspace = cms.bool(False),
268  NbinsX = cms.int32(50),
269  Xmin = cms.double(-3.4),
270  Xmax = cms.double(3.4)
271  ),
272  pfMetPt = cms.PSet(
273  pathName = cms.string(pfMet_pathName),
274  moduleName = cms.string(pfMet_moduleName),
275  plotLabel = cms.string("PFMET_pT"),
276  axisLabel = cms.string("PF MET p_{T} [GeV]"),
277  mainWorkspace = cms.bool(True),
278  NbinsX = cms.int32(60),
279  Xmin = cms.double(100),
280  Xmax = cms.double(500)
281  ),
282  pfMetPhi = cms.PSet(
283  pathName = cms.string(pfMet_pathName),
284  moduleName = cms.string(pfMet_moduleName),
285  plotLabel = cms.string("PFMET_phi"),
286  axisLabel = cms.string("PF MET phi"),
287  mainWorkspace = cms.bool(False),
288  NbinsX = cms.int32(50),
289  Xmin = cms.double(-3.4),
290  Xmax = cms.double(3.4)
291  ),
292  caloHtPt = cms.PSet(
293  pathName = cms.string("HLT_HT650_DisplacedDijet80_Inclusive"),
294  moduleName = cms.string("hltHT650"),
295  plotLabel = cms.string("CaloHT_pT"),
296  axisLabel = cms.string("calo HT p_{T} [GeV]"),
297  mainWorkspace = cms.bool(True),
298  NbinsX = cms.int32(200),
299  Xmin = cms.double(0),
300  Xmax = cms.double(2000)
301  ),
302  pfHtPt = cms.PSet(
303  pathName = cms.string("HLT_PFHT750_4JetPt50"),
304  moduleName = cms.string("hltPF4JetPt50HT750"),
305  plotLabel = cms.string("PFHT_pT"),
306  axisLabel = cms.string("PF HT p_{T} [GeV]"),
307  mainWorkspace = cms.bool(True),
308  NbinsX = cms.int32(200),
309  Xmin = cms.double(0),
310  Xmax = cms.double(2000)
311  ),
312  bJetEta = cms.PSet(
313  pathName = cms.string(bJet_pathNameCalo),
314  moduleName = cms.string(bJet_moduleNameCalo),
315  pathName_OR = cms.string(bJet_pathNamePF),
316  moduleName_OR = cms.string(bJet_moduleNamePF),
317  plotLabel = cms.string("bJet_eta"),
318  axisLabel = cms.string("b-jet eta"),
319  mainWorkspace = cms.bool(False),
320  NbinsX = cms.int32(50),
321  Xmin = cms.double(-3),
322  Xmax = cms.double(3)
323  ),
324  bJetPhi = cms.PSet(
325  pathName = cms.string(bJet_pathNameCalo),
326  moduleName = cms.string(bJet_moduleNameCalo),
327  pathName_OR = cms.string(bJet_pathNamePF),
328  moduleName_OR = cms.string(bJet_moduleNamePF),
329  plotLabel = cms.string("bJet_phi"),
330  axisLabel = cms.string("b-jet phi"),
331  mainWorkspace = cms.bool(False),
332  NbinsX = cms.int32(50),
333  Xmin = cms.double(-3.4),
334  Xmax = cms.double(3.4)
335  ),
336  bJetCSVCalo = cms.PSet(
337  pathName = cms.string(bJet_pathNameCalo),
338  moduleName = cms.string(bJet_moduleNameCalo),
339  plotLabel = cms.string("bJetCSVCalo"),
340  axisLabel = cms.string("calo b-jet CSV"),
341  mainWorkspace = cms.bool(True),
342  NbinsX = cms.int32(110),
343  Xmin = cms.double(0),
344  Xmax = cms.double(1)
345  ),
346  bJetCSVPF = cms.PSet(
347  pathName = cms.string(bJet_pathNamePF),
348  moduleName = cms.string(bJet_moduleNamePF),
349  plotLabel = cms.string("bJetCSVPF"),
350  axisLabel = cms.string("PF b-jet CSV"),
351  mainWorkspace = cms.bool(True),
352  NbinsX = cms.int32(110),
353  Xmin = cms.double(0),
354  Xmax = cms.double(1)
355  ),
356  rsq = cms.PSet(
357  pathName = cms.string(rsq_mr_pathName),
358  moduleName = cms.string(rsq_mr_moduleName),
359  plotLabel = cms.string("Rsq"),
360  axisLabel = cms.string("R^{2}"),
361  mainWorkspace = cms.bool(True),
362  NbinsX = cms.int32(30),
363  Xmin = cms.double(0),
364  Xmax = cms.double(2)
365  ),
366  mr = cms.PSet(
367  pathName = cms.string(rsq_mr_pathName),
368  moduleName = cms.string(rsq_mr_moduleName),
369  plotLabel = cms.string("mr"),
370  axisLabel = cms.string("M_{R} [GeV]"),
371  mainWorkspace = cms.bool(True),
372  NbinsX = cms.int32(50),
373  Xmin = cms.double(0),
374  Xmax = cms.double(2000)
375  ),
376  diMuonMass = cms.PSet(
377  pathName = cms.string("HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ"),
378  moduleName = cms.string("hltDiMuonGlb17Glb8RelTrkIsoFiltered0p4"), #hltDiMuonGlb17Glb8RelTrkIsoFiltered0p4DzFiltered0p2"),
379  pathName_OR = cms.string("HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ"),
380  moduleName_OR = cms.string("hltDiMuonGlb17Glb8RelTrkIsoFiltered0p4"), # hltDiMuonGlb17Trk8RelTrkIsoFiltered0p4DzFiltered0p2"),
381  plotLabel = cms.string("diMuon_Mass"),
382  axisLabel = cms.string("dimuon mass [GeV]"),
383  mainWorkspace = cms.bool(True),
384  NbinsX = cms.int32(50),
385  Xmin = cms.double(60),
386  Xmax = cms.double(160)
387  ),
388  pAL1DoubleMuZMass = cms.PSet(
389  pathName = cms.string("HLT_PAL1DoubleMu10"),
390  moduleName = cms.string("hltL1fL1sDoubleMu10BptxANDL1Filtered0"),
391  plotLabel = cms.string("PAL1DoubleMu10_ZMass"),
392  axisLabel = cms.string("dimuon mass [GeV]"),
393  mainWorkspace = cms.bool(True),
394  NbinsX = cms.int32(50),
395  Xmin = cms.double(60.0),
396  Xmax = cms.double(160.0)
397  ),
398  pAL2DoubleMuZMass = cms.PSet(
399  pathName = cms.string("HLT_PAL2DoubleMu10"),
400  moduleName = cms.string("hltL2fL1sDoubleMu10BptxANDL1f0L2Filtered10"),
401  plotLabel = cms.string("PAL2DoubleMu10_ZMass"),
402  axisLabel = cms.string("dimuon mass [GeV]"),
403  mainWorkspace = cms.bool(True),
404  NbinsX = cms.int32(50),
405  Xmin = cms.double(60.0),
406  Xmax = cms.double(160.0)
407  ),
408  pAL3DoubleMuZMass = cms.PSet(
409  pathName = cms.string("HLT_PAL3DoubleMu10"),
410  moduleName = cms.string("hltL3fL1sDoubleMu10BptxANDL1f0L2f10L3Filtered10"),
411  plotLabel = cms.string("PAL3DoubleMu10_ZMass"),
412  axisLabel = cms.string("dimuon mass [GeV]"),
413  mainWorkspace = cms.bool(True),
414  NbinsX = cms.int32(50),
415  Xmin = cms.double(60.0),
416  Xmax = cms.double(160.0)
417  ),
418  diElecMass = cms.PSet(
419  pathName = cms.string("HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_DZ"),
420  moduleName = cms.string("hltEle23Ele12CaloIdLTrackIdLIsoVLDZFilter"),
421  plotLabel = cms.string("di-Electron_Mass"),
422  axisLabel = cms.string("di-electron mass [GeV]"),
423  mainWorkspace = cms.bool(True),
424  NbinsX = cms.int32(50),
425  Xmin = cms.double(0),
426  Xmax = cms.double(160)
427  ),
428  muonDxy = cms.PSet(
429  pathName = cms.string("HLT_DoubleMu18NoFiltersNoVtx"),
430  moduleName = cms.string("hltL3fDimuonL1f0L2NVf10L3NoFiltersNoVtxFiltered18"),
431  plotLabel = cms.string("Muon_dxy"),
432  axisLabel = cms.string("muon d_{xy} [mm]"),
433  mainWorkspace = cms.bool(True),
434  NbinsX = cms.int32(2000),
435  Xmin = cms.double(-10),
436  Xmax = cms.double(10)
437  ),
438  wallTime = cms.PSet(
439  pathName = cms.string("wall time per event"),
440  moduleName = cms.string(""),
441  plotLabel = cms.string("wallTime"),
442  axisLabel = cms.string("wall time per event [seconds]"),
443  mainWorkspace = cms.bool(True),
444  NbinsX = cms.int32(1000),
445  Xmin = cms.double(0),
446  Xmax = cms.double(0.005)
447  )
448 
449 )