ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsFatras::AbsPdgSelector< Pdg > Struct Template Reference

Select particles and antiparticles of one specific type. More...

#include <ActsFatras/Selectors/ParticleSelectors.hpp>

Inheritance diagram for ActsFatras::AbsPdgSelector< Pdg >:
[legend]

Public Member Functions

bool operator() (const Particle &particle) const
 Check if particle matches the specific PDG type (ignoring sign).

Detailed Description

template<Acts::PdgParticle Pdg>
struct ActsFatras::AbsPdgSelector< Pdg >

Select particles and antiparticles of one specific type.

Member Function Documentation

◆ operator()()

template<Acts::PdgParticle Pdg>
bool ActsFatras::AbsPdgSelector< Pdg >::operator() ( const Particle & particle) const

Check if particle matches the specific PDG type (ignoring sign).

Parameters
particleThe particle to evaluate
Returns
true if absolute PDG type matches the template parameter