Wrapper class for HepMC3::GenParticle.
double getMomentum(int index) const
Get a momentum component by index.
std::shared_ptr< HepMC3::GenParticle > particle_
The underlying HepMC3 GenParticle.
void print() const
Print particle information to an output stream.
int getProductionVertexId() const
Get the production vertex id, 0 if the particle has none.
HepMCParticle(std::shared_ptr< HepMC3::GenParticle > particle)
Class constructor.
friend std::ostream & operator<<(std::ostream &stream, const HepMCParticle &particle)
Overloaded stream operator.
std::shared_ptr< HepMC3::GenParticle > getGenParticle() const
Get the underlying HepMC3 GenParticle.
HepMC3::FourVector getProductionPosition() const
Get the production position (x, y, z in mm, t in mm/c).