LDMX Software
|
Single particle record in an LHE event. More...
#include <LHEParticle.h>
Public Member Functions | |
LHEParticle (std::string &data) | |
Class constructor. | |
int | getIDUP () const |
Get the PDG code (IDUP). | |
int | getISTUP () const |
Get the status code (ISTUP). | |
int | getMOTHUP (int) const |
Get a mother particle index (MOTHUP) by index. | |
int | getICOLUP (int) const |
Get the particle color (ICOLUP) by index. | |
double | getPUP (int) const |
Get a momentum component (PUP) by index. | |
double | getVTIMUP () const |
Get the proper lifetime (VTIMUP). | |
double | getSPINUP () const |
Get the particle's spin (SPINUP). | |
void | setMother (int i, LHEParticle *particle) |
Set a mother particle by index. | |
LHEParticle * | getMother (int) const |
Get a mother particle by index. | |
void | print (std::ostream &stream) const |
Print particle information to an output stream. | |
Private Attributes | |
LHEParticle * | mothers_ [2] |
The mother particles. | |
int | idup_ |
The PDG code. | |
int | istup_ |
The status code. | |
int | mothup_ [2] |
The mother particle indices. | |
int | icolup_ [2] |
The particle color. | |
double | pup_ [5] |
The momentum components. | |
double | vtimup_ |
The proper time. | |
int | spinup_ |
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 20 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 17 of file LHEParticle.cxx.
References icolup_, idup_, istup_, mothers_, mothup_, pup_, spinup_, and vtimup_.
int simcore::lhe::LHEParticle::getICOLUP | ( | int | i | ) | const |
Get the particle color (ICOLUP) by index.
Definition at line 57 of file LHEParticle.cxx.
References icolup_.
Referenced by print().
int simcore::lhe::LHEParticle::getIDUP | ( | ) | const |
Get the PDG code (IDUP).
Definition at line 51 of file LHEParticle.cxx.
References idup_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex(), and print().
int simcore::lhe::LHEParticle::getISTUP | ( | ) | const |
Get the status code (ISTUP).
Definition at line 53 of file LHEParticle.cxx.
References istup_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex(), and print().
LHEParticle * simcore::lhe::LHEParticle::getMother | ( | int | i | ) | const |
Get a mother particle by index.
Definition at line 69 of file LHEParticle.cxx.
References mothers_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex().
int simcore::lhe::LHEParticle::getMOTHUP | ( | int | i | ) | const |
Get a mother particle index (MOTHUP) by index.
Definition at line 55 of file LHEParticle.cxx.
References mothup_.
Referenced by print(), and simcore::lhe::LHEReader::readNextEvent().
double simcore::lhe::LHEParticle::getPUP | ( | int | i | ) | const |
Get a momentum component (PUP) by index.
Defined in order: E/C, Px, Py, Pz, mass
Definition at line 59 of file LHEParticle.cxx.
References pup_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex(), and print().
double simcore::lhe::LHEParticle::getSPINUP | ( | ) | const |
Get the particle's spin (SPINUP).
Definition at line 63 of file LHEParticle.cxx.
References spinup_.
Referenced by print().
double simcore::lhe::LHEParticle::getVTIMUP | ( | ) | const |
Get the proper lifetime (VTIMUP).
Definition at line 61 of file LHEParticle.cxx.
References vtimup_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex(), and print().
void simcore::lhe::LHEParticle::print | ( | std::ostream & | stream | ) | const |
Print particle information to an output stream.
stream | The output stream. |
Definition at line 71 of file LHEParticle.cxx.
References getICOLUP(), getIDUP(), getISTUP(), getMOTHUP(), getPUP(), getSPINUP(), and getVTIMUP().
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 65 of file LHEParticle.cxx.
References mothers_.
Referenced by simcore::lhe::LHEReader::readNextEvent().
|
friend |
Overloaded stream operator.
stream | The output stream. |
particle | The particle to print. |
Definition at line 82 of file LHEParticle.cxx.
|
private |
The particle color.
Definition at line 122 of file LHEParticle.h.
Referenced by getICOLUP(), and LHEParticle().
|
private |
The PDG code.
Definition at line 107 of file LHEParticle.h.
Referenced by getIDUP(), and LHEParticle().
|
private |
The status code.
Definition at line 112 of file LHEParticle.h.
Referenced by getISTUP(), and LHEParticle().
|
private |
The mother particles.
Definition at line 102 of file LHEParticle.h.
Referenced by getMother(), LHEParticle(), and setMother().
|
private |
The mother particle indices.
Definition at line 117 of file LHEParticle.h.
Referenced by getMOTHUP(), and LHEParticle().
|
private |
The momentum components.
Definition at line 127 of file LHEParticle.h.
Referenced by getPUP(), and LHEParticle().
|
private |
The particle's spin.
Definition at line 137 of file LHEParticle.h.
Referenced by getSPINUP(), and LHEParticle().
|
private |
The proper time.
Definition at line 132 of file LHEParticle.h.
Referenced by getVTIMUP(), and LHEParticle().