1 import FWCore.ParameterSet.Config
as cms
5 myEleCollection = cms.InputTag(
"gedGsfElectrons")
7 MinEleNumberFilter = cms.EDFilter(
"CandViewCountFilter",
9 minNumber = cms.uint32(1)
20 GsfMatchedPhotonCands = cms.EDProducer(
"ElectronMatchedCandidateProducer",
21 src = cms.InputTag(
"goodPhotons"),
22 ReferenceElectronCollection = cms.untracked.InputTag(
"goodElectrons"),
23 deltaR = cms.untracked.double(0.3)
47 ZSCHltFilter = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
48 throw = cms.bool(
False),
49 HLTPaths = [
'HLT_Ele27_CaloIdT_CaloIsoVL_TrkIdVL_TrkIsoVL_Ele15_CaloIdT_CaloIsoVL_trackless_v*']
55 genEleFromZ = cms.EDFilter(
"CandViewSelector",
56 src = cms.InputTag(
"genParticles"),
57 cut = cms.string(
"(pdgId == 11 || pdgId == -11) && eta <2.5 && eta>-2.5 && pt > 15 && mother(0).pdgId == 23"),
60 genEleFromW = cms.EDFilter(
"CandViewSelector",
61 src = cms.InputTag(
"genParticles"),
62 cut = cms.string(
"(pdgId == 11 || pdgId == -11) && eta <2.5 && eta>-2.5 && pt > 25 && (mother(0).pdgId == 24 || mother(0).pdgId == -24)"),
65 genNuFromW = cms.EDFilter(
"CandViewSelector",
66 src = cms.InputTag(
"genParticles"),
67 cut = cms.string(
"(pdgId == 12 || pdgId == -12) && (mother(0).pdgId == 24 || mother(0).pdgId == -24)"),
70 combZ = cms.EDProducer(
"CandViewShallowCloneCombiner",
71 decay = cms.string(
"genEleFromZ genEleFromZ"),
72 checkCharge = cms.bool(
False),
73 cut = cms.string(
"40 < mass < 140"),
76 combW = cms.EDProducer(
"CandViewShallowCloneCombiner",
77 decay = cms.string(
"genEleFromW genNuFromW"),
78 checkCharge = cms.bool(
False),
82 ZFilterMC = cms.EDFilter(
"CandViewCountFilter",
83 src = cms.InputTag(
"combZ"),
84 minNumber = cms.uint32(1)
87 WFilterMC = cms.EDFilter(
"CandViewCountFilter",
88 src = cms.InputTag(
"combW"),
89 minNumber = cms.uint32(1)
101 selectedECALElectrons = cms.EDFilter(
"GsfElectronRefSelector",
102 src = myEleCollection,
104 "(abs(superCluster.eta)<3) && (energy*sin(superClusterPosition.theta)> 15)")
107 selectedECALMuons = cms.EDFilter(
"MuonRefSelector",
108 src = cms.InputTag(
'muons' ),
112 selectedECALPhotons = cms.EDFilter(
"PhotonRefSelector",
113 src = cms.InputTag(
'gedPhotons' ),
115 "(abs(superCluster.eta)<3) && (pt > 10)")
120 PassingVetoId = selectedECALElectrons.clone(
122 selectedECALElectrons.cut.value() +
123 " && (gsfTrack.hitPattern().numberOfLostHits(\'MISSING_INNER_HITS\')<=2)" 125 " && ( ((pfIsolationVariables().sumChargedHadronPt + max(0.0,pfIsolationVariables().sumNeutralHadronEt + pfIsolationVariables().sumPhotonEt - 0.5 * pfIsolationVariables().sumPUPt))/p4.pt)<0.164369)" 126 " && (full5x5_sigmaIetaIeta<0.011100)" 127 " && ( - 0.252044<deltaPhiSuperClusterTrackAtVtx< 0.252044 )" 128 " && ( -0.016315<deltaEtaSuperClusterTrackAtVtx<0.016315 )" 129 " && (hadronicOverEm<0.345843)" 132 " && (gsfTrack.hitPattern().numberOfLostHits(\'MISSING_INNER_HITS\')<=3)" 133 " && ( ((pfIsolationVariables().sumChargedHadronPt + max(0.0,pfIsolationVariables().sumNeutralHadronEt + pfIsolationVariables().sumPhotonEt - 0.5 * pfIsolationVariables().sumPUPt))/p4.pt)<0.212604 )" 134 " && (full5x5_sigmaIetaIeta<0.033987)" 135 " && ( -0.245263<deltaPhiSuperClusterTrackAtVtx<0.245263 )" 136 " && ( -0.010671<deltaEtaSuperClusterTrackAtVtx<0.010671 )" 137 " && (hadronicOverEm<0.134691) " 142 PassingMuonVeryLooseId = selectedECALMuons.clone(
144 selectedECALMuons.cut.value() +
145 "(isPFMuon) && (isGlobalMuon || isTrackerMuon)" 149 PassingPhotonVeryLooseId = selectedECALPhotons.clone(
151 selectedECALPhotons.cut.value() +
152 "&& ( (eta<1.479 && sigmaIetaIeta<0.02 && hadronicOverEm<0.06 )" 154 "( eta>=1.479 && sigmaIetaIeta<0.04 && hadronicOverEm<0.06 ) )" 158 MuFilter = cms.EDFilter(
"CandViewCountFilter",
159 src = cms.InputTag(
"PassingMuonVeryLooseId"),
160 minNumber = cms.uint32(2)
162 PhoFilter = cms.EDFilter(
"CandViewCountFilter",
163 src = cms.InputTag(
"PassingPhotonVeryLooseId"),
164 minNumber = cms.uint32(1)
169 SCselector = cms.EDFilter(
"SuperClusterSelector",
170 src = cms.InputTag(
'correctedMulti5x5SuperClustersWithPreshower'),
171 cut = cms.string(
'(eta>2.4 || eta<-2.4) && (energy*sin(position.theta)> 15)')
175 eleSC = cms.EDProducer(
'ConcreteEcalCandidateProducer',
176 src = cms.InputTag(
'SCselector'),
177 particleType = cms.string(
'gamma')
189 eleSelSeq = cms.Sequence( selectedECALElectrons + PassingVetoId +
193 muSelSeq = cms.Sequence( selectedECALMuons + selectedECALPhotons + PassingMuonVeryLooseId + PassingPhotonVeryLooseId + MuFilter + PhoFilter +
201 ZeeSelector = cms.EDProducer(
"CandViewShallowCloneCombiner",
202 decay = cms.string(
"PassingVetoId PassingVetoId"),
203 checkCharge = cms.bool(
False),
204 cut = cms.string(
"40 < mass < 140")
209 MT=
"sqrt(2*daughter(0).pt*daughter(1).pt*(1 - cos(daughter(0).phi - daughter(1).phi)))" 211 W_ELECTRON_ET_CUT_MIN = 30.0
214 WenuSelector = cms.EDProducer(
"CandViewShallowCloneCombiner",
215 decay = cms.string(
"pfMet PassingVetoId"),
216 checkCharge = cms.bool(
False),
217 cut = cms.string((
"daughter(0).pt > %f && daughter(1).pt > %f && "+MT+
" > %f") % (MET_CUT_MIN, W_ELECTRON_ET_CUT_MIN, MT_CUT_MIN))
221 EleSCSelector = cms.EDProducer(
"CandViewShallowCloneCombiner",
222 decay = cms.string(
"PassingVetoId eleSC"),
223 checkCharge = cms.bool(
False),
224 cut = cms.string(
"40 < mass < 140")
228 WZSelector = cms.EDProducer(
"CandViewMerger",
229 src = cms.VInputTag(
"WenuSelector",
"ZeeSelector",
"EleSCSelector")
235 WenuFilter = cms.EDFilter(
"CandViewCountFilter",
236 src = cms.InputTag(
"WenuSelector"),
237 minNumber = cms.uint32(1)
240 ZeeFilter = cms.EDFilter(
"CandViewCountFilter",
241 src = cms.InputTag(
"ZeeSelector"),
242 minNumber = cms.uint32(1)
245 ZSCFilter = cms.EDFilter(
"CandViewCountFilter",
246 src = cms.InputTag(
"EleSCSelector"),
247 minNumber = cms.uint32(1)
251 WZFilter = cms.EDFilter(
"CandViewCountFilter",
252 src = cms.InputTag(
"WZSelector"),
253 minNumber = cms.uint32(1)
262 preFilterSeq = cms.Sequence(MinEleNumberFilter)
264 selectorProducerSeq = cms.Sequence(eleSelSeq * (ZeeSelector + WenuSelector + EleSCSelector) * WZSelector)
266 ZeeSkimFilterSeq = cms.Sequence(preFilterSeq * selectorProducerSeq *
268 ZSCSkimFilterSeq = cms.Sequence(preFilterSeq * selectorProducerSeq *
269 ~ZeeFilter * ZSCFilter)
270 WenuSkimFilterSeq = cms.Sequence(preFilterSeq * selectorProducerSeq *
271 ~ZeeFilter * ~ZSCFilter * WenuFilter)
274 checkMCZSeq = cms.Sequence(genEleFromZ * combZ * ZFilterMC)
275 checkMCWSeq = cms.Sequence(genEleFromW * genNuFromW * combW * WFilterMC)