rivet is hosted by Hepforge, IPPP Durham
HasAbsPID Struct Reference

|PID| matching functor More...

#include <ParticleUtils.hh>

Inheritance diagram for HasAbsPID:
Collaboration diagram for HasAbsPID:

List of all members.

Public Member Functions

 HasAbsPID (PdgId pid)
bool operator() (const Particle &p) const

Public Attributes

PdgId targetpid

Detailed Description

|PID| matching functor

Definition at line 283 of file ParticleUtils.hh.


Constructor & Destructor Documentation

HasAbsPID ( PdgId  pid) [inline]

Definition at line 284 of file ParticleUtils.hh.

: targetpid(abs(pid)) { }

Member Function Documentation

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

Implements BoolParticleFunctor.

Definition at line 285 of file ParticleUtils.hh.

References Particle::abspid(), and HasAbsPID::targetpid.

{ return p.abspid() == abs(targetpid); }

Member Data Documentation

Definition at line 286 of file ParticleUtils.hh.

Referenced by HasAbsPID::operator()().


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