Commit 35bcaf43 authored by Alex Pearce's avatar Alex Pearce
Browse files

Check for quarks and anti-quarks.

parent b4ca8908
......@@ -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 ( 1 <= tmpmother->particleID().pid() &&
tmpmother->particleID().pid() <= 8 ) {
if ( 1 <= tmpmother->particleID().abspid() &&
tmpmother->particleID().abspid() <= 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