CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  ##
7  ## configuration of the MonitoringEnsemble(s)
8  ## [mandatory] : optional PSets may be omitted
9  ##
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/TopHLTOffline/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  ##
82  ## setup of the event preselection, which will not
83  ## be monitored
84  ## [mandatory] : but may be empty
85  ##
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 2016
90  select = cms.vstring(['HLT_Ele27_WPLoose_Gsf_v','HLT_Ele25_WPTight_Gsf_v','HLT_Ele23_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPTight_Gsf_v', 'HLT_Ele27_WPTight_Gsf_v','HLT_Ele27_eta2p1_WPLoose_Gsf_v', 'HLT_Ele22_eta2p1_WPLoose_Gsf_v', 'HLT_Ele24_eta2p1_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPLoose_Gsf_v','HLT_IsoMu18_v', 'HLT_IsoMu20_v', 'HLT_IsoMu22_v', 'HLT_IsoMu24_v', 'HLT_IsoTkMu18_v', 'HLT_IsoTkMu20_v', 'HLT_IsoTkMu22_v', 'HLT_IsoTkMu24_v','HLT_IsoMu17_eta2p1_v','HLT_IsoMu20_eta2p1_v','HLT_IsoMu24_eta2p1_v','HLT_IsoTkMu20_eta2p1_v','HLT_IsoTkMu24_eta2p1_v','HLT_IsoTkMu20_eta2p1_v','HLT_IsoTkMu24_eta2p1_v']),
91  ),
92  ## [optional] : when omitted no preselection is applied
93  vertex = cms.PSet(
94  src = cms.InputTag("offlinePrimaryVertices"),
95  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
96  )
97  ),
98  ## ------------------------------------------------------
99  ## SELECTION
100  ##
101  ## monitor histrograms are filled after each selection
102  ## step, the selection is applied in the order defined
103  ## by this vector
104  ## [mandatory] : may be empty or contain an arbitrary
105  ## number of PSets
106  ##
107  selection = cms.VPSet(
108  cms.PSet(
109  label = cms.string("Hlt:step0"),
110  src = cms.InputTag(""),
111  select = cms.string(""),
112  min = cms.int32(0),
113  max = cms.int32(0),
114  ),
115  cms.PSet(
116  label = cms.string("jets/pf:step1"),
117  src = cms.InputTag("ak4PFJetsCHS"),
118  select = cms.string("pt>20 & abs(eta)<2.5"),
119  min = cms.int32(4),
120  ),
121  )
122 )
123 
124 topSingleMuonHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
125  ## ------------------------------------------------------
126  ## SETUP
127  ##
128  ## configuration of the MonitoringEnsemble(s)
129  ## [mandatory] : optional PSets may be omitted
130  ##
131  setup = cms.PSet(
132  ## sub-directory to write the monitor histograms to
133  ## [mandatory] : should not be changed w/o explicit
134  ## communication to TopCom!
135  directory = cms.string("HLT/TopHLTOffline/Top/SemiMuonic/"),
136  ## [mandatory]
137  sources = cms.PSet(
138  muons = cms.InputTag("muons"),
139  elecs = cms.InputTag("gedGsfElectrons"),
140  jets = cms.InputTag("ak4PFJetsCHS"),
141  mets = cms.VInputTag("met", "tcMet", "pfMet"),
142  pvs = cms.InputTag("offlinePrimaryVertices")
143 
144  ),
145  ## [optional] : when omitted all monitoring plots for primary vertices
146  ## will be filled w/o extras
147  pvExtras = cms.PSet(
148  ## when omitted electron plots will be filled w/o additional pre-
149  ## selection of the primary vertex candidates
150  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
151  ),
152  ## [optional] : when omitted all monitoring plots for muons
153  ## will be filled w/o extras
154  muonExtras = cms.PSet(
155  ## when omitted muon plots will be filled w/o additional pre-
156  ## selection of the muon candidates
157  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
158  ## when omitted isolated muon multiplicity plot will be equi-
159  ## valent to inclusive muon multiplicity plot
160  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
161  ),
162  ## [optional] : when omitted all monitoring plots for jets
163  ## will be filled w/o extras
164  jetExtras = cms.PSet(
165  ## when omitted monitor plots for pt will be filled from uncorrected
166  ## jets
167  #jetCorrector = cms.string("ak4PFCHSL2L3"),
168  ## when omitted no extra selection will be applied on jets before
169  ## filling the monitor histograms; if jetCorrector is present the
170  ## selection will be applied to corrected jets
171  select = cms.string("pt>20 & abs(eta)<2.5"),
172  ## when omitted monitor histograms for b-tagging will not be filled
173  jetBTaggers = cms.PSet(
174  trackCountingEff = cms.PSet(
175  label = cms.InputTag("pfJetProbabilityBJetTags" ),
176  workingPoint = cms.double(0.275)
177  ),
178 # trackCountingPur = cms.PSet(
179 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
180 # workingPoint = cms.double(3.41)
181 # ),
182  secondaryVertex = cms.PSet(
183  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
184  workingPoint = cms.double(0.890)
185  )
186  ),
187  ),
188  ## [optional] : when omitted no mass window will be applied
189  ## for the W mass before filling the event monitoring plots
190  massExtras = cms.PSet(
191  lowerEdge = cms.double( 70.),
192  upperEdge = cms.double(110.)
193  ),
194  ## [optional] : when omitted the monitoring plots for triggering
195  ## will be empty
196  triggerExtras = cms.PSet(
197  src = cms.InputTag("TriggerResults","","HLT"),
198 ### Updating to HLT paths to be monitored by TOP PAG in 2016
199  paths = cms.vstring(['HLT_IsoMu18_v', 'HLT_IsoMu20_v', 'HLT_IsoMu22_v', 'HLT_IsoMu24_v', 'HLT_IsoTkMu18_v', 'HLT_IsoTkMu20_v', 'HLT_IsoTkMu22_v', 'HLT_IsoTkMu24_v','HLT_IsoMu17_eta2p1_v','HLT_IsoMu20_eta2p1_v','HLT_IsoMu24_eta2p1_v','HLT_IsoTkMu20_eta2p1_v','HLT_IsoTkMu24_eta2p1_v'])
200  )
201  ),
202  ## ------------------------------------------------------
203  ## PRESELECTION
204  ##
205  ## setup of the event preselection, which will not
206  ## be monitored
207  ## [mandatory] : but may be empty
208  ##
209  preselection = cms.PSet(
210  trigger = cms.PSet(
211  src = cms.InputTag("TriggerResults","","HLT"),
212 ### Updating to HLT paths to be monitored by TOP PAG in 2016
213  select = cms.vstring(['HLT_IsoMu18_v', 'HLT_IsoMu20_v', 'HLT_IsoMu22_v', 'HLT_IsoMu24_v', 'HLT_IsoTkMu18_v', 'HLT_IsoTkMu20_v', 'HLT_IsoTkMu22_v', 'HLT_IsoTkMu24_v','HLT_IsoMu17_eta2p1_v','HLT_IsoMu20_eta2p1_v','HLT_IsoMu24_eta2p1_v','HLT_IsoTkMu20_eta2p1_v','HLT_IsoTkMu24_eta2p1_v'])
214  ),
215  ## [optional] : when omitted no preselection is applied
216  vertex = cms.PSet(
217  src = cms.InputTag("offlinePrimaryVertices"),
218  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
219  )
220  ),
221  ## ------------------------------------------------------
222  ## SELECTION
223  ##
224  ## monitor histrograms are filled after each selection
225  ## step, the selection is applied in the order defined
226  ## by this vector
227  ## [mandatory] : may be empty or contain an arbitrary
228  ## number of PSets
229  selection = cms.VPSet(
230  cms.PSet(
231  label = cms.string("Hlt:step0"),
232  src = cms.InputTag(""),
233  select = cms.string(""),
234  min = cms.int32(0),
235  max = cms.int32(0),
236  ),
237  cms.PSet(
238  label = cms.string("muons:step1"),
239  src = cms.InputTag("muons"),
240  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"),
241  min = cms.int32(1),
242  max = cms.int32(1),
243  ),
244 # cms.PSet(
245 # label = cms.string("jets/pf:step2"),
246 # src = cms.InputTag("ak4PFJetsCHS"),
247 # jetCorrector = cms.string("ak4PFCHSL2L3"),
248 # select = cms.string("pt>20 & abs(eta)<2.5"),
249 # min = cms.int32(1),
250 # ),
251 # cms.PSet(
252 # label = cms.string("jets/pf:step3"),
253 # src = cms.InputTag("ak4PFJetsCHS"),
254 # jetCorrector = cms.string("ak4PFCHSL2L3"),
255 # select = cms.string("pt>20 & abs(eta)<2.5"),
256 # min = cms.int32(2),
257 # ),
258 # cms.PSet(
259 # label = cms.string("jets/pf:step4"),
260 # src = cms.InputTag("ak4PFJetsCHS"),
261 # jetCorrector = cms.string("ak4PFCHSL2L3"),
262 # select = cms.string("pt>20 & abs(eta)<2.5"),
263 # min = cms.int32(3),
264 # ),
265  cms.PSet(
266 # label = cms.string("jets/pf:step5"),
267  label = cms.string("jets/pf:step2"),
268  src = cms.InputTag("ak4PFJetsCHS"),
269  #jetCorrector = cms.string("ak4PFCHSL2L3"),
270  select = cms.string("pt>20 & abs(eta)<2.5"),
271  min = cms.int32(4),
272  ),
273  )
274 )
275 
276 topSingleElectronHLTOfflineDQM = cms.EDAnalyzer("TopSingleLeptonHLTOfflineDQM",
277  ## ------------------------------------------------------
278  ## SETUP
279  ##
280  ## configuration of the MonitoringEnsemble(s)
281  ## [mandatory] : optional PSets may be omitted
282  ##
283  setup = cms.PSet(
284  ## sub-directory to write the monitor histograms to
285  ## [mandatory] : should not be changed w/o explicit
286  ## communication to TopCom!
287  directory = cms.string("HLT/TopHLTOffline/Top/SemiElectronic/"),
288  ## [mandatory]
289  sources = cms.PSet(
290  muons = cms.InputTag("muons"),
291  elecs = cms.InputTag("gedGsfElectrons"),
292  jets = cms.InputTag("ak4PFJetsCHS"),
293  mets = cms.VInputTag("met", "tcMet", "pfMet"),
294  pvs = cms.InputTag("offlinePrimaryVertices")
295 
296  ),
297  ## [optional] : when omitted all monitoring plots for primary vertices
298  ## will be filled w/o extras
299  pvExtras = cms.PSet(
300  ## when omitted electron plots will be filled w/o additional pre-
301  ## selection of the primary vertex candidates
302  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
303  ),
304  ## [optional] : when omitted all monitoring plots for electrons
305  ## will be filled w/o extras
306  elecExtras = cms.PSet(
307  ## when omitted electron plots will be filled w/o cut on electronId
308  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
309  ## when omitted electron plots will be filled w/o additional pre-
310  ## selection of the electron candidates
311  select = cms.string("pt>30 & abs(eta)<2.5"),
312  ## when omitted isolated electron multiplicity plot will be equi-
313  ## valent to inclusive electron multiplicity plot
314  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
315  ),
316  ## [optional] : when omitted all monitoring plots for jets
317  ## will be filled w/o extras
318  jetExtras = cms.PSet(
319  ## when omitted monitor plots for pt will be filled from uncorrected
320  ## jets
321  #jetCorrector = cms.string("ak4PFCHSL2L3"),
322  ## when omitted no extra selection will be applied on jets before
323  ## filling the monitor histograms; if jetCorrector is present the
324  ## selection will be applied to corrected jets
325  select = cms.string("pt>20 & abs(eta)<2.5"),
326  ## when omitted monitor histograms for b-tagging will not be filled
327  jetBTaggers = cms.PSet(
328  trackCountingEff = cms.PSet(
329  label = cms.InputTag("pfJetProbabilityBJetTags" ),
330  workingPoint = cms.double(0.275)
331  ),
332 # trackCountingPur = cms.PSet(
333 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
334 # workingPoint = cms.double(3.41)
335 # ),
336  secondaryVertex = cms.PSet(
337  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
338  workingPoint = cms.double(0.890)
339  )
340  ),
341  ),
342  ## [optional] : when omitted no mass window will be applied
343  ## for the W mass before filling the event monitoring plots
344  massExtras = cms.PSet(
345  lowerEdge = cms.double( 70.),
346  upperEdge = cms.double(110.)
347  ),
348  ## [optional] : when omitted the monitoring plots for triggering
349  ## will be empty
350  triggerExtras = cms.PSet(
351  src = cms.InputTag("TriggerResults","","HLT"),
352 ### Updating to HLT paths to be monitored by TOP PAG in 2016
353  paths = cms.vstring(['HLT_Ele27_WPLoose_Gsf_v','HLT_Ele25_WPTight_Gsf_v','HLT_Ele23_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPTight_Gsf_v','HLT_Ele27_WPTight_Gsf_v','HLT_Ele27_eta2p1_WPLoose_Gsf_v','HLT_Ele22_eta2p1_WPLoose_Gsf_v','HLT_Ele24_eta2p1_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPLoose_Gsf_v'])
354  )
355  ),
356  ## ------------------------------------------------------
357  ## PRESELECTION
358  ##
359  ## setup of the event preselection, which will not
360  ## be monitored
361  ## [mandatory] : but may be empty
362  ##
363  preselection = cms.PSet(
364  trigger = cms.PSet(
365  src = cms.InputTag("TriggerResults","","HLT"),
366 ### Updating to HLT paths to be monitored by TOP PAG in 2016
367  select = cms.vstring(['HLT_Ele27_WPLoose_Gsf_v','HLT_Ele25_WPTight_Gsf_v','HLT_Ele23_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPTight_Gsf_v', 'HLT_Ele27_WPTight_Gsf_v','HLT_Ele27_eta2p1_WPLoose_Gsf_v','HLT_Ele22_eta2p1_WPLoose_Gsf_v','HLT_Ele24_eta2p1_WPLoose_Gsf_v','HLT_Ele25_eta2p1_WPLoose_Gsf_v'])
368  ),
369  ## [optional] : when omitted no preselection is applied
370  vertex = cms.PSet(
371  src = cms.InputTag("offlinePrimaryVertices"),
372  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
373  )
374  ),
375  ## ------------------------------------------------------
376  ## SELECTION
377  ##
378  ## monitor histrograms are filled after each selection
379  ## step, the selection is applied in the order defined
380  ## by this vector
381  ## [mandatory] : may be empty or contain an arbitrary
382  ## number of PSets
383  selection = cms.VPSet(
384  cms.PSet(
385  label = cms.string("Hlt:step0"),
386  src = cms.InputTag(""),
387  select = cms.string(""),
388  min = cms.int32(0),
389  max = cms.int32(0),
390  ),
391  cms.PSet(
392  label = cms.string("elecs:step1"),
393  src = cms.InputTag("gedGsfElectrons"),
394  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
395  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
396  min = cms.int32(1),
397  max = cms.int32(1),
398  ),
399 # cms.PSet(
400 # label = cms.string("jets/pf:step2"),
401 # src = cms.InputTag("ak4PFJetsCHS"),
402 # jetCorrector = cms.string("ak4PFCHSL2L3"),
403 # select = cms.string("pt>20 & abs(eta)<2.5"),
404 # min = cms.int32(1),
405 # ),
406 # cms.PSet(
407 # label = cms.string("jets/pf:step3"),
408 # src = cms.InputTag("ak4PFJetsCHS"),
409 # jetCorrector = cms.string("ak4PFCHSL2L3"),
410 # select = cms.string("pt>20 & abs(eta)<2.5"),
411 # min = cms.int32(2),
412 # ),
413 # cms.PSet(
414 # label = cms.string("jets/pf:step4"),
415 # src = cms.InputTag("ak4PFJetsCHS"),
416 # jetCorrector = cms.string("ak4PFCHSL2L3"),
417 # select = cms.string("pt>20 & abs(eta)<2.5"),
418 # min = cms.int32(3),
419 # ),
420  cms.PSet(
421 # label = cms.string("jets/pf:step5"),
422  label = cms.string("jets/pf:step2"),
423  src = cms.InputTag("ak4PFJetsCHS"),
424  #jetCorrector = cms.string("ak4PFCHSL2L3"),
425  select = cms.string("pt>20 & abs(eta)<2.5"),
426  min = cms.int32(4),
427  ),
428  )
429 )