Rivet
1.8.0
|
Representation of particles from a HepMC::GenEvent. More...
#include <Particle.hh>
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. |
Representation of particles from a HepMC::GenEvent.
|
inline |
Default constructor.