rivet is hosted by Hepforge, IPPP Durham
HasParticleParentWith Struct Reference

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

#include <ParticleUtils.hh>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Definition at line 523 of file ParticleUtils.hh.


Constructor & Destructor Documentation

HasParticleParentWith ( const FN &  f) [inline]

Definition at line 525 of file ParticleUtils.hh.

: fn(f) { }
HasParticleParentWith ( const Cut c)

Member Function Documentation

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

Implements BoolParticleFunctor.

Definition at line 527 of file ParticleUtils.hh.

{ return hasParentWith(p, fn); }

Member Data Documentation

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

Definition at line 528 of file ParticleUtils.hh.


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