|
LDMX Software
|
Single particle record in an LHE event. More...
#include <LHEParticle.h>
Public Member Functions | |
| LHEParticle (std::string &data) | |
| Class constructor. | |
| int | getPdgId () const |
| Get the PDG code (IDUP). | |
| int | getStatus () const |
| Get the status code (ISTUP). | |
| int | getMother (int) const |
| Get a mother particle index (MOTHUP) by index_. | |
| int | getColor (int) const |
| Get the particle color (ICOLUP) by index_. | |
| double | getMomentum (int) const |
| Get a momentum component (PUP) by index_. | |
| double | getLifetime () const |
| Get the proper lifetime (VTIMUP). | |
| double | getSpin () const |
| Get the particle's spin (SPINUP). | |
| void | setMother (int i, LHEParticle *particle) |
| Set a mother particle by index_. | |
| LHEParticle * | getMotherParticle (int) const |
| Get a mother particle by index_. | |
| void | print () const |
| Print particle information to an output stream. | |
Private Attributes | |
| LHEParticle * | mothers_ [2] |
| The mother particles. | |
| int | pdg_id_ |
| The PDG code. | |
| int | status_ |
| The status code. | |
| int | mother_ [2] |
| The mother particle indices. | |
| int | color_ [2] |
| The particle color. | |
| double | momentum_ [5] |
| The momentum components. | |
| double | lifetime_ |
| The proper time. | |
| int | spin_ |
| The particle's spin. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const LHEParticle &particle) |
| Overloaded stream operator. | |
Single particle record in an LHE event.
Definition at line 32 of file LHEParticle.h.
| simcore::lhe::LHEParticle::LHEParticle | ( | std::string & | data | ) |
Class constructor.
| data | The particle record as a space-delimited string. |
Definition at line 6 of file LHEParticle.cxx.
References color_, lifetime_, momentum_, mother_, mothers_, pdg_id_, spin_, and status_.
| int simcore::lhe::LHEParticle::getColor | ( | int | i | ) | const |
Get the particle color (ICOLUP) by index_.
Definition at line 46 of file LHEParticle.cxx.
References color_.
Referenced by print().
| double simcore::lhe::LHEParticle::getLifetime | ( | ) | const |
Get the proper lifetime (VTIMUP).
Definition at line 50 of file LHEParticle.cxx.
References lifetime_.
Referenced by print().
| double simcore::lhe::LHEParticle::getMomentum | ( | int | i | ) | const |
Get a momentum component (PUP) by index_.
Defined in order: E/C, Px, Py, Pz, mass
Definition at line 48 of file LHEParticle.cxx.
References momentum_.
Referenced by print().
| int simcore::lhe::LHEParticle::getMother | ( | int | i | ) | const |
Get a mother particle index (MOTHUP) by index_.
Definition at line 44 of file LHEParticle.cxx.
References mother_.
Referenced by print().
| LHEParticle * simcore::lhe::LHEParticle::getMotherParticle | ( | int | i | ) | const |
Get a mother particle by index_.
Definition at line 58 of file LHEParticle.cxx.
References mothers_.
| int simcore::lhe::LHEParticle::getPdgId | ( | ) | const |
Get the PDG code (IDUP).
Definition at line 40 of file LHEParticle.cxx.
References pdg_id_.
Referenced by print().
| double simcore::lhe::LHEParticle::getSpin | ( | ) | const |
Get the particle's spin (SPINUP).
Definition at line 52 of file LHEParticle.cxx.
References spin_.
Referenced by print().
| int simcore::lhe::LHEParticle::getStatus | ( | ) | const |
Get the status code (ISTUP).
Definition at line 42 of file LHEParticle.cxx.
References status_.
Referenced by print().
| void simcore::lhe::LHEParticle::print | ( | ) | const |
Print particle information to an output stream.
Definition at line 60 of file LHEParticle.cxx.
References getColor(), getLifetime(), getMomentum(), getMother(), getPdgId(), getSpin(), and getStatus().
| void simcore::lhe::LHEParticle::setMother | ( | int | i, |
| LHEParticle * | particle ) |
Set a mother particle by index_.
| i | The mother index_. |
| particle | The mother particle. |
Definition at line 54 of file LHEParticle.cxx.
References mothers_.
|
friend |
Overloaded stream operator.
| stream | The output stream. |
| particle | The particle to print. |
|
private |
The particle color.
Definition at line 133 of file LHEParticle.h.
Referenced by getColor(), and LHEParticle().
|
private |
The proper time.
Definition at line 143 of file LHEParticle.h.
Referenced by getLifetime(), and LHEParticle().
|
private |
The momentum components.
Definition at line 138 of file LHEParticle.h.
Referenced by getMomentum(), and LHEParticle().
|
private |
The mother particle indices.
Definition at line 128 of file LHEParticle.h.
Referenced by getMother(), and LHEParticle().
|
private |
The mother particles.
Definition at line 113 of file LHEParticle.h.
Referenced by getMotherParticle(), LHEParticle(), and setMother().
|
private |
The PDG code.
Definition at line 118 of file LHEParticle.h.
Referenced by getPdgId(), and LHEParticle().
|
private |
The particle's spin.
Definition at line 148 of file LHEParticle.h.
Referenced by getSpin(), and LHEParticle().
|
private |
The status code.
Definition at line 123 of file LHEParticle.h.
Referenced by getStatus(), and LHEParticle().