1 import FWCore.ParameterSet.Config
as cms
12 from RecoEgamma.EgammaIsolationAlgos.egmPhotonIsolationAOD_cff
import egmPhotonIsolationAOD
as _egmPhotonIsolationAOD
20 from RecoEgamma.EgammaIsolationAlgos.egmIsoConeDefinitions_cfi
import IsoConeDefinitions
22 particleBasedIsolationTmp = _particleBasedIsolation.clone()
23 particleBasedIsolationTmp.photonProducer = cms.InputTag(
"gedPhotonsTmp")
24 particleBasedIsolationTmp.electronProducer = cms.InputTag(
"gedGsfElectronsTmp")
25 particleBasedIsolationTmp.pfCandidates = cms.InputTag(
"particleFlowTmp")
26 particleBasedIsolationTmp.valueMapPhoPFblockIso = cms.string(
"gedPhotonsTmp")
27 particleBasedIsolationTmp.valueMapElePFblockIso = cms.string(
"gedGsfElectronsTmp")
29 egmPhotonIsolationCITK = _egmPhotonIsolationAOD.clone()
30 egmElectronIsolationCITK = _egmElectronIsolationCITK.clone()
31 egmElectronIsolationPileUpCITK = _egmElectronIsolationCITKPileUp.clone()
34 IsoConeDefinitionsPhotonsTmp = copy.deepcopy(IsoConeDefinitions)
35 for iPSet
in IsoConeDefinitionsPhotonsTmp:
36 iPSet.particleBasedIsolation = cms.InputTag(
"particleBasedIsolationTmp",
"gedPhotonsTmp")
38 for iPSet
in egmElectronIsolationCITK.isolationConeDefinitions:
39 iPSet.particleBasedIsolation = cms.InputTag(
"particleBasedIsolationTmp",
"gedGsfElectronsTmp")
41 for iPSet
in egmElectronIsolationPileUpCITK.isolationConeDefinitions:
42 iPSet.particleBasedIsolation = cms.InputTag(
"particleBasedIsolationTmp",
"gedGsfElectronsTmp")
45 egmPhotonIsolationCITK.srcToIsolate = cms.InputTag(
"gedPhotonsTmp")
46 egmPhotonIsolationCITK.srcForIsolationCone = cms.InputTag(
"pfNoPileUpCandidates")
47 egmPhotonIsolationCITK.isolationConeDefinitions = IsoConeDefinitionsPhotonsTmp
49 egmElectronIsolationCITK.srcToIsolate = cms.InputTag(
"gedGsfElectronsTmp")
50 egmElectronIsolationCITK.srcForIsolationCone = cms.InputTag(
"pfNoPileUpCandidates")
52 egmElectronIsolationPileUpCITK.srcToIsolate = cms.InputTag(
"gedGsfElectronsTmp")
53 egmElectronIsolationPileUpCITK.srcForIsolationCone = cms.InputTag(
"pfPileUpAllChargedParticles")
55 particleFlowEGammaFull = cms.Sequence(particleFlowEGamma*gedGsfElectronSequenceTmp*gedPhotonSequenceTmp)
56 particleFlowEGammaFinal = cms.Sequence(particleBasedIsolationTmp*pfNoPileUpIsoSequence*pfNoPileUpCandidates*pfPileUpAllChargedParticles*\
57 egmPhotonIsolationCITK*egmElectronIsolationCITK*egmElectronIsolationPileUpCITK*gedPhotonSequence*gedElectronPFIsoSequence)