File indexing completed on 2023-03-17 10:45:22
0001 import FWCore.ParameterSet.Config as cms
0002 from CommonTools.ParticleFlow.pfNoPileUpJME_cff import primaryVertexAssociationJME
0003
0004 pfCHS = cms.EDFilter("CandPtrSelector",
0005 src = cms.InputTag("packedPFCandidates"),
0006 cut = cms.string("fromPV(0)>0 || (vertexRef().key<={} && abs(dz(0))<{})".format(
0007 primaryVertexAssociationJME.assignment.NumOfPUVtxsForCharged.value(),
0008 primaryVertexAssociationJME.assignment.DzCutForChargedFromPUVtxs.value()))
0009 )