1 import FWCore.ParameterSet.Config
as cms
10 sourceElectrons = patElectrons.electronSource
12 elPFIsoDepositChargedPAT.src = sourceElectrons
13 elPFIsoDepositChargedAllPAT.src = sourceElectrons
14 elPFIsoDepositNeutralPAT.src = sourceElectrons
15 elPFIsoDepositGammaPAT.src = sourceElectrons
16 elPFIsoDepositPUPAT.src = sourceElectrons
18 patElectrons.isoDeposits = cms.PSet(
19 pfChargedHadrons = cms.InputTag(
"elPFIsoDepositChargedPAT" ),
20 pfChargedAll = cms.InputTag(
"elPFIsoDepositChargedAllPAT" ),
21 pfPUChargedHadrons = cms.InputTag(
"elPFIsoDepositPUPAT" ),
22 pfNeutralHadrons = cms.InputTag(
"elPFIsoDepositNeutralPAT" ),
23 pfPhotons = cms.InputTag(
"elPFIsoDepositGammaPAT" ),
26 patElectrons.isolationValues = cms.PSet(
27 pfChargedHadrons = cms.InputTag(
"elPFIsoValueCharged04PFIdPAT"),
28 pfChargedAll = cms.InputTag(
"elPFIsoValueChargedAll04PFIdPAT"),
29 pfPUChargedHadrons = cms.InputTag(
"elPFIsoValuePU04PFIdPAT" ),
30 pfNeutralHadrons = cms.InputTag(
"elPFIsoValueNeutral04PFIdPAT" ),
31 pfPhotons = cms.InputTag(
"elPFIsoValueGamma04PFIdPAT" ),
34 patElectrons.isolationValuesNoPFId = cms.PSet(
35 pfChargedHadrons = cms.InputTag(
"elPFIsoValueCharged04NoPFIdPAT"),
36 pfChargedAll = cms.InputTag(
"elPFIsoValueChargedAll04NoPFIdPAT"),
37 pfPUChargedHadrons = cms.InputTag(
"elPFIsoValuePU04NoPFIdPAT" ),
38 pfNeutralHadrons = cms.InputTag(
"elPFIsoValueNeutral04NoPFIdPAT" ),
39 pfPhotons = cms.InputTag(
"elPFIsoValueGamma04NoPFIdPAT" )
43 makePatElectronsTask = cms.Task(
44 pfParticleSelectionForIsoTask,
45 pfElectronIsolationPATTask,
49 makePatElectrons = cms.Sequence(makePatElectronsTask)