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
39 directory = cms.string(
"Physics/Top/TopSingleMuonMediumDQM/"),
41 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
42 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
43 jets = cms.InputTag(
"ak4PFJetsCHS"),
44 mets = cms.VInputTag(
"pfMet"),
45 pvs = cms.InputTag(
"offlinePrimaryVertices")
48 monitoring = cms.PSet(
49 verbosity = cms.string(
"DEBUG")
52 select = cms.string(PVCut)
54 elecExtras = cms.PSet(
55 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
56 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
58 muonExtras = cms.PSet(
59 select = cms.string(tightMuonCut +
" && pt>20 & abs(eta)<2.4"),
61 isolation = cms.string(looseIsoCut)
64 jetCorrector = cms.InputTag(
"dqmAk4PFCHSL1FastL2L3Corrector"),
65 select = cms.string(
"pt>30 & abs(eta)< 2.4"),
66 jetBTaggers = cms.PSet(
68 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
69 workingPoint = cms.double(0.890)
74 massExtras = cms.PSet(
75 lowerEdge = cms.double( 70.),
76 upperEdge = cms.double(110.)
80 preselection = cms.PSet(
82 src = cms.InputTag(
"offlinePrimaryVertices"),
83 select = cms.string(PVCut)
87 selection = cms.VPSet(
89 label = cms.string(
"muons:step0"),
90 src = cms.InputTag(
"pfIsolatedMuonsEI"),
91 select = cms.string(tightMuonCut +
" && pt>20 & abs(eta)<2.4"),
95 label = cms.string(
"jets/pf:step1"),
96 src = cms.InputTag(
"ak4PFJetsCHS"),
97 select = cms.string(
"pt>30 & abs(eta)<2.4"),
101 label = cms.string(
"met:step2"),
102 src = cms.InputTag(
"pfMet"),
103 select = cms.string(
"pt>30"),
117 directory = cms.string(
"Physics/Top/TopSingleElectronMediumDQM/"),
119 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
120 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
121 jets = cms.InputTag(
"ak4PFJetsCHS"),
122 mets = cms.VInputTag(
"pfMet"),
123 pvs = cms.InputTag(
"offlinePrimaryVertices")
126 monitoring = cms.PSet(
127 verbosity = cms.string(
"DEBUG")
130 select = cms.string(PVCut)
132 elecExtras = cms.PSet(
133 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
134 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
136 muonExtras = cms.PSet(
137 select = cms.string(tightMuonCut +
" & pt>20 & abs(eta)<2.4"),
138 isolation = cms.string(looseIsoCut),
140 jetExtras = cms.PSet(
141 jetCorrector = cms.InputTag(
"dqmAk4PFCHSL1FastL2L3Corrector"),
142 select = cms.string(
"pt>30 & abs(eta)<2.4"),
143 jetBTaggers = cms.PSet(
144 cvsVertex = cms.PSet(
145 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
146 workingPoint = cms.double(0.890)
151 massExtras = cms.PSet(
152 lowerEdge = cms.double( 70.),
153 upperEdge = cms.double(110.)
156 preselection = cms.PSet(
158 src = cms.InputTag(
"offlinePrimaryVertices"),
159 select = cms.string(PVCut)
162 selection = cms.VPSet(
164 label = cms.string(
"elecs:step0"),
165 src = cms.InputTag(
"pfIsolatedElectronsEI"),
166 select = cms.string(
"pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660) &&" + tightEleCut),
171 label = cms.string(
"jets/pf:step1"),
172 src = cms.InputTag(
"ak4PFJetsCHS"),
173 select = cms.string(
"pt>30 & abs(eta)<2.4"),
177 label = cms.string(
"met:step2"),
178 src = cms.InputTag(
"pfMet"),
179 select = cms.string(
"pt>30"),