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