rivet is hosted by Hepforge, IPPP Durham
FirstParticleWith Struct Reference

Determine whether a particle is the first in a decay chain to meet the cut/function. More...

#include <ParticleUtils.hh>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Determine whether a particle is the first in a decay chain to meet the cut/function.

Definition at line 460 of file ParticleUtils.hh.


Constructor & Destructor Documentation

FirstParticleWith ( const FN &  f) [inline]

Definition at line 462 of file ParticleUtils.hh.

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

Definition at line 7 of file ParticleUtils.cc.

    : fn([&](const Particle& p){ return c->accept(p); }) { }

Member Function Documentation

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

Implements BoolParticleFunctor.

Definition at line 464 of file ParticleUtils.hh.

{ return isFirstWith(p, fn); }

Member Data Documentation

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

Definition at line 465 of file ParticleUtils.hh.


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