10 using namespace HepMC3;
16 bool operator()(
const GenEvent& evt ) {
17 for (ConstGenParticlePtr p: evt.
particles())
18 if ( p->pdg_id() == 22 && p->momentum().perp() > 25. )
return 1;
27 bool operator()(
const GenEvent& evt ) {
28 for (ConstGenParticlePtr p: evt.
particles())
29 if ( p->status() == 1 &&
std::abs(p->pdg_id()) == 11 && p->momentum().e() > 10.)
return 1;
Stores event-related information.
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...