|
Rivet
1.8.3
|
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 |
| bool | fromDecay () const |
| Determine whether the particle is from a hadron or tau decay. More... | |
Representation of particles from a HepMC::GenEvent.
|
inline |
Default constructor.
| bool Rivet::Particle::fromDecay | ( | ) | const |
Determine whether the particle is from a hadron or tau decay.
Specifically, walk up the ancestor chain until a status 2 hadron or tau is found, if at all.
References genParticle().
Referenced by mass().
| bool Rivet::Particle::hasAncestor | ( | PdgId | pdg_id | ) | const |
Check whether a given PID is found in the GenParticle's ancestor list
References genParticle().
Referenced by mass().
1.8.13