|
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 28 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 11 of file HepMCParticle.cxx.
References particle_.
| std::shared_ptr< HepMC3::GenParticle > simcore::hepmc::HepMCParticle::getGenParticle | ( | ) | const |
Get the underlying HepMC3 GenParticle.
Definition at line 43 of file HepMCParticle.cxx.
References particle_.
| double simcore::hepmc::HepMCParticle::getMass | ( | ) | const |
Get the particle's mass.
Definition at line 41 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 23 of file HepMCParticle.cxx.
References particle_.
| int simcore::hepmc::HepMCParticle::getPdgId | ( | ) | const |
Get the PDG code.
Definition at line 19 of file HepMCParticle.cxx.
References particle_.
| int simcore::hepmc::HepMCParticle::getStatus | ( | ) | const |
Get the status code.
Definition at line 21 of file HepMCParticle.cxx.
References particle_.
| void simcore::hepmc::HepMCParticle::print | ( | ) | const |
Print particle information to an output stream.
Definition at line 47 of file HepMCParticle.cxx.
|
friend |
Overloaded stream operator.
| stream | The output stream. |
| particle | The particle to print. |
Definition at line 49 of file HepMCParticle.cxx.
|
private |
The underlying HepMC3 GenParticle.
Definition at line 84 of file HepMCParticle.h.
Referenced by getGenParticle(), getMass(), getMomentum(), getPdgId(), getStatus(), and HepMCParticle().