CMS 3D CMS Logo

Functions
puppiForMET_cff Namespace Reference

Functions

def makePuppies (process)
 
def makePuppiesFromMiniAOD (process, createScheduledSequence=False)
 

Function Documentation

◆ makePuppies()

def puppiForMET_cff.makePuppies (   process)

Definition at line 7 of file puppiForMET_cff.py.

7 def makePuppies( process ):
8  task = getPatAlgosToolsTask(process)
9  process.load('CommonTools.PileupAlgos.Puppi_cff')
10  task.add(process.puppi)
11  task.add(process.puppiNoLep)
12 

References helpers.getPatAlgosToolsTask().

◆ makePuppiesFromMiniAOD()

def puppiForMET_cff.makePuppiesFromMiniAOD (   process,
  createScheduledSequence = False 
)

Definition at line 13 of file puppiForMET_cff.py.

13 def makePuppiesFromMiniAOD( process, createScheduledSequence=False ):
14  task = getPatAlgosToolsTask(process)
15  process.load('CommonTools.PileupAlgos.Puppi_cff')
16  task.add(process.puppi)
17  process.puppi.candName = 'packedPFCandidates'
18  process.puppi.clonePackedCands = True
19  process.puppi.vertexName = 'offlineSlimmedPrimaryVertices'
20  process.puppi.useExistingWeights = True
21  task.add(process.puppiNoLep)
22  process.puppiNoLep.candName = 'packedPFCandidates'
23  process.puppiNoLep.clonePackedCands = True
24  process.puppiNoLep.vertexName = 'offlineSlimmedPrimaryVertices'
25  process.puppiNoLep.useExistingWeights = True
26 
27  #making a sequence for people running the MET tool in scheduled mode
28  if createScheduledSequence:
29  puppiMETSequence = cms.Sequence(process.puppi*process.puppiNoLep)
30  setattr(process, "puppiMETSequence", puppiMETSequence)

References helpers.getPatAlgosToolsTask().

Referenced by nano_cff.nanoAOD_customizeCommon().

helpers.getPatAlgosToolsTask
def getPatAlgosToolsTask(process)
Definition: helpers.py:13
puppiForMET_cff.makePuppiesFromMiniAOD
def makePuppiesFromMiniAOD(process, createScheduledSequence=False)
Definition: puppiForMET_cff.py:13
puppiForMET_cff.makePuppies
def makePuppies(process)
Definition: puppiForMET_cff.py:7