Verified Commit bfbc20ed authored by Tadej Novak's avatar Tadej Novak
Browse files

DerivationFrameworkMCTruth: HepMC3 fix

parent 4f9c24c9
Pipeline #2974816 passed with stage
in 0 seconds
......@@ -1409,7 +1409,11 @@ bool CompactHardTruth::isParton(HepMC::ConstGenParticlePtr p) {
// It should have been detached from hadronization vertex.
bool CompactHardTruth::isFinalParton(HepMC::ConstGenParticlePtr p) {
if (!isParton(p)) return false;
#ifdef HEPMC3
auto endp = p->end_vertex();
auto *endp = p->end_vertex();
return endp == nullptr;
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