1 import FWCore.ParameterSet.Config
as cms
8 pfPileUpIsoPFBRECO = pfPileUp.clone( PFCandidates =
'particleFlowPtrs' )
9 pfNoPileUpIsoPFBRECO = pfNoPileUp.clone( topCollection =
'pfPileUpIsoPFBRECO',
10 bottomCollection =
'particleFlowPtrs')
11 pfNoPileUpIsoPFBRECOSequence = cms.Sequence(
18 pfPileUpPFBRECO = pfPileUp.clone( PFCandidates =
'particleFlowPtrs' )
19 pfNoPileUpPFBRECO = pfNoPileUp.clone( topCollection =
'pfPileUpPFBRECO',
20 bottomCollection =
'particleFlowPtrs')
21 pfNoPileUpPFBRECOSequence = cms.Sequence(
27 pfAllNeutralHadronsPFBRECO = pfAllNeutralHadrons.clone( src =
'pfNoPileUpIsoPFBRECO' )
29 pfAllChargedHadronsPFBRECO = pfAllChargedHadrons.clone( src =
'pfNoPileUpIsoPFBRECO' )
31 pfAllPhotonsPFBRECO = pfAllPhotons.clone( src =
'pfNoPileUpIsoPFBRECO' )
33 pfAllMuonsPFBRECO = pfAllMuons.clone( src =
'pfNoPileUpPFBRECO' )
34 pfAllMuonsClonesPFBRECO = pfAllMuonsClones.clone( src =
'pfAllMuonsPFBRECO' )
36 pfAllElectronsPFBRECO = pfAllElectrons.clone( src =
'pfNoMuonPFBRECO' )
37 pfAllElectronsClonesPFBRECO = pfAllElectronsClones.clone( src =
'pfAllElectronsPFBRECO' )
39 pfAllChargedParticlesPFBRECO = pfAllChargedParticles.clone( src =
'pfNoPileUpIsoPFBRECO' )
41 pfAllNeutralHadronsAndPhotonsPFBRECO = pfAllNeutralHadronsAndPhotons.clone( src =
'pfNoPileUpIsoPFBRECO' )
42 pfPileUpAllChargedParticlesPFBRECO = pfAllChargedParticles.clone( src =
'pfPileUpIsoPFBRECO' )
43 pfSortByTypePFBRECOSequence = cms.Sequence(
44 pfAllNeutralHadronsPFBRECO+
45 pfAllChargedHadronsPFBRECO+
48 pfAllChargedParticlesPFBRECO+
50 pfPileUpAllChargedParticlesPFBRECO+
51 pfAllNeutralHadronsAndPhotonsPFBRECO
57 pfParticleSelectionPFBRECOSequence = cms.Sequence(
58 pfNoPileUpIsoPFBRECOSequence +
63 pfNoPileUpPFBRECOSequence +
64 pfSortByTypePFBRECOSequence
68 pfSelectedPhotonsPFBRECO = pfSelectedPhotons.clone( src =
'pfAllPhotonsPFBRECO' )
71 pfIsolatedPhotonsPFBRECO = pfIsolatedPhotons.clone( src =
'pfSelectedPhotonsPFBRECO',
72 isolationValueMapsCharged = cms.VInputTag( cms.InputTag(
"phPFIsoValueCharged04PFIdPFBRECO") ),
73 isolationValueMapsNeutral = cms.VInputTag( cms.InputTag(
"phPFIsoValueNeutral04PFIdPFBRECO"),
74 cms.InputTag(
"phPFIsoValueGamma04PFIdPFBRECO") ),
75 deltaBetaIsolationValueMap =
'phPFIsoValuePU04PFIdPFBRECO' )
76 pfPhotonPFBRECOSequence = cms.Sequence(
77 pfSelectedPhotonsPFBRECO +
78 pfPhotonIsolationPFBRECOSequence +
80 pfIsolatedPhotonsPFBRECO
84 pfMuonsFromVertexPFBRECO = pfMuonsFromVertex.clone( src =
'pfAllMuonsPFBRECO' )
86 pfIsolatedMuonsPFBRECO = pfIsolatedMuons.clone( src =
'pfMuonsFromVertexPFBRECO' )
87 pfMuonsPFBRECO = pfIsolatedMuonsPFBRECO.clone(cut = cms.string(
"pt > 5 & muonRef.isAvailable()"))
88 pfMuonPFBRECOSequence = cms.Sequence(
90 pfMuonsFromVertexPFBRECO +
91 pfIsolatedMuonsPFBRECO+
96 pfElectronsFromVertexPFBRECO = pfElectronsFromVertex.clone( src =
'pfAllElectronsPFBRECO' )
98 pfIsolatedElectronsPFBRECO = pfIsolatedElectrons.clone( src =
'pfElectronsFromVertexPFBRECO' )
99 pfElectronsPFBRECO = pfIsolatedElectronsPFBRECO.clone( cut = cms.string(
" pt > 5 & gsfElectronRef.isAvailable() & gsfTrackRef.hitPattern().numberOfLostHits('MISSING_INNER_HITS')<2"))
100 pfElectronPFBRECOSequence = cms.Sequence(
101 pfAllElectronsPFBRECO +
102 pfElectronsFromVertexPFBRECO +
103 pfIsolatedElectronsPFBRECO +
107 from CommonTools.ParticleFlow.Tools.jetTools
import jetAlgo
109 pfJetsPFBRECO.src =
'pfNoElectronJMEPFBRECO'
110 pfJetsPtrsPFBRECO = cms.EDProducer(
"PFJetFwdPtrProducer",
111 src=cms.InputTag(
"pfJetsPFBRECO")
113 pfJetPFBRECOSequence = cms.Sequence(
121 pfMETPFBRECO = pfMET.clone( jets =
'pfJetsPFBRECO' )
135 pfNoMuonPFBRECO = pfNoMuon.clone( topCollection =
'pfIsolatedMuonsPFBRECO',
136 bottomCollection =
'pfNoPileUpPFBRECO' )
137 pfNoMuonJMEPFBRECO = pfNoMuonJME.clone( topCollection =
'pfIsolatedMuonsPFBRECO' )
139 pfNoElectronPFBRECO = pfNoElectron.clone( topCollection =
'pfIsolatedElectronsPFBRECO',
140 bottomCollection =
'pfNoMuonPFBRECO' )
141 pfNoElectronJMEPFBRECO = pfNoElectronJME.clone( topCollection =
'pfIsolatedElectronsPFBRECO',
142 bottomCollection =
'pfNoMuonJMEPFBRECO' )
143 pfNoElectronJMEClonesPFBRECO = pfNoElectronJMEClones.clone( src =
'pfNoElectronJMEPFBRECO' )
145 pfNoJetPFBRECO = pfNoJet.clone( topCollection =
'pfJetsPtrsPFBRECO',
146 bottomCollection =
'pfNoElectronJMEPFBRECO' )
148 pfNoTauPFBRECO = pfNoTau.clone ( bottomCollection =
'pfJetsPtrsPFBRECO' )
149 pfNoTauClonesPFBRECO = pfNoTauClones.clone ( src =
'pfNoTauPFBRECO' )
154 PFBRECO = cms.Sequence(
156 pfParticleSelectionPFBRECOSequence +
157 pfNoPileUpJMESequence +
159 pfPhotonPFBRECOSequence +
160 pfMuonPFBRECOSequence +
163 pfElectronPFBRECOSequence +
164 pfNoElectronPFBRECO +
165 pfNoElectronJMEPFBRECO +
166 pfNoElectronJMEClonesPFBRECO+
167 pfJetPFBRECOSequence +