1 import FWCore.ParameterSet.Config
as cms
4 PVCut =
"abs(z) < 24. & position.rho < 2. & ndof > 4 & !isFake" 7 looseJetCut =
"(chargedHadronEnergyFraction()>0 && chargedMultiplicity()>0 && chargedEmEnergyFraction()<0.99 && neutralHadronEnergyFraction()<0.99 && neutralEmEnergyFraction()<0.99 && (chargedMultiplicity()+neutralMultiplicity())>1) && abs(eta)<=2.4 " 9 tightJetCut =
"(chargedHadronEnergyFraction()>0 && chargedMultiplicity()>0 && chargedEmEnergyFraction()<0.99 && neutralHadronEnergyFraction()<0.90 && neutralEmEnergyFraction()<0.90 && (chargedMultiplicity()+neutralMultiplicity())>1) && abs(eta)<=2.4 " 12 looseMuonCut =
"(muonRef.isNonnull && (muonRef.isGlobalMuon || muonRef.isTrackerMuon) && muonRef.isPFMuon)" 13 looseIsoCut =
"((muonRef.pfIsolationR04.sumChargedHadronPt + max(0., muonRef.pfIsolationR04.sumNeutralHadronEt + muonRef.pfIsolationR04.sumPhotonEt - 0.5 * muonRef.pfIsolationR04.sumPUPt) ) / muonRef.pt < 0.25)" 16 mediumMuonCut = looseMuonCut +
" muonRef.innerTrack.validFraction > 0.8" 19 tightMuonCut =
"muonRef.isNonnull && muonRef.isGlobalMuon && muonRef.isPFMuon && muonRef.globalTrack.normalizedChi2 < 10. && muonRef.globalTrack.hitPattern.numberOfValidMuonHits > 0 && " + \
20 "muonRef.numberOfMatchedStations > 1 && muonRef.innerTrack.hitPattern.numberOfValidPixelHits > 0 && muonRef.innerTrack.hitPattern.trackerLayersWithMeasurement > 5 " 21 tightIsoCut =
"(muonRef.pfIsolationR04.sumChargedHadronPt + max(0., muonRef.pfIsolationR04.sumNeutralHadronEt + muonRef.pfIsolationR04.sumPhotonEt - 0.5 * muonRef.pfIsolationR04.sumPUPt) ) / muonRef.pt < 0.15" 24 looseEleCut =
"(( gsfElectronRef.full5x5_sigmaIetaIeta() < 0.011 && gsfElectronRef.superCluster().isNonnull() && gsfElectronRef.superCluster().seed().isNonnull() && (gsfElectronRef.deltaEtaSuperClusterTrackAtVtx() - gsfElectronRef.superCluster().eta() + gsfElectronRef.superCluster().seed().eta()) < 0.00477 && abs(gsfElectronRef.deltaPhiSuperClusterTrackAtVtx()) < 0.222 && gsfElectronRef.hadronicOverEm() < 0.298 && abs(1.0 - gsfElectronRef.eSuperClusterOverP())*1.0/gsfElectronRef.ecalEnergy() < 0.241 && gsfElectronRef.gsfTrack.hitPattern().numberOfLostHits('MISSING_INNER_HITS') <= 1 && abs(gsfElectronRef.superCluster().eta()) < 1.479) || (gsfElectronRef.full5x5_sigmaIetaIeta() < 0.0314 && gsfElectronRef.superCluster().isNonnull() && gsfElectronRef.superCluster().seed().isNonnull() && (gsfElectronRef.deltaEtaSuperClusterTrackAtVtx() - gsfElectronRef.superCluster().eta() + gsfElectronRef.superCluster().seed().eta()) < 0.00868 && abs(gsfElectronRef.deltaPhiSuperClusterTrackAtVtx()) < 0.213 && gsfElectronRef.hadronicOverEm() < 0.101 && abs(1.0 - gsfElectronRef.eSuperClusterOverP())*1.0/gsfElectronRef.ecalEnergy() < 0.14 && gsfElectronRef.gsfTrack.hitPattern().numberOfLostHits('MISSING_INNER_HITS') <= 1 && abs(gsfElectronRef.superCluster().eta()) > 1.479))" 26 tightEleCut =
"((gsfElectronRef.full5x5_sigmaIetaIeta() < 0.00998 && gsfElectronRef.superCluster().isNonnull() && gsfElectronRef.superCluster().seed().isNonnull() && (gsfElectronRef.deltaEtaSuperClusterTrackAtVtx() - gsfElectronRef.superCluster().eta() + gsfElectronRef.superCluster().seed().eta()) < 0.00308 && abs(gsfElectronRef.deltaPhiSuperClusterTrackAtVtx()) < 0.0816 && gsfElectronRef.hadronicOverEm() < 0.0414 && abs(1.0 - gsfElectronRef.eSuperClusterOverP())*1.0/gsfElectronRef.ecalEnergy() < 0.0129 && gsfElectronRef.gsfTrack.hitPattern().numberOfLostHits('MISSING_INNER_HITS') <= 1 && abs(gsfElectronRef.superCluster().eta()) < 1.479) || (gsfElectronRef.full5x5_sigmaIetaIeta() < 0.0292 && gsfElectronRef.superCluster().isNonnull() && gsfElectronRef.superCluster().seed().isNonnull() && (gsfElectronRef.deltaEtaSuperClusterTrackAtVtx() - gsfElectronRef.superCluster().eta() + gsfElectronRef.superCluster().seed().eta()) < 0.00605 && abs(gsfElectronRef.deltaPhiSuperClusterTrackAtVtx()) < 0.0394 && gsfElectronRef.hadronicOverEm() < 0.0641 && abs(1.0 - gsfElectronRef.eSuperClusterOverP())*1.0/gsfElectronRef.ecalEnergy() < 0.0129 && gsfElectronRef.gsfTrack.hitPattern().numberOfLostHits('MISSING_INNER_HITS') <= 1 && abs(gsfElectronRef.superCluster().eta()) > 1.479))" 29 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
41 directory = cms.string(
"Physics/Top/TopSingleLeptonDQM/"),
44 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
45 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
46 jets = cms.InputTag(
"ak4PFJetsCHS"),
47 mets = cms.VInputTag(
"pfMet"),
48 pvs = cms.InputTag(
"offlinePrimaryVertices")
51 monitoring = cms.PSet(
52 verbosity = cms.string(
"DEBUG")
59 select = cms.string(
"abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
63 elecExtras = cms.PSet(
68 select = cms.string(
"pt>15 & abs(eta)<2.5 & abs(gsfTrack.d0)<1 & abs(gsfTrack.dz)<20"),
72 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
76 muonExtras = cms.PSet(
79 select = cms.string(looseMuonCut +
" && pt>10 & abs(eta)<2.4"),
82 isolation = cms.string(looseIsoCut),
99 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
103 massExtras = cms.PSet(
104 lowerEdge = cms.double( 70.),
105 upperEdge = cms.double(110.)
109 triggerExtras = cms.PSet(
110 src = cms.InputTag(
"TriggerResults",
"",
"HLT"),
111 paths = cms.vstring([
'HLT_Mu3:HLT_QuadJet15U',
112 'HLT_Mu5:HLT_QuadJet15U',
113 'HLT_Mu7:HLT_QuadJet15U',
114 'HLT_Mu9:HLT_QuadJet15U'])
124 preselection = cms.PSet(
132 src = cms.InputTag(
"offlinePrimaryVertices"),
133 select = cms.string(
'abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
145 selection = cms.VPSet(
147 label = cms.string(
"jets/pf:step0"),
148 src = cms.InputTag(
"ak4PFJetsCHS"),
149 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
170 directory = cms.string(
"Physics/Top/TopSingleMuonLooseDQM/"),
173 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
174 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
175 jets = cms.InputTag(
"ak4PFJetsCHS"),
176 mets = cms.VInputTag(
"pfMet"),
177 pvs = cms.InputTag(
"offlinePrimaryVertices")
180 monitoring = cms.PSet(
181 verbosity = cms.string(
"DEBUG")
186 select = cms.string(
"abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
190 muonExtras = cms.PSet(
193 select = cms.string(looseMuonCut +
" && pt > 10 & abs(eta)<2.4"),
196 isolation = cms.string(looseIsoCut)
200 jetExtras = cms.PSet(
213 select = cms.string(
"pt>30 & abs(eta)<2.4"),
215 jetBTaggers = cms.PSet(
216 cvsVertex = cms.PSet(
217 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
218 workingPoint = cms.double(0.890)
225 massExtras = cms.PSet(
226 lowerEdge = cms.double( 70.),
227 upperEdge = cms.double(110.)
231 triggerExtras = cms.PSet(
232 src = cms.InputTag(
"TriggerResults",
"",
"HLT"),
233 paths = cms.vstring([
'HLT_Mu3:HLT_QuadJet15U',
234 'HLT_Mu5:HLT_QuadJet15U',
235 'HLT_Mu7:HLT_QuadJet15U',
236 'HLT_Mu9:HLT_QuadJet15U',
237 'HLT_Mu11:HLT_QuadJet15U'])
247 preselection = cms.PSet(
249 src = cms.InputTag(
"offlinePrimaryVertices"),
250 select = cms.string(
'abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
261 selection = cms.VPSet(
263 label = cms.string(
"muons:step0"),
264 src = cms.InputTag(
"pfIsolatedMuonsEI"),
265 select = cms.string(looseMuonCut + looseIsoCut +
" && pt>10 & abs(eta)<2.4"),
269 label = cms.string(
"jets/pf:step1"),
270 src = cms.InputTag(
"ak4PFJetsCHS"),
271 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
275 label = cms.string(
"jets/pf:step2"),
276 src = cms.InputTag(
"ak4PFJetsCHS"),
277 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
281 label = cms.string(
"jets/pf:step3"),
282 src = cms.InputTag(
"ak4PFJetsCHS"),
283 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
287 label = cms.string(
"jets/pf:step4"),
288 src = cms.InputTag(
"pfMet"),
289 select = cms.string(
"pt>30"),
301 directory = cms.string(
"Physics/Top/TopSingleMuonMediumDQM/"),
303 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
304 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
305 jets = cms.InputTag(
"ak4PFJetsCHS"),
306 mets = cms.VInputTag(
"pfMet"),
307 pvs = cms.InputTag(
"offlinePrimaryVertices")
310 monitoring = cms.PSet(
311 verbosity = cms.string(
"DEBUG")
314 select = cms.string(PVCut)
316 elecExtras = cms.PSet(
317 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
318 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
320 muonExtras = cms.PSet(
321 select = cms.string(looseMuonCut +
" && pt>20 & abs(eta)<2.1"),
322 isolation = cms.string(looseIsoCut)
324 jetExtras = cms.PSet(
325 jetCorrector = cms.InputTag(
"ak4PFCHSL1FastL2L3Corrector"),
326 select = cms.string(
"pt>30 & abs(eta)< 2.4"),
327 jetBTaggers = cms.PSet(
328 cvsVertex = cms.PSet(
329 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
330 workingPoint = cms.double(0.890)
335 massExtras = cms.PSet(
336 lowerEdge = cms.double( 70.),
337 upperEdge = cms.double(110.)
341 preselection = cms.PSet(
343 src = cms.InputTag(
"offlinePrimaryVertices"),
344 select = cms.string(PVCut)
348 selection = cms.VPSet(
350 label = cms.string(
"muons:step0"),
351 src = cms.InputTag(
"pfIsolatedMuonsEI"),
352 select = cms.string(looseMuonCut +
" && pt>20 & abs(eta)<2.1"),
356 label = cms.string(
"jets/pf:step1"),
357 src = cms.InputTag(
"ak4PFJetsCHS"),
358 select = cms.string(
"pt>30 & abs(eta)<2.4"),
362 label = cms.string(
"met:step2"),
363 src = cms.InputTag(
"pfMet"),
364 select = cms.string(
"pt>30"),
369 topSingleElectronLooseDQM =
DQMEDAnalyzer(
'TopSingleLeptonDQM',
380 directory = cms.string(
"Physics/Top/TopSingleElectronLooseDQM/"),
383 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
384 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
385 jets = cms.InputTag(
"ak4PFJetsCHS"),
386 mets = cms.VInputTag(
"pfMet"),
387 pvs = cms.InputTag(
"offlinePrimaryVertices")
391 monitoring = cms.PSet(
392 verbosity = cms.string(
"DEBUG")
399 select = cms.string(
"abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
403 elecExtras = cms.PSet(
406 select = cms.string(
"pt>20 & abs(eta)<2.5"),
410 jetExtras = cms.PSet(
411 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
413 jetBTaggers = cms.PSet(
414 cvsVertex = cms.PSet(
415 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
416 workingPoint = cms.double(0.970)
423 massExtras = cms.PSet(
424 lowerEdge = cms.double( 70.),
425 upperEdge = cms.double(110.)
429 triggerExtras = cms.PSet(
430 src = cms.InputTag(
"TriggerResults",
"",
"HLT"),
431 paths = cms.vstring([
'HLT_Ele15_LW_L1R:HLT_QuadJetU15'])
441 preselection = cms.PSet(
443 src = cms.InputTag(
"offlinePrimaryVertices"),
444 select = cms.string(
'abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
453 selection = cms.VPSet(
455 label = cms.string(
"elecs:step0"),
456 src = cms.InputTag(
"pfIsolatedElectronsEI"),
457 select = cms.string(
"pt>20 & abs(eta)<2.5 "),
461 label = cms.string(
"jets/pf:step1"),
462 src = cms.InputTag(
"ak4PFJetsCHS"),
463 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
467 label = cms.string(
"jets/pf:step2"),
468 src = cms.InputTag(
"ak4PFJetsCHS"),
469 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
473 label = cms.string(
"jets/pf:step3"),
474 src = cms.InputTag(
"ak4PFJetsCHS"),
475 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
479 label = cms.string(
"jets/pf:step4"),
480 src = cms.InputTag(
"ak4PFJetsCHS"),
481 select = cms.string(
"pt>30 & abs(eta)<2.4 "),
487 topSingleElectronMediumDQM =
DQMEDAnalyzer(
'TopSingleLeptonDQM',
495 directory = cms.string(
"Physics/Top/TopSingleElectronMediumDQM/"),
497 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
498 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
499 jets = cms.InputTag(
"ak4PFJetsCHS"),
500 mets = cms.VInputTag(
"pfMet"),
501 pvs = cms.InputTag(
"offlinePrimaryVertices")
504 monitoring = cms.PSet(
505 verbosity = cms.string(
"DEBUG")
508 select = cms.string(PVCut)
510 elecExtras = cms.PSet(
511 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
512 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
514 muonExtras = cms.PSet(
515 select = cms.string(looseMuonCut +
" & pt>20 & abs(eta)<2.1"),
516 isolation = cms.string(looseIsoCut),
518 jetExtras = cms.PSet(
519 jetCorrector = cms.InputTag(
"ak4PFCHSL1FastL2L3Corrector"),
520 select = cms.string(
"pt>30 & abs(eta)<2.4"),
521 jetBTaggers = cms.PSet(
522 cvsVertex = cms.PSet(
523 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
524 workingPoint = cms.double(0.890)
529 massExtras = cms.PSet(
530 lowerEdge = cms.double( 70.),
531 upperEdge = cms.double(110.)
534 preselection = cms.PSet(
536 src = cms.InputTag(
"offlinePrimaryVertices"),
537 select = cms.string(PVCut)
540 selection = cms.VPSet(
542 label = cms.string(
"elecs:step0"),
543 src = cms.InputTag(
"pfIsolatedElectronsEI"),
544 select = cms.string(
"pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660) &&" + tightEleCut),
549 label = cms.string(
"jets/pf:step1"),
550 src = cms.InputTag(
"ak4PFJetsCHS"),
551 select = cms.string(
"pt>30 & abs(eta)<2.4"),
555 label = cms.string(
"met:step2"),
556 src = cms.InputTag(
"pfMet"),
557 select = cms.string(
"pt>30"),