CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
topSingleLeptonDQM_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 = 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/"),
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("jets/calo:24jets"),
255  # src = cms.InputTag("ak5CaloJets"),
256  # jetCorrector = cms.string("ak5CaloL2L3"),
257  # select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
258  # jetID = cms.PSet(
259  # label = cms.InputTag("ak5JetID"),
260  # select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
261  # ),
262  # min = cms.int32(2),
263  # max = cms.int32(4),
264  #),
265  cms.PSet(
266  label = cms.string("jets/calo:step1"),
267  src = cms.InputTag("ak5CaloJets"),
268  jetCorrector = cms.string("ak5CaloL2L3"),
269  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
270  jetID = cms.PSet(
271  label = cms.InputTag("ak5JetID"),
272  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
273  ),
274  min = cms.int32(1),
275  ),
276  cms.PSet(
277  label = cms.string("jets/calo:step2"),
278  src = cms.InputTag("ak5CaloJets"),
279  jetCorrector = cms.string("ak5CaloL2L3"),
280  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
281  jetID = cms.PSet(
282  label = cms.InputTag("ak5JetID"),
283  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
284  ),
285  min = cms.int32(2),
286  ),
287  cms.PSet(
288  label = cms.string("jets/calo:step3"),
289  src = cms.InputTag("ak5CaloJets"),
290  jetCorrector = cms.string("ak5CaloL2L3"),
291  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
292  jetID = cms.PSet(
293  label = cms.InputTag("ak5JetID"),
294  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
295  ),
296  min = cms.int32(3),
297  ),
298  cms.PSet(
299  label = cms.string("jets/calo:step4"),
300  src = cms.InputTag("ak5CaloJets"),
301  jetCorrector = cms.string("ak5CaloL2L3"),
302  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
303  jetID = cms.PSet(
304  label = cms.InputTag("ak5JetID"),
305  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
306  ),
307  min = cms.int32(4),
308  ),
309  )
310 )
311 topSingleMuonMediumDQM = cms.EDAnalyzer("TopSingleLeptonDQM",
312  ## ------------------------------------------------------
313  ## SETUP
314  ##
315  ## configuration of the MonitoringEnsemble(s)
316  ## [mandatory] : optional PSets may be omitted
317  ##
318  setup = cms.PSet(
319  ## sub-directory to write the monitor histograms to
320  ## [mandatory] : should not be changed w/o explicit
321  ## communication to TopCom!
322  directory = cms.string("Physics/Top/TopSingleMuonMediumDQM/"),
323  ## [mandatory]
324  sources = cms.PSet(
325  muons = cms.InputTag("muons"),
326  elecs = cms.InputTag("gsfElectrons"),
327  jets = cms.InputTag("ak5CaloJets"),
328  mets = cms.VInputTag("met", "tcMet", "pfMet"),
329  pvs = cms.InputTag("offlinePrimaryVertices")
330 
331  ),
332  ## [optional] : when omitted the verbosity level is set to STANDARD
333  monitoring = cms.PSet(
334  verbosity = cms.string("DEBUG")
335  ),
336  ## [optional] : when omitted all monitoring plots for primary vertices
337  ## will be filled w/o extras
338  pvExtras = cms.PSet(
339  ## when omitted electron plots will be filled w/o additional pre-
340  ## selection of the primary vertex candidates
341  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
342  ),
343  ## [optional] : when omitted all monitoring plots for muons
344  ## will be filled w/o extras
345  muonExtras = cms.PSet(
346  ## when omitted muon plots will be filled w/o additional pre-
347  ## selection of the muon candidates
348  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"),
349  ## when omitted isolated muon multiplicity plot will be equi-
350  ## valent to inclusive muon multiplicity plot
351  isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1")
352  ),
353  ## [optional] : when omitted all monitoring plots for jets
354  ## will be filled w/o extras
355  jetExtras = cms.PSet(
356  ## when omitted monitor plots for pt will be filled from uncorrected
357  ## jets
358  jetCorrector = cms.string("ak5CaloL2L3"),
359  ## when omitted monitor plots will be filled w/o additional cut on
360  ## jetID
361  jetID = cms.PSet(
362  label = cms.InputTag("ak5JetID"),
363  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
364  ),
365  ## when omitted no extra selection will be applied on jets before
366  ## filling the monitor histograms; if jetCorrector is present the
367  ## selection will be applied to corrected jets
368  select = cms.string("pt>15 & abs(eta)<2.5& emEnergyFraction>0.01"),
369  ## when omitted monitor histograms for b-tagging will not be filled
370  jetBTaggers = cms.PSet(
371  trackCountingEff = cms.PSet(
372  label = cms.InputTag("trackCountingHighEffBJetTags" ),
373  workingPoint = cms.double(1.25)
374  ),
375  trackCountingPur = cms.PSet(
376  label = cms.InputTag("trackCountingHighPurBJetTags" ),
377  workingPoint = cms.double(3.00)
378  ),
379  secondaryVertex = cms.PSet(
380  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
381  workingPoint = cms.double(2.05)
382  )
383  ),
384  ),
385  ## [optional] : when omitted no mass window will be applied
386  ## for the W mass before filling the event monitoring plots
387  massExtras = cms.PSet(
388  lowerEdge = cms.double( 70.),
389  upperEdge = cms.double(110.)
390  ),
391  ## [optional] : when omitted the monitoring plots for triggering
392  ## will be empty
393  triggerExtras = cms.PSet(
394  src = cms.InputTag("TriggerResults","","HLT"),
395  paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
396  'HLT_Mu5:HLT_QuadJet15U',
397  'HLT_Mu7:HLT_QuadJet15U',
398  'HLT_Mu9:HLT_QuadJet15U',
399  'HLT_Mu11:HLT_QuadJet15U'])
400  )
401  ),
402  ## ------------------------------------------------------
403  ## PRESELECTION
404  ##
405  ## setup of the event preselection, which will not
406  ## be monitored
407  ## [mandatory] : but may be empty
408  ##
409  preselection = cms.PSet(
410  ## [optional] : when omitted no preselection is applied
411  #trigger = cms.PSet(
412  # src = cms.InputTag("TriggerResults","","HLT"),
413  # select = cms.vstring(['HLT_Mu15_v2'])
414  #),
415  ## [optional] : when omitted no preselection is applied
416  vertex = cms.PSet(
417  src = cms.InputTag("offlinePrimaryVertices"),
418  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
419  )
420  ),
421  ## ------------------------------------------------------
422  ## SELECTION
423  ##
424  ## monitor histrograms are filled after each selection
425  ## step, the selection is applied in the order defined
426  ## by this vector
427  ## [mandatory] : may be empty or contain an arbitrary
428  ## number of PSets
429  selection = cms.VPSet(
430  cms.PSet(
431  label = cms.string("muons:step0"),
432  src = cms.InputTag("muons"),
433  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"),
434  min = cms.int32(1),
435  max = cms.int32(1),
436  ),
437  cms.PSet(
438  label = cms.string("jets/calo:step1"),
439  src = cms.InputTag("ak5CaloJets"),
440  jetCorrector = cms.string("ak5CaloL2L3"),
441  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
442  jetID = cms.PSet(
443  label = cms.InputTag("ak5JetID"),
444  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
445  ),
446  min = cms.int32(1),
447  ),
448  cms.PSet(
449  label = cms.string("jets/calo:step2"),
450  src = cms.InputTag("ak5CaloJets"),
451  jetCorrector = cms.string("ak5CaloL2L3"),
452  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
453  jetID = cms.PSet(
454  label = cms.InputTag("ak5JetID"),
455  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
456  ),
457  min = cms.int32(2),
458  ),
459  cms.PSet(
460  label = cms.string("jets/calo:step3"),
461  src = cms.InputTag("ak5CaloJets"),
462  jetCorrector = cms.string("ak5CaloL2L3"),
463  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
464  jetID = cms.PSet(
465  label = cms.InputTag("ak5JetID"),
466  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
467  ),
468  min = cms.int32(3),
469  ),
470  cms.PSet(
471  label = cms.string("jets/calo:step4"),
472  src = cms.InputTag("ak5CaloJets"),
473  jetCorrector = cms.string("ak5CaloL2L3"),
474  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
475  jetID = cms.PSet(
476  label = cms.InputTag("ak5JetID"),
477  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
478  ),
479  min = cms.int32(4),
480  ),
481  )
482 )
483 
484 topSingleElectronLooseDQM = cms.EDAnalyzer("TopSingleLeptonDQM",
485  ## ------------------------------------------------------
486  ## SETUP
487  ##
488  ## configuration of the MonitoringEnsemble(s)
489  ## [mandatory] : optional PSets may be omitted
490  ##
491  setup = cms.PSet(
492  ## sub-directory to write the monitor histograms to
493  ## [mandatory] : should not be changed w/o explicit
494  ## communication to TopCom!
495  directory = cms.string("Physics/Top/TopSingleElectronLooseDQM/"),
496  ## [mandatory]
497  sources = cms.PSet(
498  muons = cms.InputTag("muons"),
499  elecs = cms.InputTag("gsfElectrons"),
500  jets = cms.InputTag("ak5CaloJets"),
501  mets = cms.VInputTag("met", "tcMet", "pfMet"),
502  pvs = cms.InputTag("offlinePrimaryVertices")
503 
504  ),
505  ## [optional] : when omitted the verbosity level is set to STANDARD
506  monitoring = cms.PSet(
507  verbosity = cms.string("DEBUG")
508  ),
509  ## [optional] : when omitted all monitoring plots for primary vertices
510  ## will be filled w/o extras
511  pvExtras = cms.PSet(
512  ## when omitted electron plots will be filled w/o additional pre-
513  ## selection of the primary vertex candidates
514  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
515  ),
516  ## [optional] : when omitted all monitoring plots for electrons
517  ## will be filled w/o extras
518  elecExtras = cms.PSet(
519  ## when omitted electron plots will be filled w/o cut on electronId
520  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
521  ## when omitted electron plots will be filled w/o additional pre-
522  ## selection of the electron candidates
523  select = cms.string("pt>15 & abs(eta)<2.5"),
524  ## when omitted isolated electron multiplicity plot will be equi-
525  ## valent to inclusive electron multiplicity plot
526  isolation = cms.string("(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
527  ),
528  ## [optional] : when omitted all monitoring plots for jets
529  ## will be filled w/o extras
530  jetExtras = cms.PSet(
531  ## when omitted monitor plots for pt will be filled from uncorrected
532  ## jets
533  jetCorrector = cms.string("ak5CaloL2L3"),
534  ## when omitted monitor plots will be filled w/o additional cut on
535  ## jetID
536  jetID = cms.PSet(
537  label = cms.InputTag("ak5JetID"),
538  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
539  ),
540  ## when omitted no extra selection will be applied on jets before
541  ## filling the monitor histograms; if jetCorrector is present the
542  ## selection will be applied to corrected jets
543  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
544  ## when omitted monitor histograms for b-tagging will not be filled
545  jetBTaggers = cms.PSet(
546  trackCountingEff = cms.PSet(
547  label = cms.InputTag("trackCountingHighEffBJetTags" ),
548  workingPoint = cms.double(1.25)
549  ),
550  trackCountingPur = cms.PSet(
551  label = cms.InputTag("trackCountingHighPurBJetTags" ),
552  workingPoint = cms.double(3.00)
553  ),
554  secondaryVertex = cms.PSet(
555  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
556  workingPoint = cms.double(2.05)
557  )
558  ),
559  ),
560  ## [optional] : when omitted no mass window will be applied
561  ## for the W mass before filling the event monitoring plots
562  massExtras = cms.PSet(
563  lowerEdge = cms.double( 70.),
564  upperEdge = cms.double(110.)
565  ),
566  ## [optional] : when omitted the monitoring plots for triggering
567  ## will be empty
568  triggerExtras = cms.PSet(
569  src = cms.InputTag("TriggerResults","","HLT"),
570  paths = cms.vstring(['HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
571  )
572  ),
573  ## ------------------------------------------------------
574  ## PRESELECTION
575  ##
576  ## setup of the event preselection, which will not
577  ## be monitored
578  ## [mandatory] : but may be empty
579  ##
580  preselection = cms.PSet(
581  ## [optional] : when omitted no preselection is applied
582  #trigger = cms.PSet(
583  # src = cms.InputTag("TriggerResults","","HLT"),
584  # select = cms.vstring(['HLT_Ele15_SW_CaloEleId_L1R'])
585  #),
586  ## [optional] : when omitted no preselection is applied
587  vertex = cms.PSet(
588  src = cms.InputTag("offlinePrimaryVertices"),
589  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
590  )
591  ),
592  ## ------------------------------------------------------
593  ## SELECTION
594  ##
595  ## monitor histrograms are filled after each selection
596  ## step, the selection is applied in the order defined
597  ## by this vector
598  ## [mandatory] : may be empty or contain an arbitrary
599  ## number of PSets
600  selection = cms.VPSet(
601  cms.PSet(
602  label = cms.string("elecs:step0"),
603  src = cms.InputTag("gsfElectrons"),
604  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
605  select = cms.string("pt>15 & abs(eta)<2.5"),
606  min = cms.int32(1),
607  ),
608  cms.PSet(
609  label = cms.string("jets/calo:step1"),
610  src = cms.InputTag("ak5CaloJets"),
611  jetCorrector = cms.string("ak5CaloL2L3"),
612  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
613  jetID = cms.PSet(
614  label = cms.InputTag("ak5JetID"),
615  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
616  ),
617  min = cms.int32(1),
618  ),
619  cms.PSet(
620  label = cms.string("jets/calo:step2"),
621  src = cms.InputTag("ak5CaloJets"),
622  jetCorrector = cms.string("ak5CaloL2L3"),
623  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
624  jetID = cms.PSet(
625  label = cms.InputTag("ak5JetID"),
626  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
627  ),
628  min = cms.int32(2),
629  ),
630  cms.PSet(
631  label = cms.string("jets/calo:step3"),
632  src = cms.InputTag("ak5CaloJets"),
633  jetCorrector = cms.string("ak5CaloL2L3"),
634  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
635  jetID = cms.PSet(
636  label = cms.InputTag("ak5JetID"),
637  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
638  ),
639  min = cms.int32(3),
640  ),
641  cms.PSet(
642  label = cms.string("jets/calo:step4"),
643  src = cms.InputTag("ak5CaloJets"),
644  jetCorrector = cms.string("ak5CaloL2L3"),
645  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
646  jetID = cms.PSet(
647  label = cms.InputTag("ak5JetID"),
648  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
649  ),
650  min = cms.int32(4),
651  ),
652  )
653 )
654 
655 topSingleElectronMediumDQM = cms.EDAnalyzer("TopSingleLeptonDQM",
656  ## ------------------------------------------------------
657  ## SETUP
658  ##
659  ## configuration of the MonitoringEnsemble(s)
660  ## [mandatory] : optional PSets may be omitted
661  ##
662  setup = cms.PSet(
663  ## sub-directory to write the monitor histograms to
664  ## [mandatory] : should not be changed w/o explicit
665  ## communication to TopCom!
666  directory = cms.string("Physics/Top/TopSingleElectronMediumDQM/"),
667  ## [mandatory]
668  sources = cms.PSet(
669  muons = cms.InputTag("muons"),
670  elecs = cms.InputTag("gsfElectrons"),
671  jets = cms.InputTag("ak5CaloJets"),
672  mets = cms.VInputTag("met", "tcMet", "pfMet"),
673  pvs = cms.InputTag("offlinePrimaryVertices")
674 
675  ),
676  ## [optional] : when omitted the verbosity level is set to STANDARD
677  monitoring = cms.PSet(
678  verbosity = cms.string("DEBUG")
679  ),
680  ## [optional] : when omitted all monitoring plots for primary vertices
681  ## will be filled w/o extras
682  pvExtras = cms.PSet(
683  ## when omitted electron plots will be filled w/o additional pre-
684  ## selection of the primary vertex candidates
685  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
686  ),
687  ## [optional] : when omitted all monitoring plots for electrons
688  ## will be filled w/o extras
689  elecExtras = cms.PSet(
690  ## when omitted electron plots will be filled w/o cut on electronId
691  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
692  ## when omitted electron plots will be filled w/o additional pre-
693  ## selection of the electron candidates
694  select = cms.string("pt>25 & abs(eta)<2.5 & (dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
695  ## when omitted isolated electron multiplicity plot will be equi-
696  ## valent to inclusive electron multiplicity plot
697  isolation = cms.string("(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
698  ),
699  ## [optional] : when omitted all monitoring plots for jets
700  ## will be filled w/o extras
701  jetExtras = cms.PSet(
702  ## when omitted monitor plots for pt will be filled from uncorrected
703  ## jets
704  jetCorrector = cms.string("ak5CaloL2L3"),
705  ## when omitted monitor plots will be filled w/o additional cut on
706  ## jetID
707  jetID = cms.PSet(
708  label = cms.InputTag("ak5JetID"),
709  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
710  ),
711  ## when omitted no extra selection will be applied on jets before
712  ## filling the monitor histograms; if jetCorrector is present the
713  ## selection will be applied to corrected jets
714  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
715  ## when omitted monitor histograms for b-tagging will not be filled
716  jetBTaggers = cms.PSet(
717  trackCountingEff = cms.PSet(
718  label = cms.InputTag("trackCountingHighEffBJetTags" ),
719  workingPoint = cms.double(1.25)
720  ),
721  trackCountingPur = cms.PSet(
722  label = cms.InputTag("trackCountingHighPurBJetTags" ),
723  workingPoint = cms.double(3.00)
724  ),
725  secondaryVertex = cms.PSet(
726  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
727  workingPoint = cms.double(2.05)
728  )
729  ),
730  ),
731  ## [optional] : when omitted no mass window will be applied
732  ## for the W mass before filling the event monitoring plots
733  massExtras = cms.PSet(
734  lowerEdge = cms.double( 70.),
735  upperEdge = cms.double(110.)
736  ),
737  ## [optional] : when omitted the monitoring plots for triggering
738  ## will be empty
739  triggerExtras = cms.PSet(
740  src = cms.InputTag("TriggerResults","","HLT"),
741  paths = cms.vstring([ 'HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
742  )
743  ),
744  ## ------------------------------------------------------
745  ## PRESELECTION
746  ##
747  ## setup of the event preselection, which will not
748  ## be monitored
749  ## [mandatory] : but may be empty
750  ##
751  preselection = cms.PSet(
752  ## [optional] : when omitted no preselection is applied
753  #trigger = cms.PSet(
754  # src = cms.InputTag("TriggerResults","","HLT"),
755  # select = cms.vstring(['HLT_Ele15_SW_CaloEleId_L1R'])
756  #),
757  ## [optional] : when omitted no preselection is applied
758  vertex = cms.PSet(
759  src = cms.InputTag("offlinePrimaryVertices"),
760  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
761  )
762  ),
763  ## ------------------------------------------------------
764  ## SELECTION
765  ##
766  ## monitor histrograms are filled after each selection
767  ## step, the selection is applied in the order defined
768  ## by this vector
769  ## [mandatory] : may be empty or contain an arbitrary
770  ## number of PSets
771  selection = cms.VPSet(
772  cms.PSet(
773  label = cms.string("elecs:step0"),
774  src = cms.InputTag("gsfElectrons"),
775  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
776  select = cms.string("pt>25 & abs(eta)<2.5 & (dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
777  min = cms.int32(1),
778  max = cms.int32(1),
779  ),
780  cms.PSet(
781  label = cms.string("jets/calo:step1"),
782  src = cms.InputTag("ak5CaloJets"),
783  jetCorrector = cms.string("ak5CaloL2L3"),
784  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
785  jetID = cms.PSet(
786  label = cms.InputTag("ak5JetID"),
787  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
788  ),
789  min = cms.int32(1),
790  ),
791  cms.PSet(
792  label = cms.string("jets/calo:step2"),
793  src = cms.InputTag("ak5CaloJets"),
794  jetCorrector = cms.string("ak5CaloL2L3"),
795  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
796  jetID = cms.PSet(
797  label = cms.InputTag("ak5JetID"),
798  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
799  ),
800  min = cms.int32(2),
801  ),
802  cms.PSet(
803  label = cms.string("jets/calo:step3"),
804  src = cms.InputTag("ak5CaloJets"),
805  jetCorrector = cms.string("ak5CaloL2L3"),
806  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
807  jetID = cms.PSet(
808  label = cms.InputTag("ak5JetID"),
809  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
810  ),
811  min = cms.int32(3),
812  ),
813  cms.PSet(
814  label = cms.string("jets/calo:step4"),
815  src = cms.InputTag("ak5CaloJets"),
816  jetCorrector = cms.string("ak5CaloL2L3"),
817  select = cms.string("pt>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
818  jetID = cms.PSet(
819  label = cms.InputTag("ak5JetID"),
820  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
821  ),
822  min = cms.int32(4),
823  ),
824  )
825 )