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.hitPattern().numberOfLostHits('MISSING_INNER_HITS')<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)
102 pfNoElectron.topCollection =
'pfIsolatedElectronsEI'
103 pfNoElectron.bottomCollection =
'pfNoMuon'
105 pfNoElectronJME.topCollection =
'pfIsolatedElectronsEI'
106 pfNoElectronJME.bottomCollection =
'pfNoMuonJME'
111 pfJetsEI = pfJets.clone()
112 pfJetsPtrsEI = pfJetsPtrs.clone(src=cms.InputTag(
"pfJetsEI"))
114 pfJetSequenceEI = cms.Sequence( pfJetsEI+ pfJetsPtrsEI )
116 pfNoJetEI = pfNoJet.clone(
117 topCollection =
'pfJetsPtrsEI',
118 bottomCollection =
'pfNoElectronJME'
122 pfTausEI = pfTaus.clone()
123 pfTausPtrsEI = pfTausPtrs.clone(src=cms.InputTag(
"pfTausEI") )
124 pfNoTauEI = pfNoTau.clone(
125 topCollection = cms.InputTag(
'pfTausPtrsEI'),
126 bottomCollection = cms.InputTag(
'pfJetsPtrsEI')
129 pfTauEISequence = cms.Sequence(
137 pfJetTrackAssociatorEI = ak4JetTracksAssociatorAtVertex.clone (
138 src = cms.InputTag(
"pfJetsEI")
140 impactParameterTagInfosEI = impactParameterTagInfos.clone(
141 jetTracks = cms.InputTag(
'pfJetTrackAssociatorEI' )
143 secondaryVertexTagInfosEI = secondaryVertexTagInfos.clone(
144 trackIPTagInfos = cms.InputTag(
'impactParameterTagInfosEI' )
146 combinedSecondaryVertexBJetTagsEI = combinedSecondaryVertexBJetTags.clone(
147 tagInfos = cms.VInputTag(cms.InputTag(
"impactParameterTagInfosEI"),
148 cms.InputTag(
"secondaryVertexTagInfosEI"))
154 pfMetEI = pfMET.clone(jets=cms.InputTag(
"pfJetsEI"))
157 EIsequence = cms.Sequence(
163 pfMuonsFromVertexEI +
168 pfElectronsFromVertexEI +
169 pfIsolatedElectronsEI +
177 pfJetTrackAssociatorEI+
178 impactParameterTagInfosEI+
179 secondaryVertexTagInfosEI+
180 combinedSecondaryVertexBJetTagsEI