CMS 3D CMS Logo

packedPFCandidates_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 from CommonTools.ParticleFlow.PFBRECO_cff import pfPileUpPFBRECO, pfNoPileUpPFBRECO
6 
7 packedPFCandidatesTask = cms.Task(
8  packedPFCandidates,
9  pfNoPileUpJMETask,
10  pfPileUpPFBRECO,
11  pfNoPileUpPFBRECO
12 )
13 
14 from RecoHI.HiJetAlgos.HiBadParticleCleaner_cfi import cleanedParticleFlow
15 
16 packedPFCandidatesRemoved = packedPFCandidates.clone(
17  inputCollection = "cleanedParticleFlow:removed",
18  vertexAssociator = "primaryVertexAssociationCleaned:original"
19 )
20 
21 _pp_on_AA_2018_packedPFCandidatesTask = cms.Task(cleanedParticleFlow,packedPFCandidatesRemoved,packedPFCandidatesTask.copy())
22 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
23 run2_miniAOD_pp_on_AA_103X.toReplaceWith(packedPFCandidatesTask,_pp_on_AA_2018_packedPFCandidatesTask)