Commit 59103931 authored by Alex Pearce's avatar Alex Pearce
Browse files

Identify quarks by their ID.

This fix is implemented more cleanly in the combination of LHCb!571 and
Analysis!108. This specific commit is a shorter workaround, intended for
deployment as part of DaVinci patch releases for Stripping26 and
Stripping28.
parent 7d8773a9
......@@ -585,8 +585,8 @@ BackgroundCategory::get_top_mother_of_MCParticle(const LHCb::MCParticle* candida
finalmother = tmpmother;
tmpmother = finalmother->mother();
if (m_ignoreQuarks && tmpmother != NULL) {
if ( tmpmother->particleID().hasQuarks() &&
!tmpmother->particleID().isHadron() ) {
if ( 1 <= tmpmother->particleID().pid() &&
tmpmother->particleID().pid() <= 8 ) {
return finalmother;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment