CMS 3D CMS Logo

topSingleLeptonHLTEventDQM_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 topSingleLeptonHLTOfflineDQM = DQMEDAnalyzer('TopSingleLeptonHLTOfflineDQM',
5  ## ------------------------------------------------------
6  ## SETUP
7 
11  setup = cms.PSet(
12  ## sub-directory to write the monitor histograms to
13  ## [mandatory] : should not be changed w/o explicit
14  ## communication to TopCom!
15  directory = cms.string("HLT/TOP/SemiLeptonic/"),
16  ## [mandatory]
17  sources = cms.PSet(
18  muons = cms.InputTag("muons"),
19  elecs = cms.InputTag("gedGsfElectrons"),
20  jets = cms.InputTag("ak4PFJetsCHS"),
21  mets = cms.VInputTag("met", "tcMet", "pfMet"),
22  pvs = cms.InputTag("offlinePrimaryVertices")
23  ),
24  ## [optional] : when omitted all monitoring plots for primary vertices
25  ## will be filled w/o extras
26  pvExtras = cms.PSet(
27  ## when omitted electron plots will be filled w/o additional pre-
28  ## selection of the primary vertex candidates
29  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
30  ),
31  ## [optional] : when omitted all monitoring plots for electrons
32  ## will be filled w/o extras
33  elecExtras = cms.PSet(
34  ## when omitted electron plots will be filled w/o cut on electronId
35  electronId = cms.PSet( src = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Fall17-94X-V1-tight"), pattern = cms.int32(1) ),
36  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
37  ## when omitted electron plots will be filled w/o additional pre-
38  ## selection of the electron candidates
39  select = cms.string("pt>30 & abs(eta)<2.5"),
40  ## when omitted isolated electron multiplicity plot will be equi-
41  ## valent to inclusive electron multiplicity plot
42  #isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
43  ),
44  ## [optional] : when omitted all monitoring plots for muons
45  ## will be filled w/o extras
46  muonExtras = cms.PSet(
47  ## when omitted muon plots will be filled w/o additional pre-
48  ## selection of the muon candidates
49  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
50  ## when omitted isolated muon multiplicity plot will be equi-
51  ## valent to inclusive muon multiplicity plot
52  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
53  ),
54  ## [optional] : when omitted all monitoring plots for jets will
55  ## be filled from uncorrected jets
56  jetExtras = cms.PSet(
57  ## when omitted monitor plots for pt will be filled from uncorrected
58  ## jets
59  #jetCorrector = cms.string("ak4PFCHSL2L3"),
60  ## when omitted no extra selection will be applied on jets before
61  ## filling the monitor histograms; if jetCorrector is present the
62  ## selection will be applied to corrected jets
63  select = cms.string("pt>20 & abs(eta)<2.5"),
64  ),
65  ## [optional] : when omitted no mass window will be applied
66  ## for the W mass befor filling the event monitoring plots
67  massExtras = cms.PSet(
68  lowerEdge = cms.double( 70.),
69  upperEdge = cms.double(110.)
70  ),
71  ## [optional] : when omitted the monitoring plots for triggering
72  ## will be empty
73  #triggerExtras = cms.PSet(
74  # src = cms.InputTag("TriggerResults","","HLT"),
75  # paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
76  # 'HLT_Mu5:HLT_QuadJet15U',
77  # 'HLT_Mu7:HLT_QuadJet15U',
78  # 'HLT_Mu9:HLT_QuadJet15U'])
79  #)
80  ),
81  ## ------------------------------------------------------
82  ## PRESELECTION
83 
88  preselection = cms.PSet(
89  trigger = cms.PSet(
90  src = cms.InputTag("TriggerResults","","HLT"),
91 ### Updating to HLT paths to be monitored by TOP PAG in 2017
92  select = cms.vstring(['HLT_IsoMu27_v',
93  'HLT_Mu50_v'
94  'HLT_Ele35_WPTight_Gsf_v',
95  'HLT_Ele38_WPTight_Gsf_v',
96  'HLT_Ele40_WPTight_Gsf_v',
97 
98  ]),
99  ),
100  ## [optional] : when omitted no preselection is applied
101  vertex = cms.PSet(
102  src = cms.InputTag("offlinePrimaryVertices"),
103  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
104  )
105  ),
106  ## ------------------------------------------------------
107  ## SELECTION
108 
115  selection = cms.VPSet(
116  cms.PSet(
117  label = cms.string("Hlt:step0"),
118  src = cms.InputTag(""),
119  select = cms.string(""),
120  min = cms.int32(0),
121  max = cms.int32(0),
122  ),
123  cms.PSet(
124  label = cms.string("jets/pf:step1"),
125  src = cms.InputTag("ak4PFJetsCHS"),
126  select = cms.string("pt>20 & abs(eta)<2.5"),
127  min = cms.int32(4),
128  ),
129  )
130 )
131 
132 topSingleMuonHLTOfflineDQM = DQMEDAnalyzer('TopSingleLeptonHLTOfflineDQM',
133  ## ------------------------------------------------------
134  ## SETUP
135 
139  setup = cms.PSet(
140  ## sub-directory to write the monitor histograms to
141  ## [mandatory] : should not be changed w/o explicit
142  ## communication to TopCom!
143  directory = cms.string("HLT/TOP/SemiMuonic/"),
144  ## [mandatory]
145  sources = cms.PSet(
146  muons = cms.InputTag("muons"),
147  elecs = cms.InputTag("gedGsfElectrons"),
148  jets = cms.InputTag("ak4PFJetsCHS"),
149  mets = cms.VInputTag("met", "tcMet", "pfMet"),
150  pvs = cms.InputTag("offlinePrimaryVertices")
151 
152  ),
153  ## [optional] : when omitted all monitoring plots for primary vertices
154  ## will be filled w/o extras
155  pvExtras = cms.PSet(
156  ## when omitted electron plots will be filled w/o additional pre-
157  ## selection of the primary vertex candidates
158  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
159  ),
160  ## [optional] : when omitted all monitoring plots for muons
161  ## will be filled w/o extras
162  muonExtras = cms.PSet(
163  ## when omitted muon plots will be filled w/o additional pre-
164  ## selection of the muon candidates
165  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
166  ## when omitted isolated muon multiplicity plot will be equi-
167  ## valent to inclusive muon multiplicity plot
168  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
169  ),
170  ## [optional] : when omitted all monitoring plots for jets
171  ## will be filled w/o extras
172  jetExtras = cms.PSet(
173  ## when omitted monitor plots for pt will be filled from uncorrected
174  ## jets
175  #jetCorrector = cms.string("ak4PFCHSL2L3"),
176  ## when omitted no extra selection will be applied on jets before
177  ## filling the monitor histograms; if jetCorrector is present the
178  ## selection will be applied to corrected jets
179  select = cms.string("pt>20 & abs(eta)<2.5"),
180  ## when omitted monitor histograms for b-tagging will not be filled
181  jetBTaggers = cms.PSet(
182  trackCountingEff = cms.PSet(
183  label = cms.InputTag("pfJetProbabilityBJetTags" ),
184  workingPoint = cms.double(0.275)
185  ),
186 # trackCountingPur = cms.PSet(
187 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
188 # workingPoint = cms.double(3.41)
189 # ),
190  secondaryVertex = cms.PSet(
191  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
192  workingPoint = cms.double(0.890)
193  )
194  ),
195  ),
196  ## [optional] : when omitted no mass window will be applied
197  ## for the W mass before filling the event monitoring plots
198  massExtras = cms.PSet(
199  lowerEdge = cms.double( 70.),
200  upperEdge = cms.double(110.)
201  ),
202  ## [optional] : when omitted the monitoring plots for triggering
203  ## will be empty
204  triggerExtras = cms.PSet(
205  src = cms.InputTag("TriggerResults","","HLT"),
206 ### Updating to HLT paths to be monitored by TOP PAG in 2017
207  paths = cms.vstring(['HLT_IsoMu27_v',
208  'HLT_Mu50_v'])
209  )
210  ),
211  ## ------------------------------------------------------
212  ## PRESELECTION
213 
218  preselection = cms.PSet(
219  trigger = cms.PSet(
220  src = cms.InputTag("TriggerResults","","HLT"),
221 ### Updating to HLT paths to be monitored by TOP PAG in 2017
222  select = cms.vstring(['HLT_IsoMu27_v',
223  'HLT_Mu50_v'])
224  ),
225  ## [optional] : when omitted no preselection is applied
226  vertex = cms.PSet(
227  src = cms.InputTag("offlinePrimaryVertices"),
228  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
229  )
230  ),
231  ## ------------------------------------------------------
232  ## SELECTION
233 
239  selection = cms.VPSet(
240  cms.PSet(
241  label = cms.string("Hlt:step0"),
242  src = cms.InputTag(""),
243  select = cms.string(""),
244  min = cms.int32(0),
245  max = cms.int32(0),
246  ),
247  cms.PSet(
248  label = cms.string("muons:step1"),
249  src = cms.InputTag("muons"),
250  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1 & (pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.12"),
251  min = cms.int32(1),
252  max = cms.int32(1),
253  ),
254 # cms.PSet(
255 # label = cms.string("jets/pf:step2"),
256 # src = cms.InputTag("ak4PFJetsCHS"),
257 # jetCorrector = cms.string("ak4PFCHSL2L3"),
258 # select = cms.string("pt>20 & abs(eta)<2.5"),
259 # min = cms.int32(1),
260 # ),
261 # cms.PSet(
262 # label = cms.string("jets/pf:step3"),
263 # src = cms.InputTag("ak4PFJetsCHS"),
264 # jetCorrector = cms.string("ak4PFCHSL2L3"),
265 # select = cms.string("pt>20 & abs(eta)<2.5"),
266 # min = cms.int32(2),
267 # ),
268 # cms.PSet(
269 # label = cms.string("jets/pf:step4"),
270 # src = cms.InputTag("ak4PFJetsCHS"),
271 # jetCorrector = cms.string("ak4PFCHSL2L3"),
272 # select = cms.string("pt>20 & abs(eta)<2.5"),
273 # min = cms.int32(3),
274 # ),
275  cms.PSet(
276 # label = cms.string("jets/pf:step5"),
277  label = cms.string("jets/pf:step2"),
278  src = cms.InputTag("ak4PFJetsCHS"),
279  #jetCorrector = cms.string("ak4PFCHSL2L3"),
280  select = cms.string("pt>20 & abs(eta)<2.5"),
281  min = cms.int32(4),
282  ),
283  )
284 )
285 
286 topSingleElectronHLTOfflineDQM = DQMEDAnalyzer('TopSingleLeptonHLTOfflineDQM',
287  ## ------------------------------------------------------
288  ## SETUP
289 
293  setup = cms.PSet(
294  ## sub-directory to write the monitor histograms to
295  ## [mandatory] : should not be changed w/o explicit
296  ## communication to TopCom!
297  directory = cms.string("HLT/TOP/SemiElectronic/"),
298  ## [mandatory]
299  sources = cms.PSet(
300  muons = cms.InputTag("muons"),
301  elecs = cms.InputTag("gedGsfElectrons"),
302  jets = cms.InputTag("ak4PFJetsCHS"),
303  mets = cms.VInputTag("met", "tcMet", "pfMet"),
304  pvs = cms.InputTag("offlinePrimaryVertices")
305 
306  ),
307  ## [optional] : when omitted all monitoring plots for primary vertices
308  ## will be filled w/o extras
309  pvExtras = cms.PSet(
310  ## when omitted electron plots will be filled w/o additional pre-
311  ## selection of the primary vertex candidates
312  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
313  ),
314  ## [optional] : when omitted all monitoring plots for electrons
315  ## will be filled w/o extras
316  elecExtras = cms.PSet(
317  ## when omitted electron plots will be filled w/o cut on electronId
318  electronId = cms.PSet( src = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Fall17-94X-V1-tight"), pattern = cms.int32(1) ),
319  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
320  ## when omitted electron plots will be filled w/o additional pre-
321  ## selection of the electron candidates
322  select = cms.string("pt>30 & abs(eta)<2.5"),
323  ## when omitted isolated electron multiplicity plot will be equi-
324  ## valent to inclusive electron multiplicity plot
325  #isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
326  ),
327  ## [optional] : when omitted all monitoring plots for jets
328  ## will be filled w/o extras
329  jetExtras = cms.PSet(
330  ## when omitted monitor plots for pt will be filled from uncorrected
331  ## jets
332  #jetCorrector = cms.string("ak4PFCHSL2L3"),
333  ## when omitted no extra selection will be applied on jets before
334  ## filling the monitor histograms; if jetCorrector is present the
335  ## selection will be applied to corrected jets
336  select = cms.string("pt>20 & abs(eta)<2.5"),
337  ## when omitted monitor histograms for b-tagging will not be filled
338  jetBTaggers = cms.PSet(
339  trackCountingEff = cms.PSet(
340  label = cms.InputTag("pfJetProbabilityBJetTags" ),
341  workingPoint = cms.double(0.275)
342  ),
343 # trackCountingPur = cms.PSet(
344 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
345 # workingPoint = cms.double(3.41)
346 # ),
347  secondaryVertex = cms.PSet(
348  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
349  workingPoint = cms.double(0.890)
350  )
351  ),
352  ),
353  ## [optional] : when omitted no mass window will be applied
354  ## for the W mass before filling the event monitoring plots
355  massExtras = cms.PSet(
356  lowerEdge = cms.double( 70.),
357  upperEdge = cms.double(110.)
358  ),
359  ## [optional] : when omitted the monitoring plots for triggering
360  ## will be empty
361  triggerExtras = cms.PSet(
362  src = cms.InputTag("TriggerResults","","HLT"),
363 ### Updating to HLT paths to be monitored by TOP PAG in 2017
364  paths = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
365  'HLT_Ele38_WPTight_Gsf_v',
366  'HLT_Ele40_WPTight_Gsf_v',])
367  )
368  ),
369  ## ------------------------------------------------------
370  ## PRESELECTION
371 
376  preselection = cms.PSet(
377  trigger = cms.PSet(
378  src = cms.InputTag("TriggerResults","","HLT"),
379 ### Updating to HLT paths to be monitored by TOP PAG in 2017
380  select = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
381  'HLT_Ele38_WPTight_Gsf_v',
382  'HLT_Ele40_WPTight_Gsf_v',])
383  ),
384  ## [optional] : when omitted no preselection is applied
385  vertex = cms.PSet(
386  src = cms.InputTag("offlinePrimaryVertices"),
387  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
388  )
389  ),
390  ## ------------------------------------------------------
391  ## SELECTION
392 
398  selection = cms.VPSet(
399  cms.PSet(
400  label = cms.string("Hlt:step0"),
401  src = cms.InputTag(""),
402  select = cms.string(""),
403  min = cms.int32(0),
404  max = cms.int32(0),
405  ),
406  cms.PSet(
407  label = cms.string("elecs:step1"),
408  src = cms.InputTag("gedGsfElectrons"),
409  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
410  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
411  min = cms.int32(1),
412  max = cms.int32(1),
413  ),
414 # cms.PSet(
415 # label = cms.string("jets/pf:step2"),
416 # src = cms.InputTag("ak4PFJetsCHS"),
417 # jetCorrector = cms.string("ak4PFCHSL2L3"),
418 # select = cms.string("pt>20 & abs(eta)<2.5"),
419 # min = cms.int32(1),
420 # ),
421 # cms.PSet(
422 # label = cms.string("jets/pf:step3"),
423 # src = cms.InputTag("ak4PFJetsCHS"),
424 # jetCorrector = cms.string("ak4PFCHSL2L3"),
425 # select = cms.string("pt>20 & abs(eta)<2.5"),
426 # min = cms.int32(2),
427 # ),
428 # cms.PSet(
429 # label = cms.string("jets/pf:step4"),
430 # src = cms.InputTag("ak4PFJetsCHS"),
431 # jetCorrector = cms.string("ak4PFCHSL2L3"),
432 # select = cms.string("pt>20 & abs(eta)<2.5"),
433 # min = cms.int32(3),
434 # ),
435  cms.PSet(
436 # label = cms.string("jets/pf:step5"),
437  label = cms.string("jets/pf:step2"),
438  src = cms.InputTag("ak4PFJetsCHS"),
439  #jetCorrector = cms.string("ak4PFCHSL2L3"),
440  select = cms.string("pt>20 & abs(eta)<2.5"),
441  min = cms.int32(4),
442  ),
443  )
444 )