def METHOD_NAME(process):
    '''run neutral particle weighting sequence and use it for isolation of muons only.
    syntax: --customise RecoParticleFlow/Configuration/customizeDeltaBetaWeights_cfi.customizePhotonsOnly
    Same as customize, only that the weighted collections are used only for photon neutral isolation,
    while electronss and muons are left untouched.
    ''' 
    if hasattr(process,'pfParticleSelectionSequence'): 
        process.load("CommonTools.ParticleFlow.deltaBetaWeights_cff")
        process.pfParticleSelectionSequence += process.pfDeltaBetaWeightingSequence
    if hasattr(process,'phPFIsoDepositNeutral'):
       process.phPFIsoDepositNeutral=isoDepositReplace('pfSelectedPhotons','pfWeightedNeutralHadrons')
    if hasattr(process,'phPFIsoDepositGamma'):
        process.phPFIsoDepositGamma.ExtractorPSet.inputCandView = cms.InputTag("pfWeightedPhotons")
    return process