CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
singleTopDQM_cfi.py
Go to the documentation of this file.
2 
3 
4 singleTopDQM = cms.EDAnalyzer("SingleTopTChannelLeptonDQM",
5  ## ------------------------------------------------------
6  ## SETUP
7  ##
8  ## configuration of the MonitoringEnsemble(s)
9  ## [mandatory] : optional PSets may be omitted
10  ##
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/SingleTopDQM/"),
16  ## [mandatory]
17  sources = cms.PSet(
18  muons = cms.InputTag("muons"),
19  elecs = cms.InputTag("particleFlow"),
20  jets = cms.InputTag("ak4PFJetsCHS"),
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("simpleEleId70cIso"), 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("ak4CaloL2L3"),
63  ## when omitted monitor plots will be filled w/o additional cut on
64  ## jetID
65 # jetID = cms.PSet(
66 # label = cms.InputTag("ak4JetID"),
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>15 & abs(eta)<2.5 & emEnergyFraction>0.01"),
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  ##
93  ## setup of the event preselection, which will not
94  ## be monitored
95  ## [mandatory] : but may be empty
96  ##
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  ##
112  ## monitor histrograms are filled after each selection
113  ## step, the selection is applied in the order defined
114  ## by this vector
115  ## [mandatory] : may be empty or contain an arbitrary
116  ## number of PSets
117  ##
118  selection = cms.VPSet(
119  cms.PSet(
120  label = cms.string("jets/calo:step0"),
121  src = cms.InputTag("ak4CaloJets"),
122  select = cms.string("pt>20 & abs(eta)<2.1 & 0.05<emEnergyFraction"),
123  jetID = cms.PSet(
124  label = cms.InputTag("ak4JetID"),
125  select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
126  ),
127  min = cms.int32(2),
128  ),
129  )
130 )
131 
132 singleTopMuonMediumDQM = cms.EDAnalyzer("SingleTopTChannelLeptonDQM",
133  ## ------------------------------------------------------
134  ## SETUP
135  ##
136  ## configuration of the MonitoringEnsemble(s)
137  ## [mandatory] : optional PSets may be omitted
138  ##
139  setup = cms.PSet(
140  ## sub-directory to write the monitor histograms to
141  ## [mandatory] : should not be changed w/o explicit
142  ## communication to TopCom!
143  directory = cms.string("Physics/Top/SingleTopMuonMediumDQM/"),
144  ## [mandatory]
145  sources = cms.PSet(
146  muons = cms.InputTag("particleFlow"),
147  elecs_gsf = cms.InputTag("gedGsfElectrons"),
148  elecs = cms.InputTag("particleFlow"),
149  jets = cms.InputTag("ak4PFJetsCHS"),
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  ## [optional] : when omitted all monitoring plots for primary vertices
158  ## will be filled w/o extras
159 # pvExtras = cms.PSet(
160  ## when omitted electron plots will be filled w/o additional pre-
161  ## selection of the primary vertex candidates
162 # select = cms.string("") #abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
163 # ),
164  ## [optional] : when omitted all monitoring plots for muons
165  ## will be filled w/o extras
166  muonExtras = cms.PSet(
167  ## when omitted muon plots will be filled w/o additional pre-
168  ## selection of the muon candidates
169  select = cms.string("abs(muonRef.eta)<2.1")
170  ## & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10
171  ##& (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),
172  ## when omitted isolated muon multiplicity plot will be equi-
173  ## valent to inclusive muon multiplicity plot
174  ## isolation = cms.string("(muonRef.isolationR03.sumPt+muonRef.isolationR03.emEt+muonRef.isolationR03.hadEt)/muonRef.pt<10" )
175  ## isolation = cms.string("(muonRef.isolationR03.sumPt+muonRef.isolationR03.emEt+muonRef.isolationR03.hadEt)/muonRef.pt<0.1")
176  ),
177  ## [optional] : when omitted all monitoring plots for jets
178  ## will be filled w/o extras
179  jetExtras = cms.PSet(
180  ## when omitted monitor plots for pt will be filled from uncorrected
181  ## jets
182  jetCorrector = cms.string("ak4PFL2L3"),
183  ## when omitted monitor plots will be filled w/o additional cut on
184  ## jetID
185 # jetID = cms.PSet(
186 # label = cms.InputTag("ak4JetID"),
187 # select = cms.string(""), ##fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
188 # ),
189  ## when omitted no extra selection will be applied on jets before
190  ## filling the monitor histograms; if jetCorrector is present the
191  ## selection will be applied to corrected jets
192  select = cms.string("pt>15 & abs(eta)<2.5"), # & neutralEmEnergyFraction >0.01 & chargedEmEnergyFraction>0.01"),
193  ## when omitted monitor histograms for b-tagging will not be filled
194  jetBTaggers = cms.PSet(
195  trackCountingEff = cms.PSet(
196  label = cms.InputTag("trackCountingHighEffBJetTags" ),
197  workingPoint = cms.double(1.25)
198  ),
199  trackCountingPur = cms.PSet(
200  label = cms.InputTag("trackCountingHighPurBJetTags" ),
201  workingPoint = cms.double(3.41)
202  ),
203  secondaryVertex = cms.PSet(
204  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
205  workingPoint = cms.double(2.05)
206  ),
207  combinedSecondaryVertex = cms.PSet(
208  label = cms.InputTag("combinedSecondaryVertexBJetTags"),
209  workingPoint = cms.double(0.898)
210  )
211  ),
212  ),
213  ## [optional] : when omitted no mass window will be applied
214  ## for the W mass before filling the event monitoring plots
215 # massExtras = cms.PSet(
216 # lowerEdge = cms.double( 70.),
217 # upperEdge = cms.double(110.)
218 # ),
219  ## [optional] : when omitted the monitoring plots for triggering
220  ## will be empty
221 # triggerExtras = cms.PSet(
222 # src = cms.InputTag("TriggerResults","","HLT"),
223 # paths = cms.vstring(['HLT_IsoMu17_eta2p1_CentralPFNoPUJet30_BTagIPIter_v1'])
224 # 'HLT_IsoMu24_eta2p1_v12',
225 # 'HLT_IsoMu20_eta2p1_CentralPFJet30_BTagIPIter_v2',
226 # 'HLT_IsoMu20_eta2p1_CentralPFJet30_BTagIPIter_v3'])
227 # )
228  ),
229  ## ------------------------------------------------------
230  ## PRESELECTION
231  ##
232  ## setup of the event preselection, which will not
233  ## be monitored
234  ## [mandatory] : but may be empty
235  ##
236  preselection = cms.PSet(
237  ## [optional] : when omitted no preselection is applied
238 # trigger = cms.PSet(
239 # src = cms.InputTag("TriggerResults","","HLT"),
240 # select = cms.vstring(['HLT_IsoMu17_eta2p1_CentralPFNoPUJet30_BTagIPIter_v1'])
241 # ),
242  ## [optional] : when omitted no preselection is applied
243 # vertex = cms.PSet(
244 # src = cms.InputTag("offlinePrimaryVertices"),
245 # select = cms.string('!isFake && ndof >= 4 && abs(z)<24. && position.Rho <= 2.0')
246 # )
247  ),
248  ## ------------------------------------------------------
249  ## SELECTION
250  ##
251  ## monitor histrograms are filled after each selection
252  ## step, the selection is applied in the order defined
253  ## by this vector
254  ## [mandatory] : may be empty or contain an arbitrary
255  ## number of PSets
256  selection = cms.VPSet(
257  cms.PSet(
258  label = cms.string("presel"),
259  src = cms.InputTag("offlinePrimaryVertices"),
260  select = cms.string('!isFake && ndof >= 4 && abs(z)<24. && position.Rho <= 2.0 '),
261  ),
262  cms.PSet(
263  label = cms.string("muons/pf:step0"),
264  src = cms.InputTag("particleFlow"),
265  select = cms.string("muonRef.pt>20 & abs(muonRef.eta)<2.1 & muonRef.isNonnull & muonRef.innerTrack.isNonnull & muonRef.isGlobalMuon & muonRef.isTrackerMuon & muonRef.innerTrack.numberOfValidHits>10 & muonRef.globalTrack.hitPattern.numberOfValidMuonHits>0 & muonRef.globalTrack.normalizedChi2<10 & muonRef.innerTrack.hitPattern.pixelLayersWithMeasurement>=1 & muonRef.numberOfMatches>1 & abs(muonRef.innerTrack.dxy)<0.02 & (muonRef.pfIsolationR04.sumChargedHadronPt + muonRef.pfIsolationR04.sumNeutralHadronEt + muonRef.pfIsolationR04.sumPhotonEt)/muonRef.pt < 0.15"),
266 
267  min = cms.int32(1),
268  max = cms.int32(1),
269  ),
270  cms.PSet(
271  label = cms.string("jets/pf:step1"),
272  src = cms.InputTag("ak4PFJetsCHS"),
273  jetCorrector = cms.string("ak4PFL2L3"),
274  select = cms.string(" pt>30 & abs(eta)<4.5 & numberOfDaughters>1 & ((abs(eta)>2.4) || ( chargedHadronEnergyFraction > 0 & chargedMultiplicity>0 & chargedEmEnergyFraction<0.99)) & neutralEmEnergyFraction < 0.99 & neutralHadronEnergyFraction < 0.99"),
275 
276  min = cms.int32(1),
277  max = cms.int32(1),
278  ),
279  cms.PSet(
280  label = cms.string("jets/pf:step2"),
281  src = cms.InputTag("ak4PFJetsCHS"),
282  jetCorrector = cms.string("ak4PFL2L3"),
283  select = cms.string(" pt>30 & abs(eta)<4.5 & numberOfDaughters>1 & ((abs(eta)>2.4) || ( chargedHadronEnergyFraction > 0 & chargedMultiplicity>0 & chargedEmEnergyFraction<0.99)) & neutralEmEnergyFraction < 0.99 & neutralHadronEnergyFraction < 0.99"),
284 
285  min = cms.int32(2),
286  max = cms.int32(2),
287  ),
288  )
289 )
290 
291 singleTopElectronMediumDQM = cms.EDAnalyzer("SingleTopTChannelLeptonDQM",
292  ## ------------------------------------------------------
293  ## SETUP
294  ##
295  ## configuration of the MonitoringEnsemble(s)
296  ## [mandatory] : optional PSets may be omitted
297  ##
298  setup = cms.PSet(
299  ## sub-directory to write the monitor histograms to
300  ## [mandatory] : should not be changed w/o explicit
301  ## communication to TopCom!
302  directory = cms.string("Physics/Top/SingleTopElectronMediumDQM/"),
303  ## [mandatory]
304  sources = cms.PSet(
305  muons = cms.InputTag("particleFlow"),
306  elecs_gsf = cms.InputTag("gedGsfElectrons"),
307  elecs = cms.InputTag("particleFlow"),
308  jets = cms.InputTag("ak4PFJetsCHS"),
309  mets = cms.VInputTag("met", "tcMet", "pfMet"),
310  pvs = cms.InputTag("offlinePrimaryVertices")
311 
312  ),
313  ## [optional] : when omitted the verbosity level is set to STANDARD
314  monitoring = cms.PSet(
315  verbosity = cms.string("DEBUG")
316  ),
317  ## [optional] : when omitted all monitoring plots for primary vertices
318  ## will be filled w/o extras
319 # pvExtras = cms.PSet(
320  ## when omitted electron plots will be filled w/o additional pre-
321  ## selection of the primary vertex candidates
322 # select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
323 # ),
324  ## [optional] : when omitted all monitoring plots for electrons
325  ## will be filled w/o extras
326  elecExtras = cms.PSet(
327  ## when omitted electron plots will be filled w/o cut on electronId
328  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
329  ## when omitted electron plots will be filled w/o additional pre-
330  ## selection of the electron candidates
331  select = cms.string("gsfElectronRef.pt>25"), ## & abs(eta)<2.5 & (dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
332  ## when omitted isolated electron multiplicity plot will be equi-
333  ## valent to inclusive electron multiplicity plot
334  ## isolation = cms.string("(dr03TkSumPt+dr03EcalRecHitSumEt+dr03HcalTowerSumEt)/pt<0.1"),
335  ),
336  ## [optional] : when omitted all monitoring plots for jets
337  ## will be filled w/o extras
338  jetExtras = cms.PSet(
339  ## when omitted monitor plots for pt will be filled from uncorrected
340  ## jets
341  jetCorrector = cms.string("ak4PFL2L3"),
342  ## when omitted monitor plots will be filled w/o additional cut on
343  ## jetID
344 # jetID = cms.PSet(
345 # label = cms.InputTag("ak4JetID"),
346 # select = cms.string(" ")
347 # ),
348  ## when omitted no extra selection will be applied on jets before
349  ## filling the monitor histograms; if jetCorrector is present the
350  ## selection will be applied to corrected jets
351  select = cms.string("pt>15 & abs(eta)<2.5"), ## & emEnergyFraction>0.01"),
352  ## when omitted monitor histograms for b-tagging will not be filled
353  jetBTaggers = cms.PSet(
354  trackCountingEff = cms.PSet(
355  label = cms.InputTag("trackCountingHighEffBJetTags" ),
356  workingPoint = cms.double(1.25)
357  ),
358  trackCountingPur = cms.PSet(
359  label = cms.InputTag("trackCountingHighPurBJetTags" ),
360  workingPoint = cms.double(3.41)
361  ),
362  secondaryVertex = cms.PSet(
363  label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
364  workingPoint = cms.double(2.05)
365  ),
366  combinedSecondaryVertex = cms.PSet(
367  label = cms.InputTag("combinedSecondaryVertexBJetTags"),
368  workingPoint = cms.double(0.898)
369  )
370  ),
371  ),
372  ## [optional] : when omitted no mass window will be applied
373  ## for the W mass before filling the event monitoring plots
374 # massExtras = cms.PSet(
375 # lowerEdge = cms.double( 70.),
376 # upperEdge = cms.double(110.)
377 # ),
378  ## [optional] : when omitted the monitoring plots for triggering
379  ## will be empty
380 # triggerExtras = cms.PSet(
381 # src = cms.InputTag("TriggerResults","","HLT"),
382 # paths = cms.vstring([ 'HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
383 ## paths = cms.vstring([''])
384 # )
385  ),
386  ## ------------------------------------------------------
387  ## PRESELECTION
388  ##
389  ## setup of the event preselection, which will not
390  ## be monitored
391  ## [mandatory] : but may be empty
392  ##
393  preselection = cms.PSet(
394  ## [optional] : when omitted no preselection is applied
395 # trigger = cms.PSet(
396 # src = cms.InputTag("TriggerResults","","HLT"),
397 # select = cms.vstring(['HLT_Ele15_SW_CaloEleId_L1R'])
398 # ),
399  ## [optional] : when omitted no preselection is applied
400 # vertex = cms.PSet(
401 # src = cms.InputTag("offlinePrimaryVertices"),
402 # select = cms.string('!isFake && ndof >= 4 && abs(z)<24. && position.Rho <= 2.0')
403 # )
404  ),
405  ## ------------------------------------------------------
406  ## SELECTION
407  ##
408  ## monitor histrograms are filled after each selection
409  ## step, the selection is applied in the order defined
410  ## by this vector
411  ## [mandatory] : may be empty or contain an arbitrary
412  ## number of PSets
413  selection = cms.VPSet(
414  cms.PSet(
415  label = cms.string("presel"),
416  src = cms.InputTag("offlinePrimaryVertices"),
417  select = cms.string('!isFake && ndof >= 4 && abs(z)<24. && position.Rho <= 2.0'),
418  ),
419  cms.PSet(
420  label = cms.string("elecs/pf:step0"),
421  src = cms.InputTag("particleFlow"),
422  electronId = cms.PSet( src = cms.InputTag("simpleEleId70cIso"), pattern = cms.int32(1) ),
423  select = cms.string("gsfElectronRef.pt>30 & abs(gsfElectronRef.eta)<2.5 & gsfElectronRef.isNonnull & gsfElectronRef.gsfTrack.isNonnull & ( abs(gsfElectronRef.superCluster.eta)> 1.5660 || abs(gsfElectronRef.superCluster.eta)<1.4442) & (gsfElectronRef.pfIsolationVariables.sumChargedHadronPt + gsfElectronRef.pfIsolationVariables.sumNeutralHadronEt + gsfElectronRef.pfIsolationVariables.sumPhotonEt)/gsfElectronRef.pt<0.125 & abs(gsfElectronRef.gsfTrack.dxy)<0.02 "),
424  min = cms.int32(1),
425  max = cms.int32(1),
426  ),
427  cms.PSet(
428  label = cms.string("jets/pf:step1"),
429  src = cms.InputTag("ak4PFJetsCHS"),
430  jetCorrector = cms.string("ak4PFL2L3"),
431  select = cms.string("pt>30 & abs(eta)<4.5 & numberOfDaughters>1 & ((abs(eta)>2.4) || ( chargedHadronEnergyFraction > 0 & chargedMultiplicity>0 & chargedEmEnergyFraction<0.99)) & neutralEmEnergyFraction < 0.99 & neutralHadronEnergyFraction < 0.99"),
432 
433  min = cms.int32(1),
434  max = cms.int32(1),
435 
436  ),
437  cms.PSet(
438  label = cms.string("jets/pf:step2"),
439  src = cms.InputTag("ak4PFJetsCHS"),
440  jetCorrector = cms.string("ak4PFL2L3"),
441  select = cms.string("pt>30 & abs(eta)<4.5 & numberOfDaughters>1 & ((abs(eta)>2.4) || ( chargedHadronEnergyFraction > 0 & chargedMultiplicity>0 & chargedEmEnergyFraction<0.99)) & neutralEmEnergyFraction < 0.99 & neutralHadronEnergyFraction < 0.99"),
442 
443  min = cms.int32(2),
444  max = cms.int32(2),
445 
446  ),
447  )
448 )