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))"
28 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
38 directory = cms.string(
"Physics/Top/SingleTopMuonMediumDQM/"),
40 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
41 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
42 jets = cms.InputTag(
"ak4PFJetsCHS"),
43 mets = cms.VInputTag(
"pfMet"),
44 pvs = cms.InputTag(
"offlinePrimaryVertices")
46 monitoring = cms.PSet(
47 verbosity = cms.string(
"DEBUG")
50 select = cms.string(PVCut)
52 elecExtras = cms.PSet(
53 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
54 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
56 muonExtras = cms.PSet(
57 select = cms.string(tightMuonCut +
" && pt>20 & abs(eta)<2.4"),
58 isolation = cms.string(looseIsoCut)
61 jetCorrector = cms.InputTag(
"dqmAk4PFCHSL1FastL2L3Corrector"),
62 select = cms.string(
"pt>30 & abs(eta)< 2.4"),
63 jetBTaggers = cms.PSet(
65 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
66 workingPoint = cms.double(0.890)
70 massExtras = cms.PSet(
71 lowerEdge = cms.double( 70.),
72 upperEdge = cms.double(110.)
78 preselection = cms.PSet(
80 src = cms.InputTag(
"offlinePrimaryVertices"),
81 select = cms.string(PVCut)
87 selection = cms.VPSet(
89 label = cms.string(
"muons/pf: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"),
119 directory = cms.string(
"Physics/Top/SingleTopElectronMediumDQM/"),
121 muons = cms.InputTag(
"pfIsolatedMuonsEI"),
122 elecs = cms.InputTag(
"pfIsolatedElectronsEI"),
123 jets = cms.InputTag(
"ak4PFJetsCHS"),
124 mets = cms.VInputTag(
"pfMet"),
125 pvs = cms.InputTag(
"offlinePrimaryVertices")
127 monitoring = cms.PSet(
128 verbosity = cms.string(
"DEBUG")
131 select = cms.string(PVCut)
133 elecExtras = cms.PSet(
134 select = cms.string(tightEleCut +
"& pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660)"),
135 rho = cms.InputTag(
"fixedGridRhoFastjetAll"),
137 muonExtras = cms.PSet(
138 select = cms.string(tightMuonCut +
" && pt>20 & abs(eta)<2.4"),
139 isolation = cms.string(looseIsoCut)
141 jetExtras = cms.PSet(
142 jetCorrector = cms.InputTag(
"dqmAk4PFCHSL1FastL2L3Corrector"),
143 select = cms.string(
"pt>30 & abs(eta)< 2.4"),
144 jetBTaggers = cms.PSet(
145 cvsVertex = cms.PSet(
146 label = cms.InputTag(
"pfCombinedInclusiveSecondaryVertexV2BJetTags"),
147 workingPoint = cms.double(0.890)
151 massExtras = cms.PSet(
152 lowerEdge = cms.double( 70.),
153 upperEdge = cms.double(110.)
159 preselection = cms.PSet(
161 src = cms.InputTag(
"offlinePrimaryVertices"),
162 select = cms.string(PVCut)
168 selection = cms.VPSet(
183 label = cms.string(
"elecs/pf:step0"),
184 src = cms.InputTag(
"pfIsolatedElectronsEI"),
185 select = cms.string(
"pt>20 & abs(eta)<2.5 & (abs(gsfElectronRef.superCluster().eta()) <= 1.4442 || abs(gsfElectronRef.superCluster().eta()) >= 1.5660) &&" + tightEleCut),
189 label = cms.string(
"jets/pf:step1"),
190 src = cms.InputTag(
"ak4PFJetsCHS"),
191 select = cms.string(
"pt>30 & abs(eta)<2.4"),
195 label = cms.string(
"met:step2"),
196 src = cms.InputTag(
"pfMet"),
197 select = cms.string(
"pt>30"),