Rivet  1.8.0
Public Member Functions
Rivet::Particle Class Reference

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

#include <Particle.hh>

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

List of all members.

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.
Particle & setMomentum (const FourMomentum &momentum)
 Set the momentum of this Particle.
const FourMomentum & momentum () 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: