00001 import FWCore.ParameterSet.Config as cms 00002 from CommonTools.ParticleFlow.Isolation.isoDeposits_cfi import * 00003 00004 00005 00006 def isoDepositReplace( toBeIsolated, isolating): 00007 newDepositProducer = isoDeposits.clone() 00008 newDepositProducer.src = toBeIsolated 00009 newDepositProducer.ExtractorPSet.inputCandView = isolating 00010 return newDepositProducer 00011 00012 #def candIsolatorReplace( isoDepositsSource ): 00013 # newCandIsolator = candIsolatorFromDeposits.clone() 00014 # newCandIsolator.deposits.src = isoDepositsSource 00015 # return newCandIsolator