Use id to check for loops in hepmc3
Use id to check for loops in hepmc3
It is very hard to create loops in HepMC3, so they de-facto do not exist.
But the identity of particles within same event one can check with id(), which is faster than barcode().
Tag @jchapman