CMS 3D CMS Logo

muonIsolationsPUPPI_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from PhysicsTools.PatAlgos.tools.helpers import getPatAlgosToolsTask, addToProcessAndTask
3 
4 from RecoMuon.MuonIsolation.muonIsolationPUPPI_cff import muonIsolationMiniAODPUPPI as _muonIsolationMiniAODPUPPI
5 from RecoMuon.MuonIsolation.muonIsolationPUPPI_cff import muonIsolationMiniAODPUPPINoLeptons as _muonIsolationMiniAODPUPPINoLeptons
6 
8 
9  task = getPatAlgosToolsTask(process)
10 
11  addToProcessAndTask('muonPUPPIIsolation', _muonIsolationMiniAODPUPPI.clone(), process, task)
12  process.muonPUPPIIsolation.srcToIsolate = cms.InputTag("muons")
13  process.muonPUPPIIsolation.srcForIsolationCone = cms.InputTag("packedPFCandidates")
14 
15  addToProcessAndTask('muonPUPPINoLeptonsIsolation', _muonIsolationMiniAODPUPPINoLeptons.clone(), process, task)
16  process.muonPUPPINoLeptonsIsolation.srcToIsolate = cms.InputTag("muons")
17  process.muonPUPPINoLeptonsIsolation.srcForIsolationCone = cms.InputTag("packedPFCandidates")
def makeInputForPUPPIIsolationMuon(process)
def addToProcessAndTask(label, module, process, task)
Definition: helpers.py:29
def getPatAlgosToolsTask(process)
Definition: helpers.py:14