HepMC3 event record library
Namespaces | Typedefs | Functions
Filter.h File Reference

Defines Filter operations for combingin Filters. More...

#include "HepMC3/GenParticle.h"
#include <functional>
+ Include dependency graph for Filter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 HepMC3
 HepMC3 main namespace.
 

Typedefs

using Filter = std::function< bool(ConstGenParticlePtr)>
 type of Filter More...
 

Functions

std::vector< GenParticlePtr > applyFilter (const Filter &filter, const std::vector< GenParticlePtr > &particles)
 Apply a Filter to a list of GenParticles Returns a vector of GenParticles that satisfy the Filter. More...
 
std::vector< ConstGenParticlePtr > applyFilter (const Filter &filter, const std::vector< ConstGenParticlePtr > &particles)
 Apply a Filter to a list of ConstGenParticles Returns a vector of ConstGenParticles that satisfy the Filter. More...
 
bool ACCEPT_ALL (ConstGenParticlePtr dummy)
 A Filter that will accept all particles This might be needed if a signature requires a default Filter. More...
 
Filter operator&& (const Filter &lhs, const Filter &rhs)
 The logical AND of two Filters is itself a Filter. More...
 
Filter operator|| (const Filter &lhs, const Filter &rhs)
 The logical OR of two Filters is itself a Filter. More...
 
Filter operator! (const Filter &rhs)
 The negation of a Filter is itself a Filter. More...
 

Detailed Description

Defines Filter operations for combingin Filters.

Definition in file Filter.h.