CMS 3D CMS Logo

pfCHS_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from CommonTools.ParticleFlow.pfNoPileUpJME_cff import primaryVertexAssociationJME
3 
4 pfCHS = cms.EDFilter("CandPtrSelector",
5  src = cms.InputTag("packedPFCandidates"),
6  cut = cms.string("fromPV(0)>0 || (vertexRef().key<={} && abs(dz(0))<{})".format(
7  primaryVertexAssociationJME.assignment.NumOfPUVtxsForCharged.value(),
8  primaryVertexAssociationJME.assignment.DzCutForChargedFromPUVtxs.value()))
9 )