CMS 3D CMS Logo

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