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

Select all particles except for (anti-)particles of one specific type. More...

#include <ActsFatras/Selectors/ParticleSelectors.hpp>

Public Member Functions

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

Detailed Description

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

Select all particles except for (anti-)particles of one specific type.

Member Function Documentation

◆ operator()()

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

Check if particle does not match the specific PDG type (ignoring sign).

Parameters
particleThe particle to evaluate
Returns
true if absolute PDG type does not match the template parameter