Commit 0ccef98a authored by Eduardo Rodrigues's avatar Eduardo Rodrigues
Browse files

Merge branch 'bkgcat-fix' into 'DV4Strip26'

Check for quarks and anti-quarks.

See merge request !65
parents b4ca8908 35bcaf43
......@@ -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