00001 import FWCore.ParameterSet.Config as cms 00002 00003 from CommonTools.ParticleFlow.Isolation.tools_cfi import * 00004 00005 #Now prepare the iso deposits 00006 elPFIsoDepositCharged=isoDepositReplace('pfSelectedElectrons','pfAllChargedHadrons') 00007 elPFIsoDepositChargedAll=isoDepositReplace('pfSelectedElectrons','pfAllChargedParticles') 00008 elPFIsoDepositNeutral=isoDepositReplace('pfSelectedElectrons','pfAllNeutralHadrons') 00009 elPFIsoDepositGamma=isoDepositReplace('pfSelectedElectrons','pfAllPhotons') 00010 elPFIsoDepositPU=isoDepositReplace('pfSelectedElectrons','pfPileUpAllChargedParticles') 00011 00012 electronPFIsolationDepositsSequence = cms.Sequence( 00013 elPFIsoDepositCharged+ 00014 elPFIsoDepositChargedAll+ 00015 elPFIsoDepositGamma+ 00016 elPFIsoDepositNeutral+ 00017 elPFIsoDepositPU 00018 )