diff --git a/CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc b/CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc index 4f9fefc84e7da..7e5ee76b453df 100644 --- a/CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc +++ b/CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc @@ -41,7 +41,8 @@ PrimaryVertexAssignment::chargedHadronVertex( const reco::VertexCollection& vert } } // first use "closest in Z" with tight cuts (targetting primary particles) - if(vtxIdMinDz>=0 and (dzmin < maxDzForPrimaryAssignment_ and dzmin/track->dzError() < maxDzSigForPrimaryAssignment_ and track->dzError()dzError()*track->dzError()+vertices[vtxIdMinDz].covariance(2,2)); + if(vtxIdMinDz>=0 and (dzmin < maxDzForPrimaryAssignment_ and dzmin/dzE < maxDzSigForPrimaryAssignment_ and track->dzError()