Skip to content
Snippets Groups Projects
Commit 47b38688 authored by Andrii Verbytskyi's avatar Andrii Verbytskyi Committed by Johannes Elmsheuser
Browse files

Add neutral pions to GetLCSinglePionsPerf.cxx

Add neutral pions to  GetLCSinglePionsPerf.cxx
parent 91594f8c
No related branches found
No related tags found
No related merge requests found
......@@ -667,7 +667,8 @@ StatusCode GetLCSinglePionsPerf::execute()
}
HepMC::ConstGenParticlePtr gen{nullptr};
for (auto p: *truthEvent->at(0)) {
if (std::abs(p->pdg_id()) != MC::PIPLUS || !MC::isGenStable(p)) continue;
if (!MC::isGenStable(p)) continue;
if (std::abs(p->pdg_id()) != MC::PIPLUS && std::abs(p->pdg_id()) != MC::PI0 ) continue;
gen = p;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment