Skip to content
Snippets Groups Projects
Commit 7df128cf authored by Alex Pearce's avatar Alex Pearce
Browse files

Use isQuark method for correct quark matching.

Fixes LHCBPS-1718.
parent 2030791a
No related tags found
No related merge requests found
...@@ -585,8 +585,7 @@ BackgroundCategory::get_top_mother_of_MCParticle(const LHCb::MCParticle* candida ...@@ -585,8 +585,7 @@ BackgroundCategory::get_top_mother_of_MCParticle(const LHCb::MCParticle* candida
finalmother = tmpmother; finalmother = tmpmother;
tmpmother = finalmother->mother(); tmpmother = finalmother->mother();
if (m_ignoreQuarks && tmpmother != NULL) { if (m_ignoreQuarks && tmpmother != NULL) {
if ( 1 <= tmpmother->particleID().pid() && if (tmpmother->particleID().isQuark()) {
tmpmother->particleID().pid() <= 8 ) {
return finalmother; return finalmother;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment