33inline Flow flow(
const HepMC3::ConstGenParticlePtr& p) {
34 std::shared_ptr<HepMC3::VectorIntAttribute> vf = p->attribute<HepMC3::VectorIntAttribute>(
HepMCStr::flow);
38 for (
int i = 1; i <= 10; i++) {
39 std::shared_ptr<HepMC3::IntAttribute> f = p->attribute<HepMC3::IntAttribute>(
"flow" + std::to_string(i));
if (f) fl.push_back(i);
else break;
41 return std::make_shared<HepMC3::VectorIntAttribute>(fl);