1 import FWCore.ParameterSet.Config
as cms
29 pfPileUpEI = pfPileUp.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
30 pfNoPileUpEI = pfNoPileUp.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
31 topCollection = cms.InputTag(
'pfPileUpEI') )
33 pfPileUpJMEEI = pfPileUpJME.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
34 pfNoPileUpJMEEI = pfNoPileUpJME.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
35 topCollection = cms.InputTag(
'pfPileUpJMEEI') )
40 pfAllMuonsEI = cms.EDFilter(
41 "PFCandidateFwdPtrCollectionStringFilter",
42 src = cms.InputTag(
"pfNoPileUpEI"),
43 cut = cms.string(
"abs(pdgId())==13" 45 makeClones = cms.bool(
True)
48 pfMuonsFromVertexEI = pfMuonsFromVertex.clone( src = cms.InputTag(
'pfAllMuonsEI') )
50 pfIsolatedMuonsEI = cms.EDFilter(
51 "PFCandidateFwdPtrCollectionStringFilter",
52 src = cms.InputTag(
"pfMuonsFromVertexEI"),
53 cut = cms.string(
'''abs(eta)<2.5 && pt>10. && muonRef.isAvailable() && 54 (muonRef.pfIsolationR04().sumChargedHadronPt+ 55 max(0.,muonRef.pfIsolationR04().sumNeutralHadronEt+ 56 muonRef.pfIsolationR04().sumPhotonEt- 57 0.50*muonRef.pfIsolationR04().sumPUPt))/pt < 0.20 && 58 (muonRef.isPFMuon && (muonRef.isGlobalMuon || muonRef.isTrackerMuon) )''' 60 makeClones = cms.bool(
True)
65 pfNoMuon.topCollection =
'pfIsolatedMuonsEI' 66 pfNoMuon.bottomCollection =
'pfNoPileUpEI' 69 pfNoMuonJME.topCollection =
'pfIsolatedMuonsEI' 70 pfNoMuonJME.bottomCollection =
'pfNoPileUpJMEEI' 76 pfAllElectronsEI = cms.EDFilter(
77 "PFCandidateFwdPtrCollectionStringFilter",
78 src = cms.InputTag(
"pfNoMuon"),
79 cut = cms.string(
"abs(pdgId())==11" 81 makeClones = cms.bool(
True)
84 pfElectronsFromVertexEI = pfElectronsFromVertex.clone( src = cms.InputTag(
'pfAllElectronsEI') )
86 pfIsolatedElectronsEI = cms.EDFilter(
87 "PFCandidateFwdPtrCollectionStringFilter",
88 src = cms.InputTag(
"pfElectronsFromVertexEI"),
89 cut = cms.string(
'''abs(eta)<2.5 && pt>20. && 90 gsfTrackRef.isAvailable() && 91 gsfTrackRef.hitPattern().numberOfLostHits('MISSING_INNER_HITS')<2 && 92 (gsfElectronRef.pfIsolationVariables().sumChargedHadronPt+ 93 max(0.,gsfElectronRef.pfIsolationVariables().sumNeutralHadronEt+ 94 gsfElectronRef.pfIsolationVariables().sumPhotonEt- 95 0.5*gsfElectronRef.pfIsolationVariables().sumPUPt))/pt < 0.15 97 makeClones = cms.bool(
True)
101 pfNoElectron.topCollection =
'pfIsolatedElectronsEI' 102 pfNoElectron.bottomCollection =
'pfNoMuon' 104 pfNoElectronJME.topCollection =
'pfIsolatedElectronsEI' 105 pfNoElectronJME.bottomCollection =
'pfNoMuonJME' 110 pfJetsEI = pfJets.clone()
111 pfJetsPtrsEI = pfJetsPtrs.clone(src=cms.InputTag(
"pfJetsEI"))
113 pfJetSequenceEI = cms.Sequence( pfJetsEI+ pfJetsPtrsEI )
115 pfNoJetEI = pfNoJet.clone(
116 topCollection =
'pfJetsPtrsEI',
117 bottomCollection =
'pfNoElectronJME' 121 pfTausEI = pfTaus.clone()
122 pfTausPtrsEI = pfTausPtrs.clone(src=cms.InputTag(
"pfTausEI") )
123 pfNoTauEI = pfNoTau.clone(
124 topCollection = cms.InputTag(
'pfTausPtrsEI'),
125 bottomCollection = cms.InputTag(
'pfJetsPtrsEI')
128 pfTauEISequence = cms.Sequence(
136 pfImpactParameterTagInfosEI = pfImpactParameterTagInfos.clone(
137 jets = cms.InputTag(
'pfJetsEI' )
139 pfInclusiveSecondaryVertexFinderTagInfosEI = pfInclusiveSecondaryVertexFinderTagInfos.clone(
140 trackIPTagInfos = cms.InputTag(
'pfImpactParameterTagInfosEI' )
142 pfCombinedInclusiveSecondaryVertexV2BJetTagsEI = pfCombinedInclusiveSecondaryVertexV2BJetTags.clone(
143 tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfosEI"),
144 cms.InputTag(
"pfInclusiveSecondaryVertexFinderTagInfosEI"))
150 pfMetEI = pfMET.clone(jets=cms.InputTag(
"pfJetsEI"))
153 EIsequence = cms.Sequence(
159 pfMuonsFromVertexEI +
164 pfElectronsFromVertexEI +
165 pfIsolatedElectronsEI +
173 pfImpactParameterTagInfosEI+
174 pfInclusiveSecondaryVertexFinderTagInfosEI+
175 pfCombinedInclusiveSecondaryVertexV2BJetTagsEI