Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed logic of dZVertex assignement #18473

Merged
merged 5 commits into from May 6, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CommonTools/RecoAlgos/python/sortedPFPrimaryVertices_cfi.py
Expand Up @@ -3,8 +3,8 @@
sorting = cms.PSet(),
assignment = cms.PSet(
#cuts to assign primary tracks not used in PV fit based on dZ compatibility
maxDzSigForPrimaryAssignment = cms.double(5.0), # in OR with next
maxDzForPrimaryAssignment = cms.double(0.03), # in OR with prev
maxDzSigForPrimaryAssignment = cms.double(5.0), # in AND with next
maxDzForPrimaryAssignment = cms.double(0.03), # in AND with prev
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be moved to 0.1 too


# cuts used to recover b-tracks if they are closed to jet axis
maxJetDeltaR = cms.double(0.5),
Expand Down
4 changes: 2 additions & 2 deletions CommonTools/RecoAlgos/python/sortedPrimaryVertices_cfi.py
Expand Up @@ -3,8 +3,8 @@
sorting = cms.PSet(),
assignment = cms.PSet(
#cuts to assign primary tracks not used in PV fit based on dZ compatibility
maxDzSigForPrimaryAssignment = cms.double(5.0), # in OR with next
maxDzForPrimaryAssignment = cms.double(0.03), # in OR with prev
maxDzSigForPrimaryAssignment = cms.double(5.0), # in AND with next
maxDzForPrimaryAssignment = cms.double(0.1), # in AND with prev

# cuts used to recover b-tracks if they are closed to jet axis
maxJetDeltaR = cms.double(0.5),
Expand Down
2 changes: 1 addition & 1 deletion CommonTools/RecoAlgos/src/PrimaryVertexAssignment.cc
Expand Up @@ -41,7 +41,7 @@ PrimaryVertexAssignment::chargedHadronVertex( const reco::VertexCollection& vert
}
}
// first use "closest in Z" with tight cuts (targetting primary particles)
if(vtxIdMinDz>=0 and (dzmin < maxDzForPrimaryAssignment_ or dzmin/track->dzError() < maxDzSigForPrimaryAssignment_ ))
if(vtxIdMinDz>=0 and (dzmin < maxDzForPrimaryAssignment_ and dzmin/track->dzError() < maxDzSigForPrimaryAssignment_ ))
{
iVertex=vtxIdMinDz;
}
Expand Down