10 using namespace HepMC3;
18 for (ConstGenParticlePtr p: evt.
particles())
19 if ( p->pdg_id() == 22 && p->momentum().perp() > 25. )
return 1;
30 for (ConstGenParticlePtr p: evt.
particles())
31 if ( p->status() == 1 &&
std::abs(p->pdg_id()) == 11 && p->momentum().e() > 10.)
return 1;
Stores event-related information.
bool operator()(const GenEvent &evt)
The main member.
bool operator()(const GenEvent &evt)
The main member.
const std::vector< ConstGenParticlePtr > & particles() const
Get list of particles (const)
Feature< Feature_type > abs(const Feature< Feature_type > &input)
Obtain the absolute value of a Feature. This works as you'd expect. If foo is a valid Feature...