39 process.load(
'CommonTools.PileupAlgos.Puppi_cff')
40 task.add(process.puppi)
41 process.puppi.candName = cms.InputTag(
'packedPFCandidates')
42 process.puppi.clonePackedCands = cms.bool(
True)
43 process.puppi.vertexName = cms.InputTag(
'offlineSlimmedPrimaryVertices')
44 process.puppi.useExistingWeights = cms.bool(
True)
45 process.pfNoLepPUPPI = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
"abs(pdgId) != 13 && abs(pdgId) != 11 && abs(pdgId) != 15"))
46 task.add(process.pfNoLepPUPPI)
47 process.pfLeptonsPUPPET = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
"abs(pdgId) == 13 || abs(pdgId) == 11 || abs(pdgId) == 15"))
48 task.add(process.pfLeptonsPUPPET)
50 process.puppiNoLep.candName = cms.InputTag(
'pfNoLepPUPPI')
51 process.puppiNoLep.useWeightsNoLep = cms.bool(
True)
52 process.puppiNoLep.useExistingWeights = cms.bool(
True)
53 process.puppiMerged = cms.EDProducer(
"CandViewMerger",src = cms.VInputTag(
'puppiNoLep',
'pfLeptonsPUPPET'))
54 task.add(process.puppiMerged)
55 process.load(
'CommonTools.PileupAlgos.PhotonPuppi_cff')
56 task.add(process.puppiPhoton)
58 process.puppiForMET.candName = cms.InputTag(
'packedPFCandidates')
59 process.puppiForMET.photonName = cms.InputTag(
'slimmedPhotons')
60 process.puppiForMET.runOnMiniAOD = cms.bool(
True)
62 process.puppiForMET.useRefs =
False 64 process.puppiForMET.puppiCandName =
'puppiMerged' 67 if createScheduledSequence:
68 puppiMETSequence = cms.Sequence(process.puppi*process.pfLeptonsPUPPET*process.pfNoLepPUPPI*process.puppiNoLep*process.puppiMerged*process.puppiForMET)
69 setattr(process,
"puppiMETSequence", puppiMETSequence)
70 def addToProcessAndTask(label, module, process, task)
def getPatAlgosToolsTask(process)