CMS 3D CMS Logo

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