16 from CommonTools.ParticleFlow.pfCHS_cff
import packedPrimaryVertexAssociationJME
17 setattr(process,
"packedPrimaryVertexAssociationJME", packedPrimaryVertexAssociationJME.clone())
18 task.add(process.packedPrimaryVertexAssociationJME)
19 process.load(
'CommonTools.PileupAlgos.Puppi_cff')
20 task.add(process.puppi)
21 process.puppi.candName =
'packedPFCandidates'
22 process.puppi.clonePackedCands =
True
23 process.puppi.vertexName =
'offlineSlimmedPrimaryVertices'
24 process.puppi.useExistingWeights =
True
25 process.puppi.vertexAssociation =
'packedPrimaryVertexAssociationJME:original'
26 task.add(process.puppiNoLep)
27 process.puppiNoLep.candName =
'packedPFCandidates'
28 process.puppiNoLep.clonePackedCands =
True
29 process.puppiNoLep.vertexName =
'offlineSlimmedPrimaryVertices'
30 process.puppiNoLep.useExistingWeights =
True
31 process.puppiNoLep.vertexAssociation =
'packedPrimaryVertexAssociationJME:original'
34 if createScheduledSequence:
35 puppiMETTask = cms.Task(process.packedPrimaryVertexAssociationJME, process.puppi, process.puppiNoLep)
36 setattr(process,
"puppiMETTask", puppiMETTask)
37 puppiMETSequence = cms.Sequence(puppiMETTask)
38 setattr(process,
"puppiMETSequence", puppiMETSequence)