rivet is hosted by Hepforge, IPPP Durham
HasParticleDescendantWith Struct Reference

Determine whether a particle has a descendant which meets the cut/function. More...

#include <ParticleUtils.hh>

List of all members.

Public Member Functions

template<typename FN >
 HasParticleDescendantWith (const FN &f)
 HasParticleDescendantWith (const Cut &c)
bool operator() (const Particle &p) const

Public Attributes

std::function< bool(const
Particle &)> 
fn

Detailed Description

Determine whether a particle has a descendant which meets the cut/function.

Definition at line 565 of file ParticleUtils.hh.


Constructor & Destructor Documentation

HasParticleDescendantWith ( const FN &  f) [inline]

Definition at line 567 of file ParticleUtils.hh.

: fn(f) { }

Member Function Documentation

bool operator() ( const Particle p) const [inline, virtual]

Implements BoolParticleFunctor.

Definition at line 569 of file ParticleUtils.hh.

{ return hasDescendantWith(p, fn); }

Member Data Documentation

std::function<bool(const Particle&)> fn

Definition at line 570 of file ParticleUtils.hh.


The documentation for this struct was generated from the following file: