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.

References helpers.getPatAlgosToolsTask().

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 
def makePuppies(process)
def getPatAlgosToolsTask(process)
Definition: helpers.py:13

◆ makePuppiesFromMiniAOD()

def puppiForMET_cff.makePuppiesFromMiniAOD (   process,
  createScheduledSequence = False 
)

Definition at line 13 of file puppiForMET_cff.py.

References helpers.getPatAlgosToolsTask().

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  puppiMETTask = cms.Task(process.puppi, process.puppiNoLep)
30  setattr(process, "puppiMETTask", puppiMETTask)
31  puppiMETSequence = cms.Sequence(puppiMETTask)
32  setattr(process, "puppiMETSequence", puppiMETSequence)
33 
def getPatAlgosToolsTask(process)
Definition: helpers.py:13
def makePuppiesFromMiniAOD(process, createScheduledSequence=False)