35 HepMC::GenEvent::particle_const_iterator
begin = evt->particles_begin();
36 HepMC::GenEvent::particle_const_iterator
end = evt->particles_end();
38 bool foundParticle =
false;
39 bool foundParton =
false;
41 HepMC::GenEvent::particle_const_iterator it =
begin;
42 while ((!foundParton || !foundParticle) && it !=
end) {
54 return (foundParton && foundParticle);