1 import FWCore.ParameterSet.Config
as cms
31 pfPileUpEI = pfPileUp.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
32 pfNoPileUpEI = pfNoPileUp.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
33 topCollection = cms.InputTag(
'pfPileUpEI') )
35 pfPileUpJMEEI = pfPileUpJME.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
36 pfNoPileUpJMEEI = pfNoPileUpJME.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
37 topCollection = cms.InputTag(
'pfPileUpJMEEI') )
42 pfAllMuonsEI = cms.EDFilter(
43 "PFCandidateFwdPtrCollectionStringFilter",
44 src = cms.InputTag(
"pfNoPileUpEI"),
45 cut = cms.string(
"abs(pdgId())==13"
47 makeClones = cms.bool(
True)
50 pfMuonsFromVertexEI = pfMuonsFromVertex.clone( src = cms.InputTag(
'pfAllMuonsEI') )
52 pfIsolatedMuonsEI = cms.EDFilter(
53 "PFCandidateFwdPtrCollectionStringFilter",
54 src = cms.InputTag(
"pfMuonsFromVertexEI"),
55 cut = cms.string(
'''abs(eta)<2.5 && pt>10. && muonRef.isAvailable() &&
56 (muonRef.pfIsolationR04().sumChargedHadronPt+
57 max(0.,muonRef.pfIsolationR04().sumNeutralHadronEt+
58 muonRef.pfIsolationR04().sumPhotonEt-
59 0.50*muonRef.pfIsolationR04().sumPUPt))/pt < 0.20 &&
60 (muonRef.isPFMuon && (muonRef.isGlobalMuon || muonRef.isTrackerMuon) )'''
62 makeClones = cms.bool(
True)
67 pfNoMuon.topCollection =
'pfIsolatedMuonsEI'
68 pfNoMuon.bottomCollection =
'pfNoPileUpEI'
71 pfNoMuonJME.topCollection =
'pfIsolatedMuonsEI'
72 pfNoMuonJME.bottomCollection =
'pfNoPileUpJMEEI'
78 pfAllElectronsEI = cms.EDFilter(
79 "PFCandidateFwdPtrCollectionStringFilter",
80 src = cms.InputTag(
"pfNoMuon"),
81 cut = cms.string(
"abs(pdgId())==11"
83 makeClones = cms.bool(
True)
86 pfElectronsFromVertexEI = pfElectronsFromVertex.clone( src = cms.InputTag(
'pfAllElectronsEI') )
88 pfIsolatedElectronsEI = cms.EDFilter(
89 "PFCandidateFwdPtrCollectionStringFilter",
90 src = cms.InputTag(
"pfElectronsFromVertexEI"),
91 cut = cms.string(
'''abs(eta)<2.5 && pt>20. &&
92 gsfTrackRef.isAvailable() &&
93 gsfTrackRef.hitPattern().numberOfLostHits('MISSING_INNER_HITS')<2 &&
94 (gsfElectronRef.pfIsolationVariables().sumChargedHadronPt+
95 max(0.,gsfElectronRef.pfIsolationVariables().sumNeutralHadronEt+
96 gsfElectronRef.pfIsolationVariables().sumPhotonEt-
97 0.5*gsfElectronRef.pfIsolationVariables().sumPUPt))/pt < 0.15
99 makeClones = cms.bool(
True)
103 pfNoElectron.topCollection =
'pfIsolatedElectronsEI'
104 pfNoElectron.bottomCollection =
'pfNoMuon'
106 pfNoElectronJME.topCollection =
'pfIsolatedElectronsEI'
107 pfNoElectronJME.bottomCollection =
'pfNoMuonJME'
112 pfJetsEI = pfJets.clone()
113 pfJetsPtrsEI = pfJetsPtrs.clone(src=cms.InputTag(
"pfJetsEI"))
115 pfJetSequenceEI = cms.Sequence( pfJetsEI+ pfJetsPtrsEI )
117 pfNoJetEI = pfNoJet.clone(
118 topCollection =
'pfJetsPtrsEI',
119 bottomCollection =
'pfNoElectronJME'
123 pfTausEI = pfTaus.clone()
124 pfTausPtrsEI = pfTausPtrs.clone(src=cms.InputTag(
"pfTausEI") )
125 pfNoTauEI = pfNoTau.clone(
126 topCollection = cms.InputTag(
'pfTausPtrsEI'),
127 bottomCollection = cms.InputTag(
'pfJetsPtrsEI')
130 pfTauEISequence = cms.Sequence(
138 pfImpactParameterTagInfosEI = pfImpactParameterTagInfos.clone(
139 jets = cms.InputTag(
'pfJetsEI' )
141 pfInclusiveSecondaryVertexFinderTagInfosEI = pfInclusiveSecondaryVertexFinderTagInfos.clone(
142 trackIPTagInfos = cms.InputTag(
'pfImpactParameterTagInfosEI' )
144 pfCombinedInclusiveSecondaryVertexV2BJetTagsEI = pfCombinedInclusiveSecondaryVertexV2BJetTags.clone(
145 tagInfos = cms.VInputTag(cms.InputTag(
"pfImpactParameterTagInfosEI"),
146 cms.InputTag(
"pfInclusiveSecondaryVertexFinderTagInfosEI"))
152 pfMetEI = pfMET.clone(srcJets=cms.InputTag(
"pfJetsEI"))
155 EIsequence = cms.Sequence(
156 goodOfflinePrimaryVertices +
162 pfMuonsFromVertexEI +
167 pfElectronsFromVertexEI +
168 pfIsolatedElectronsEI +
176 pfImpactParameterTagInfosEI+
177 pfInclusiveSecondaryVertexFinderTagInfosEI+
178 pfCombinedInclusiveSecondaryVertexV2BJetTagsEI