|
LDMX Software
|
Wrapper class for HepMC3::GenParticle. More...
#include <HepMCParticle.h>
Public Member Functions | |
| HepMCParticle (std::shared_ptr< HepMC3::GenParticle > particle) | |
| Class constructor. | |
| int | getPdgId () const |
| Get the PDG code. | |
| int | getStatus () const |
| Get the status code. | |
| double | getMomentum (int index) const |
| Get a momentum component by index. | |
| double | getMass () const |
| Get the particle's mass. | |
| std::shared_ptr< HepMC3::GenParticle > | getGenParticle () const |
| Get the underlying HepMC3 GenParticle. | |
| void | print () const |
| Print particle information to an output stream. | |
Private Attributes | |
| std::shared_ptr< HepMC3::GenParticle > | particle_ |
| The underlying HepMC3 GenParticle. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const HepMCParticle &particle) |
| Overloaded stream operator. | |
Wrapper class for HepMC3::GenParticle.
Definition at line 31 of file HepMCParticle.h.
| simcore::hepmc::HepMCParticle::HepMCParticle | ( | std::shared_ptr< HepMC3::GenParticle > | particle | ) |
Class constructor.
| particle | Shared pointer to HepMC3 GenParticle |
Definition at line 8 of file HepMCParticle.cxx.
References particle_.
| std::shared_ptr< HepMC3::GenParticle > simcore::hepmc::HepMCParticle::getGenParticle | ( | ) | const |
Get the underlying HepMC3 GenParticle.
Definition at line 40 of file HepMCParticle.cxx.
References particle_.
| double simcore::hepmc::HepMCParticle::getMass | ( | ) | const |
Get the particle's mass.
Definition at line 38 of file HepMCParticle.cxx.
References particle_.
| double simcore::hepmc::HepMCParticle::getMomentum | ( | int | index | ) | const |
Get a momentum component by index.
Index 0: px, 1: py, 2: pz, 3: E
Definition at line 20 of file HepMCParticle.cxx.
References particle_.
| int simcore::hepmc::HepMCParticle::getPdgId | ( | ) | const |
Get the PDG code.
Definition at line 16 of file HepMCParticle.cxx.
References particle_.
| int simcore::hepmc::HepMCParticle::getStatus | ( | ) | const |
Get the status code.
Definition at line 18 of file HepMCParticle.cxx.
References particle_.
| void simcore::hepmc::HepMCParticle::print | ( | ) | const |
Print particle information to an output stream.
Definition at line 44 of file HepMCParticle.cxx.
|
friend |
Overloaded stream operator.
| stream | The output stream. |
| particle | The particle to print. |
Definition at line 46 of file HepMCParticle.cxx.
|
private |
The underlying HepMC3 GenParticle.
Definition at line 87 of file HepMCParticle.h.
Referenced by getGenParticle(), getMass(), getMomentum(), getPdgId(), getStatus(), and HepMCParticle().