30 pfPileUpEI = pfPileUp.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
31 pfNoPileUpEI = pfNoPileUp.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
32 topCollection = cms.InputTag(
'pfPileUpEI') )
34 pfPileUpJMEEI = pfPileUpJME.clone( PFCandidates = cms.InputTag(
'particleFlowPtrs') )
35 pfNoPileUpJMEEI = pfNoPileUpJME.clone( bottomCollection = cms.InputTag(
'particleFlowPtrs'),
36 topCollection = cms.InputTag(
'pfPileUpJMEEI') )
41 pfAllMuonsEI = cms.EDFilter(
42 "PFCandidateFwdPtrCollectionStringFilter",
43 src = cms.InputTag(
"pfNoPileUpEI"),
44 cut = cms.string(
"abs(pdgId())==13"
46 makeClones = cms.bool(
True)
49 pfMuonsFromVertexEI = pfMuonsFromVertex.clone( src = cms.InputTag(
'pfAllMuonsEI') )
51 pfIsolatedMuonsEI = cms.EDFilter(
52 "PFCandidateFwdPtrCollectionStringFilter",
53 src = cms.InputTag(
"pfMuonsFromVertexEI"),
54 cut = cms.string(
'''abs(eta)<2.5 && pt>10. && muonRef.isAvailable() &&
55 (muonRef.pfIsolationR04().sumChargedHadronPt+
56 max(0.,muonRef.pfIsolationR04().sumNeutralHadronEt+
57 muonRef.pfIsolationR04().sumPhotonEt-
58 0.50*muonRef.pfIsolationR04().sumPUPt))/pt < 0.20 &&
59 (muonRef.isPFMuon && (muonRef.isGlobalMuon || muonRef.isTrackerMuon) )'''
61 makeClones = cms.bool(
True)
66 pfNoMuon.topCollection =
'pfIsolatedMuonsEI'
67 pfNoMuon.bottomCollection =
'pfNoPileUpEI'
70 pfNoMuonJME.topCollection =
'pfIsolatedMuonsEI'
71 pfNoMuonJME.bottomCollection =
'pfNoPileUpJMEEI'
77 pfAllElectronsEI = cms.EDFilter(
78 "PFCandidateFwdPtrCollectionStringFilter",
79 src = cms.InputTag(
"pfNoMuon"),
80 cut = cms.string(
"abs(pdgId())==11"
82 makeClones = cms.bool(
True)
85 pfElectronsFromVertexEI = pfElectronsFromVertex.clone( src = cms.InputTag(
'pfAllElectronsEI') )
87 pfIsolatedElectronsEI = cms.EDFilter(
88 "PFCandidateFwdPtrCollectionStringFilter",
89 src = cms.InputTag(
"pfElectronsFromVertexEI"),
90 cut = cms.string(
'''abs(eta)<2.5 && pt>20. &&
91 gsfTrackRef.isAvailable() &&
92 gsfTrackRef.trackerExpectedHitsInner.numberOfLostHits<2 &&
93 (gsfElectronRef.pfIsolationVariables().sumChargedHadronPt+
94 max(0.,gsfElectronRef.pfIsolationVariables().sumNeutralHadronEt+
95 gsfElectronRef.pfIsolationVariables().sumPhotonEt-
96 0.5*gsfElectronRef.pfIsolationVariables().sumPUPt))/pt < 0.15
98 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 pfJetTrackAssociatorEI = ak4JetTracksAssociatorAtVertex.clone (
139 src = cms.InputTag(
"pfJetsEI")
141 impactParameterTagInfosEI = impactParameterTagInfos.clone(
142 jetTracks = cms.InputTag(
'pfJetTrackAssociatorEI' )
144 secondaryVertexTagInfosEI = secondaryVertexTagInfos.clone(
145 trackIPTagInfos = cms.InputTag(
'impactParameterTagInfosEI' )
147 combinedSecondaryVertexBJetTagsEI = combinedSecondaryVertexBJetTags.clone(
148 tagInfos = cms.VInputTag(cms.InputTag(
"impactParameterTagInfosEI"),
149 cms.InputTag(
"secondaryVertexTagInfosEI"))
155 pfMetEI = pfMET.clone(jets=cms.InputTag(
"pfJetsEI"))
158 EIsequence = cms.Sequence(
164 pfMuonsFromVertexEI +
169 pfElectronsFromVertexEI +
170 pfIsolatedElectronsEI +
178 pfJetTrackAssociatorEI+
179 impactParameterTagInfosEI+
180 secondaryVertexTagInfosEI+
181 combinedSecondaryVertexBJetTagsEI