Rivet  1.8.0
Public Member Functions | List of all members
Rivet::Particle Class Reference

Representation of particles from a HepMC::GenEvent. More...

#include <Particle.hh>

Inheritance diagram for Rivet::Particle:
Rivet::ParticleBase Rivet::ClusteredLepton

Public Member Functions

 Particle ()
 Particle (PdgId pid, const FourMomentum &mom)
 Constructor without GenParticle.
 Particle (const GenParticle &gp)
 Constructor from a HepMC GenParticle.
const GenParticle & genParticle () const
 Get a const reference to the original GenParticle.
bool hasGenParticle () const
 Check if the particle corresponds to a GenParticle.
PdgId pdgId () const
 The PDG ID code for this Particle.
ParticlesetMomentum (const FourMomentum &momentum)
 Set the momentum of this Particle.
const FourMomentummomentum () const
 The momentum of this Particle.
double energy () const
 The energy of this Particle.
double mass () const
 The mass of this Particle.
bool hasAncestor (PdgId pdg_id) const
 Check whether a given PID is found in the GenParticle's ancestor list.

Detailed Description

Representation of particles from a HepMC::GenEvent.

Constructor & Destructor Documentation

Rivet::Particle::Particle ( )
inline

Default constructor.

Deprecated:
A particle without info is useless. This only exists to keep STL containers happy.

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