CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
topSingleLeptonDQM_PU_cfi.py
Go to the documentation of this file.
2 
3 topSingleLeptonDQM = cms.EDAnalyzer("TopSingleLeptonDQM",
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("Physics/Top/TopSingleLeptonDQM/"),
15  ## [mandatory]
16  sources = cms.PSet(
17  muons = cms.InputTag("muons"),
18  elecs = cms.InputTag("gsfElectrons"),
19  jets = cms.InputTag("ak5CaloJets"),
20  mets = cms.VInputTag("met", "tcMet", "pfMet"),
21  pvs = cms.InputTag("offlinePrimaryVertices")
22  ),
23  ## [optional] : when omitted the verbosity level is set to STANDARD
24  monitoring = cms.PSet(
25  verbosity = cms.string("DEBUG")
26  ),
27  ## [optional] : when omitted all monitoring plots for primary vertices
28  ## will be filled w/o extras
29  pvExtras = cms.PSet(
30  ## when omitted electron plots will be filled w/o additional pre-
31  ## selection of the primary vertex candidates
32  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
33  ),
34  ## [optional] : when omitted all monitoring plots for electrons
35  ## will be filled w/o extras
36  elecExtras = cms.PSet(
37  ## when omitted electron plots will be filled w/o cut on electronId
38  electronId = cms.PSet( src = cms.InputTag("eidRobustLoose"), pattern = cms.int32(1) ),
39  ## when omitted electron plots will be filled w/o additional pre-
40  ## selection of the electron candidates
41  select = cms.string("pt>15 & abs(eta)<2.5 & abs(gsfTrack.d0)<1 & abs(gsfTrack.dz)<20"),
42  ## when omitted isolated electron multiplicity plot will be equi-
43  ## valent to inclusive electron multiplicity plot
44  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
45  ),
46  ## [optional] : when omitted all monitoring plots for muons
47  ## will be filled w/o extras
48  muonExtras = cms.PSet(
49  ## when omitted muon plots will be filled w/o additional pre-
50  ## selection of the muon candidates
51  select = cms.string("pt>10 & abs(eta)<2.1 & isGlobalMuon & abs(globalTrack.d0)<1 & abs(globalTrack.dz)<20"),
52  ## when omitted isolated muon multiplicity plot will be equi-
53  ## valent to inclusive muon multiplicity plot
54  isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),
55  ),
56  ## [optional] : when omitted all monitoring plots for jets will
57  ## be filled from uncorrected jets
58  jetExtras = cms.PSet(
59  ## when omitted monitor plots for pt will be filled from uncorrected
60  ## jets
61  jetCorrector = cms.string("ak5CaloL2L3"),
62  ## when omitted monitor plots will be filled w/o additional cut on
63  ## jetID
64  jetID = cms.PSet(
65  label = cms.InputTag("ak5JetID"),
66  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
67  ),
68  ## when omitted no extra selection will be applied on jets before
69  ## filling the monitor histograms; if jetCorrector is present the
70  ## selection will be applied to corrected jets
71  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
72  ),
73  ## [optional] : when omitted no mass window will be applied
74  ## for the W mass befor filling the event monitoring plots
75  massExtras = cms.PSet(
76  lowerEdge = cms.double( 70.),
77  upperEdge = cms.double(110.)
78  ),
79  ## [optional] : when omitted the monitoring plots for triggering
80  ## will be empty
81  #triggerExtras = cms.PSet(
82  # src = cms.InputTag("TriggerResults","","HLT"),
83  # paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
84  # 'HLT_Mu5:HLT_QuadJet15U',
85  # 'HLT_Mu7:HLT_QuadJet15U',
86  # 'HLT_Mu9:HLT_QuadJet15U'])
87  #)
88  ),
89  ## ------------------------------------------------------
90  ## PRESELECTION
91  ##
92  ## setup of the event preselection, which will not
93  ## be monitored
94  ## [mandatory] : but may be empty
95  ##
96  preselection = cms.PSet(
97  ## [optional] : when omitted no preselection is applied
98  trigger = cms.PSet(
99  src = cms.InputTag("TriggerResults","","HLT"),
100  select = cms.vstring(['HLT_Mu11', 'HLT_Ele15_LW_L1R', 'HLT_QuadJet30'])
101  ),
102  ## [optional] : when omitted no preselection is applied
103  vertex = cms.PSet(
104  src = cms.InputTag("offlinePrimaryVertices"),
105  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
106  )
107  ),
108  ## ------------------------------------------------------
109  ## SELECTION
110  ##
111  ## monitor histrograms are filled after each selection
112  ## step, the selection is applied in the order defined
113  ## by this vector
114  ## [mandatory] : may be empty or contain an arbitrary
115  ## number of PSets
116  ##
117  selection = cms.VPSet(
118  cms.PSet(
119  label = cms.string("jets/calo:step0"),
120  src = cms.InputTag("ak5CaloJets"),
121  select = cms.string("pt>20 & abs(eta)<2.1 & 0.05<emEnergyFraction"),
122  jetID = cms.PSet(
123  label = cms.InputTag("ak5JetID"),
124  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
125  ),
126  min = cms.int32(2),
127  ),
128  )
129 )
130 
131 topSingleMuonLooseDQM_PU = cms.EDAnalyzer("TopSingleLeptonDQM",
132  ## ------------------------------------------------------
133  ## SETUP
134  ##
135  ## configuration of the MonitoringEnsemble(s)
136  ## [mandatory] : optional PSets may be omitted
137  ##
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("Physics/Top/TopSingleMuonLooseDQM_PU/"),
143  ## [mandatory]
144  sources = cms.PSet(
145  muons = cms.InputTag("muons"),
146  elecs = cms.InputTag("gsfElectrons"),
147  jets = cms.InputTag("ak5CaloJets"),
148  mets = cms.VInputTag("met", "tcMet", "pfMet"),
149  pvs = cms.InputTag("offlinePrimaryVertices")
150  ),
151  ## [optional] : when omitted the verbosity level is set to STANDARD
152  monitoring = cms.PSet(
153  verbosity = cms.string("DEBUG")
154  ),
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 > 10 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10"),
166  ## when omitted isolated muon multiplicity plot will be equi-
167  ## valent to inclusive muon multiplicity plot
168  isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1")
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("ak5CaloL2L3"),
176  ## when omitted monitor plots will be filled w/o additional cut on
177  ## jetID
178  jetID = cms.PSet(
179  label = cms.InputTag("ak5JetID"),
180  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
181  ),
182  ## when omitted no extra selection will be applied on jets before
183  ## filling the monitor histograms; if jetCorrector is present the
184  ## selection will be applied to corrected jets
185  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
186  ## when omitted monitor histograms for b-tagging will not be filled
187  jetBTaggers = cms.PSet(
188  trackCountingEff = cms.PSet(
189  label = cms.InputTag("trackCountingHighEffBJetTags" ),
190  workingPoint = cms.double(1.25)
191  ),
192  trackCountingPur = cms.PSet(
193  label = cms.InputTag("trackCountingHighPurBJetTags" ),
194  workingPoint = cms.double(3.00)
195  ),
196  secondaryVertex = cms.PSet(
197  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
198  workingPoint = cms.double(2.05)
199  )
200  ),
201  ),
202  ## [optional] : when omitted no mass window will be applied
203  ## for the W mass befor filling the event monitoring plots
204  massExtras = cms.PSet(
205  lowerEdge = cms.double( 70.),
206  upperEdge = cms.double(110.)
207  ),
208  ## [optional] : when omitted the monitoring plots for triggering
209  ## will be empty
210  #triggerExtras = cms.PSet(
211  # src = cms.InputTag("TriggerResults","","HLT"),
212  # paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
213  # 'HLT_Mu5:HLT_QuadJet15U',
214  # 'HLT_Mu7:HLT_QuadJet15U',
215  # 'HLT_Mu9:HLT_QuadJet15U',
216  # 'HLT_Mu11:HLT_QuadJet15U'])
217  #)
218  ),
219  ## ------------------------------------------------------
220  ## PRESELECTION
221  ##
222  ## setup of the event preselection, which will not
223  ## be monitored
224  ## [mandatory] : but may be empty
225  ##
226  preselection = cms.PSet(
227  ## [optional] : when omitted no preselection is applied
228  #trigger = cms.PSet(
229  # src = cms.InputTag("TriggerResults","","HLT"),
230  # select = cms.vstring(['HLT_Mu11'])
231  #),
232  ## [optional] : when omitted no preselection is applied
233  vertex = cms.PSet(
234  src = cms.InputTag("offlinePrimaryVertices"),
235  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
236  )
237  ),
238  ## ------------------------------------------------------
239  ## SELECTION
240  ##
241  ## monitor histrograms are filled after each selection
242  ## step, the selection is applied in the order defined
243  ## by this vector
244  ## [mandatory] : may be empty or contain an arbitrary
245  ## number of PSets
246  selection = cms.VPSet(
247  cms.PSet(
248  label = cms.string("muons:step0"),
249  src = cms.InputTag("muons"),
250  select = cms.string("pt>10 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10"),
251  min = cms.int32(1),
252  ),
253  cms.PSet(
254  label = cms.string("pvs:step1"),
255  src = cms.InputTag("offlinePrimaryVertices"),
256  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
257  max = cms.int32(10),
258  ),
259  cms.PSet(
260  label = cms.string("pvs:step2"),
261  src = cms.InputTag("offlinePrimaryVertices"),
262  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
263  max = cms.int32(8),
264  ),
265  cms.PSet(
266  label = cms.string("pvs:step3"),
267  src = cms.InputTag("offlinePrimaryVertices"),
268  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
269  max = cms.int32(6),
270  ),
271  cms.PSet(
272  label = cms.string("pvs:step4"),
273  src = cms.InputTag("offlinePrimaryVertices"),
274  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
275  max = cms.int32(4),
276  ),
277  cms.PSet(
278  label = cms.string("pvs:step5"),
279  src = cms.InputTag("offlinePrimaryVertices"),
280  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
281  max = cms.int32(2),
282  ),
283  )
284 )
285 
286 topSingleMuonMediumDQM_PU = cms.EDAnalyzer("TopSingleLeptonDQM",
287  ## ------------------------------------------------------
288  ## SETUP
289  ##
290  ## configuration of the MonitoringEnsemble(s)
291  ## [mandatory] : optional PSets may be omitted
292  ##
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("Physics/Top/TopSingleMuonMediumDQM_PU/"),
298  ## [mandatory]
299  sources = cms.PSet(
300  muons = cms.InputTag("muons"),
301  elecs = cms.InputTag("gsfElectrons"),
302  jets = cms.InputTag("ak5CaloJets"),
303  mets = cms.VInputTag("met", "tcMet", "pfMet"),
304  pvs = cms.InputTag("offlinePrimaryVertices")
305 
306  ),
307  ## [optional] : when omitted the verbosity level is set to STANDARD
308  monitoring = cms.PSet(
309  verbosity = cms.string("DEBUG")
310  ),
311  ## [optional] : when omitted all monitoring plots for primary vertices
312  ## will be filled w/o extras
313  pvExtras = cms.PSet(
314  ## when omitted electron plots will be filled w/o additional pre-
315  ## selection of the primary vertex candidates
316  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
317  ),
318  ## [optional] : when omitted all monitoring plots for muons
319  ## will be filled w/o extras
320  muonExtras = cms.PSet(
321  ## when omitted muon plots will be filled w/o additional pre-
322  ## selection of the muon candidates
323  select = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),
324  ## when omitted isolated muon multiplicity plot will be equi-
325  ## valent to inclusive muon multiplicity plot
326  isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1")
327  ),
328  ## [optional] : when omitted all monitoring plots for jets
329  ## will be filled w/o extras
330  jetExtras = cms.PSet(
331  ## when omitted monitor plots for pt will be filled from uncorrected
332  ## jets
333  jetCorrector = cms.string("ak5CaloL2L3"),
334  ## when omitted monitor plots will be filled w/o additional cut on
335  ## jetID
336  jetID = cms.PSet(
337  label = cms.InputTag("ak5JetID"),
338  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
339  ),
340  ## when omitted no extra selection will be applied on jets before
341  ## filling the monitor histograms; if jetCorrector is present the
342  ## selection will be applied to corrected jets
343  select = cms.string("pt>15 & abs(eta)<2.5& emEnergyFraction>0.01"),
344  ## when omitted monitor histograms for b-tagging will not be filled
345  jetBTaggers = cms.PSet(
346  trackCountingEff = cms.PSet(
347  label = cms.InputTag("trackCountingHighEffBJetTags" ),
348  workingPoint = cms.double(1.25)
349  ),
350  trackCountingPur = cms.PSet(
351  label = cms.InputTag("trackCountingHighPurBJetTags" ),
352  workingPoint = cms.double(3.00)
353  ),
354  secondaryVertex = cms.PSet(
355  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
356  workingPoint = cms.double(2.05)
357  )
358  ),
359  ),
360  ## [optional] : when omitted no mass window will be applied
361  ## for the W mass before filling the event monitoring plots
362  massExtras = cms.PSet(
363  lowerEdge = cms.double( 70.),
364  upperEdge = cms.double(110.)
365  ),
366  ## [optional] : when omitted the monitoring plots for triggering
367  ## will be empty
368  #triggerExtras = cms.PSet(
369  # src = cms.InputTag("TriggerResults","","HLT"),
370  # paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
371  # 'HLT_Mu5:HLT_QuadJet15U',
372  # 'HLT_Mu7:HLT_QuadJet15U',
373  # 'HLT_Mu9:HLT_QuadJet15U',
374  # 'HLT_Mu11:HLT_QuadJet15U'])
375  #)
376  ),
377  ## ------------------------------------------------------
378  ## PRESELECTION
379  ##
380  ## setup of the event preselection, which will not
381  ## be monitored
382  ## [mandatory] : but may be empty
383  ##
384  preselection = cms.PSet(
385  ## [optional] : when omitted no preselection is applied
386  #trigger = cms.PSet(
387  # src = cms.InputTag("TriggerResults","","HLT"),
388  # select = cms.vstring(['HLT_Mu15_v2'])
389  #),
390  ## [optional] : when omitted no preselection is applied
391  vertex = cms.PSet(
392  src = cms.InputTag("offlinePrimaryVertices"),
393  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
394  )
395  ),
396  ## ------------------------------------------------------
397  ## SELECTION
398  ##
399  ## monitor histrograms are filled after each selection
400  ## step, the selection is applied in the order defined
401  ## by this vector
402  ## [mandatory] : may be empty or contain an arbitrary
403  ## number of PSets
404  selection = cms.VPSet(
405  cms.PSet(
406  label = cms.string("muons:step0"),
407  src = cms.InputTag("muons"),
408  select = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),
409  min = cms.int32(1),
410  max = cms.int32(1),
411  ),
412  cms.PSet(
413  label = cms.string("pvs:step1"),
414  src = cms.InputTag("offlinePrimaryVertices"),
415  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
416  max = cms.int32(10),
417  ),
418  cms.PSet(
419  label = cms.string("pvs:step2"),
420  src = cms.InputTag("offlinePrimaryVertices"),
421  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
422  max = cms.int32(8),
423  ),
424  cms.PSet(
425  label = cms.string("pvs:step3"),
426  src = cms.InputTag("offlinePrimaryVertices"),
427  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
428  max = cms.int32(6),
429  ),
430  cms.PSet(
431  label = cms.string("pvs:step4"),
432  src = cms.InputTag("offlinePrimaryVertices"),
433  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
434  max = cms.int32(4),
435  ),
436  cms.PSet(
437  label = cms.string("pvs:step5"),
438  src = cms.InputTag("offlinePrimaryVertices"),
439  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
440  max = cms.int32(2),
441  ),
442  )
443 )
444 
445 topSingleElectronLooseDQM_PU = cms.EDAnalyzer("TopSingleLeptonDQM",
446  ## ------------------------------------------------------
447  ## SETUP
448  ##
449  ## configuration of the MonitoringEnsemble(s)
450  ## [mandatory] : optional PSets may be omitted
451  ##
452  setup = cms.PSet(
453  ## sub-directory to write the monitor histograms to
454  ## [mandatory] : should not be changed w/o explicit
455  ## communication to TopCom!
456  directory = cms.string("Physics/Top/TopSingleElectronLooseDQM_PU/"),
457  ## [mandatory]
458  sources = cms.PSet(
459  muons = cms.InputTag("muons"),
460  elecs = cms.InputTag("gsfElectrons"),
461  jets = cms.InputTag("ak5CaloJets"),
462  mets = cms.VInputTag("met", "tcMet", "pfMet"),
463  pvs = cms.InputTag("offlinePrimaryVertices")
464 
465  ),
466  ## [optional] : when omitted the verbosity level is set to STANDARD
467  monitoring = cms.PSet(
468  verbosity = cms.string("DEBUG")
469  ),
470  ## [optional] : when omitted all monitoring plots for primary vertices
471  ## will be filled w/o extras
472  pvExtras = cms.PSet(
473  ## when omitted electron plots will be filled w/o additional pre-
474  ## selection of the primary vertex candidates
475  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
476  ),
477  ## [optional] : when omitted all monitoring plots for electrons
478  ## will be filled w/o extras
479  elecExtras = cms.PSet(
480  ## when omitted electron plots will be filled w/o cut on electronId
481  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
482  ## when omitted electron plots will be filled w/o additional pre-
483  ## selection of the electron candidates
484  select = cms.string("pt>15 & abs(eta)<2.5"),
485  ## when omitted isolated electron multiplicity plot will be equi-
486  ## valent to inclusive electron multiplicity plot
487  isolation = cms.string("(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
488  ),
489  ## [optional] : when omitted all monitoring plots for jets
490  ## will be filled w/o extras
491  jetExtras = cms.PSet(
492  ## when omitted monitor plots for pt will be filled from uncorrected
493  ## jets
494  jetCorrector = cms.string("ak5CaloL2L3"),
495  ## when omitted monitor plots will be filled w/o additional cut on
496  ## jetID
497  jetID = cms.PSet(
498  label = cms.InputTag("ak5JetID"),
499  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
500  ),
501  ## when omitted no extra selection will be applied on jets before
502  ## filling the monitor histograms; if jetCorrector is present the
503  ## selection will be applied to corrected jets
504  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
505  ## when omitted monitor histograms for b-tagging will not be filled
506  jetBTaggers = cms.PSet(
507  trackCountingEff = cms.PSet(
508  label = cms.InputTag("trackCountingHighEffBJetTags" ),
509  workingPoint = cms.double(1.25)
510  ),
511  trackCountingPur = cms.PSet(
512  label = cms.InputTag("trackCountingHighPurBJetTags" ),
513  workingPoint = cms.double(3.00)
514  ),
515  secondaryVertex = cms.PSet(
516  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
517  workingPoint = cms.double(2.05)
518  )
519  ),
520  ),
521  ## [optional] : when omitted no mass window will be applied
522  ## for the W mass before filling the event monitoring plots
523  massExtras = cms.PSet(
524  lowerEdge = cms.double( 70.),
525  upperEdge = cms.double(110.)
526  ),
527  ## [optional] : when omitted the monitoring plots for triggering
528  ## will be empty
529  #triggerExtras = cms.PSet(
530  # src = cms.InputTag("TriggerResults","","HLT"),
531  # paths = cms.vstring(['HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
532  #)
533  ),
534  ## ------------------------------------------------------
535  ## PRESELECTION
536  ##
537  ## setup of the event preselection, which will not
538  ## be monitored
539  ## [mandatory] : but may be empty
540  ##
541  preselection = cms.PSet(
542  ## [optional] : when omitted no preselection is applied
543  #trigger = cms.PSet(
544  # src = cms.InputTag("TriggerResults","","HLT"),
545  # select = cms.vstring(['HLT_Ele15_SW_CaloEleId_L1R'])
546  #),
547  ## [optional] : when omitted no preselection is applied
548  vertex = cms.PSet(
549  src = cms.InputTag("offlinePrimaryVertices"),
550  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
551  )
552  ),
553  ## ------------------------------------------------------
554  ## SELECTION
555  ##
556  ## monitor histrograms are filled after each selection
557  ## step, the selection is applied in the order defined
558  ## by this vector
559  ## [mandatory] : may be empty or contain an arbitrary
560  ## number of PSets
561  selection = cms.VPSet(
562  cms.PSet(
563  label = cms.string("elecs:step0"),
564  src = cms.InputTag("gsfElectrons"),
565  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
566  select = cms.string("pt>15 & abs(eta)<2.5"),
567  min = cms.int32(1),
568  ),
569  cms.PSet(
570  label = cms.string("pvs:step1"),
571  src = cms.InputTag("offlinePrimaryVertices"),
572  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
573  max = cms.int32(10),
574  ),
575  cms.PSet(
576  label = cms.string("pvs:step2"),
577  src = cms.InputTag("offlinePrimaryVertices"),
578  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
579  max = cms.int32(8),
580  ),
581  cms.PSet(
582  label = cms.string("pvs:step3"),
583  src = cms.InputTag("offlinePrimaryVertices"),
584  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
585  max = cms.int32(6),
586  ),
587  cms.PSet(
588  label = cms.string("pvs:step4"),
589  src = cms.InputTag("offlinePrimaryVertices"),
590  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
591  max = cms.int32(4),
592  ),
593  cms.PSet(
594  label = cms.string("pvs:step5"),
595  src = cms.InputTag("offlinePrimaryVertices"),
596  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
597  max = cms.int32(2),
598  ),
599  )
600 )
601 
602 topSingleElectronMediumDQM_PU = cms.EDAnalyzer("TopSingleLeptonDQM",
603  ## ------------------------------------------------------
604  ## SETUP
605  ##
606  ## configuration of the MonitoringEnsemble(s)
607  ## [mandatory] : optional PSets may be omitted
608  ##
609  setup = cms.PSet(
610  ## sub-directory to write the monitor histograms to
611  ## [mandatory] : should not be changed w/o explicit
612  ## communication to TopCom!
613  directory = cms.string("Physics/Top/TopSingleElectronMediumDQM_PU/"),
614  ## [mandatory]
615  sources = cms.PSet(
616  muons = cms.InputTag("muons"),
617  elecs = cms.InputTag("gsfElectrons"),
618  jets = cms.InputTag("ak5CaloJets"),
619  mets = cms.VInputTag("met", "tcMet", "pfMet"),
620  pvs = cms.InputTag("offlinePrimaryVertices")
621 
622  ),
623  ## [optional] : when omitted the verbosity level is set to STANDARD
624  monitoring = cms.PSet(
625  verbosity = cms.string("DEBUG")
626  ),
627  ## [optional] : when omitted all monitoring plots for primary vertices
628  ## will be filled w/o extras
629  pvExtras = cms.PSet(
630  ## when omitted electron plots will be filled w/o additional pre-
631  ## selection of the primary vertex candidates
632  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
633  ),
634  ## [optional] : when omitted all monitoring plots for electrons
635  ## will be filled w/o extras
636  elecExtras = cms.PSet(
637  ## when omitted electron plots will be filled w/o cut on electronId
638  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
639  ## when omitted electron plots will be filled w/o additional pre-
640  ## selection of the electron candidates
641  select = cms.string("pt>25 & abs(eta)<2.5 & (dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
642  ## when omitted isolated electron multiplicity plot will be equi-
643  ## valent to inclusive electron multiplicity plot
644  isolation = cms.string("(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
645  ),
646  ## [optional] : when omitted all monitoring plots for jets
647  ## will be filled w/o extras
648  jetExtras = cms.PSet(
649  ## when omitted monitor plots for pt will be filled from uncorrected
650  ## jets
651  jetCorrector = cms.string("ak5CaloL2L3"),
652  ## when omitted monitor plots will be filled w/o additional cut on
653  ## jetID
654  jetID = cms.PSet(
655  label = cms.InputTag("ak5JetID"),
656  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
657  ),
658  ## when omitted no extra selection will be applied on jets before
659  ## filling the monitor histograms; if jetCorrector is present the
660  ## selection will be applied to corrected jets
661  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
662  ## when omitted monitor histograms for b-tagging will not be filled
663  jetBTaggers = cms.PSet(
664  trackCountingEff = cms.PSet(
665  label = cms.InputTag("trackCountingHighEffBJetTags" ),
666  workingPoint = cms.double(1.25)
667  ),
668  trackCountingPur = cms.PSet(
669  label = cms.InputTag("trackCountingHighPurBJetTags" ),
670  workingPoint = cms.double(3.00)
671  ),
672  secondaryVertex = cms.PSet(
673  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
674  workingPoint = cms.double(2.05)
675  )
676  ),
677  ),
678  ## [optional] : when omitted no mass window will be applied
679  ## for the W mass before filling the event monitoring plots
680  massExtras = cms.PSet(
681  lowerEdge = cms.double( 70.),
682  upperEdge = cms.double(110.)
683  ),
684  ## [optional] : when omitted the monitoring plots for triggering
685  ## will be empty
686  #triggerExtras = cms.PSet(
687  # src = cms.InputTag("TriggerResults","","HLT"),
688  # paths = cms.vstring([ 'HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
689  #)
690  ),
691  ## ------------------------------------------------------
692  ## PRESELECTION
693  ##
694  ## setup of the event preselection, which will not
695  ## be monitored
696  ## [mandatory] : but may be empty
697  ##
698  preselection = cms.PSet(
699  ## [optional] : when omitted no preselection is applied
700  #trigger = cms.PSet(
701  # src = cms.InputTag("TriggerResults","","HLT"),
702  # select = cms.vstring(['HLT_Ele15_SW_CaloEleId_L1R'])
703  #),
704  ## [optional] : when omitted no preselection is applied
705  vertex = cms.PSet(
706  src = cms.InputTag("offlinePrimaryVertices"),
707  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
708  )
709  ),
710  ## ------------------------------------------------------
711  ## SELECTION
712  ##
713  ## monitor histrograms are filled after each selection
714  ## step, the selection is applied in the order defined
715  ## by this vector
716  ## [mandatory] : may be empty or contain an arbitrary
717  ## number of PSets
718  selection = cms.VPSet(
719  cms.PSet(
720  label = cms.string("elecs:step0"),
721  src = cms.InputTag("gsfElectrons"),
722  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
723  select = cms.string("pt>25 & abs(eta)<2.5 & (dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
724  min = cms.int32(1),
725  max = cms.int32(1),
726  ),
727  cms.PSet(
728  label = cms.string("pvs:step1"),
729  src = cms.InputTag("offlinePrimaryVertices"),
730  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
731  max = cms.int32(10),
732  ),
733  cms.PSet(
734  label = cms.string("pvs:step2"),
735  src = cms.InputTag("offlinePrimaryVertices"),
736  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
737  max = cms.int32(8),
738  ),
739  cms.PSet(
740  label = cms.string("pvs:step3"),
741  src = cms.InputTag("offlinePrimaryVertices"),
742  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
743  max = cms.int32(6),
744  ),
745  cms.PSet(
746  label = cms.string("pvs:step4"),
747  src = cms.InputTag("offlinePrimaryVertices"),
748  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
749  max = cms.int32(4),
750  ),
751  cms.PSet(
752  label = cms.string("pvs:step5"),
753  src = cms.InputTag("offlinePrimaryVertices"),
754  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake"),
755  max = cms.int32(2),
756  ),
757  )
758 )