Skip to content

Commit

Permalink
consider PV zError
Browse files Browse the repository at this point in the history
  • Loading branch information
arizzi committed May 5, 2017
1 parent a2f9532 commit 9d480b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()<maxDzErrorForPrimaryAssignment_))
float dzE=sqrt(track->dzError()*track->dzError()+vertices[vtxIdMinDz].covariance(2,2));
if(vtxIdMinDz>=0 and (dzmin < maxDzForPrimaryAssignment_ and dzmin/dzE < maxDzSigForPrimaryAssignment_ and track->dzError()<maxDzErrorForPrimaryAssignment_))
{
iVertex=vtxIdMinDz;
}
Expand Down

0 comments on commit 9d480b8

Please sign in to comment.