23inline std::vector<GenParticlePtr> 
applyFilter(
const Filter &filter, 
const std::vector<GenParticlePtr> &particles) {
 
   24    std::vector<GenParticlePtr> result;
 
   25    for (GenParticlePtr p: particles) {
 
   26        if (filter(p)) result.push_back(p);
 
 
   33inline std::vector<ConstGenParticlePtr> 
applyFilter(
const Filter &filter, 
const std::vector<ConstGenParticlePtr> &particles) {
 
   34    std::vector<ConstGenParticlePtr> result;
 
   35    for (ConstGenParticlePtr p: particles) {
 
   36        if (filter(p)) result.push_back(p);
 
 
Definition of class GenParticle.
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.