CMS 3D CMS Logo

pfBasedElectronPhotonIso_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 #from RecoParticleFlow.PFProducer.electronPFIsolationDeposits_cff import *
5 #from RecoParticleFlow.PFProducer.electronPFIsolationValues_cff import *
8 
9 pfSelectedElectrons = cms.EDFilter(
10  "GenericPFCandidateSelector",
11  src = cms.InputTag("particleFlowTmp"),
12  cut = cms.string("abs(pdgId())==11")
13 )
14 
15 pfSelectedPhotons = cms.EDFilter(
16  "GenericPFCandidateSelector",
17  src = cms.InputTag("particleFlowTmp"),
18  cut = cms.string("pdgId()==22 && mva_nothing_gamma>0")
19 )
20 
21 
22 # pfPileUp.PFCandidates = cms.InputTag("particleFlowTmp")
23 # pfNoPileUp.bottomCollection = cms.InputTag("particleFlowTmp")
24 
25 pfBasedElectronPhotonIsoTask = cms.Task(
26  pfParticleSelectionTask,
27  pfSelectedElectrons,
28 # electronPFIsolationDepositsTask,
29 # electronPFIsolationValuesTask,
30  pfSelectedPhotons,
31  photonPFIsolationDepositsTask,
32  photonPFIsolationValuesTask
33 )
34 pfBasedElectronPhotonIsoSequence = cms.Sequence(pfBasedElectronPhotonIsoTask)