|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Single particle record in an LHE event. More...
#include <LHEParticle.hh>
Public Member Functions | |
| LHEParticle (std::string &data) | |
| int | getICOLUP (int) const |
| int | getIDUP () const |
| int | getISTUP () const |
| LHEParticle * | getMother (int) const |
| int | getMOTHUP (int) const |
| double | getPUP (int) const |
| double | getSPINUP () const |
| double | getVTIMUP () const |
| void | print (std::ostream &stream) const |
| void | setMother (int i, LHEParticle *particle) |
Private Attributes | |
| int | icolup_ [2] |
| int | idup_ |
| int | istup_ |
| LHEParticle * | mothers_ [2] |
| int | mothup_ [2] |
| double | pup_ [5] |
| int | spinup_ |
| double | vtimup_ |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const LHEParticle &particle) |
Single particle record in an LHE event.
Definition at line 20 of file LHEParticle.hh.
| LHEParticle | ( | std::string & | data | ) |
Class constructor.
| data | The particle record as a space-delimited string. |
Definition at line 15 of file LHEParticle.cc.
References LOG::endl, LHEParticle::icolup_, LHEParticle::idup_, LHEParticle::istup_, LHEParticle::mothers_, LHEParticle::mothup_, LHEParticle::pup_, LHEParticle::spinup_, and LHEParticle::vtimup_.
| int getICOLUP | ( | int | i | ) | const |
Get the particle color (ICOLUP) by index.
Definition at line 63 of file LHEParticle.cc.
References LHEParticle::icolup_.
Referenced by LHEParticle::print().
| int getIDUP | ( | ) | const |
Get the PDG code (IDUP).
Definition at line 51 of file LHEParticle.cc.
References LHEParticle::idup_.
Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().
| int getISTUP | ( | ) | const |
Get the status code (ISTUP).
Definition at line 55 of file LHEParticle.cc.
References LHEParticle::istup_.
Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().
| LHEParticle * getMother | ( | int | i | ) | const |
Get a mother particle by index.
Definition at line 83 of file LHEParticle.cc.
References LHEParticle::mothers_.
Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex().
| int getMOTHUP | ( | int | i | ) | const |
Get a mother particle index (MOTHUP) by index.
Definition at line 59 of file LHEParticle.cc.
References LHEParticle::mothup_.
Referenced by LHEParticle::print(), and LHEReader::readNextEvent().
| double getPUP | ( | int | i | ) | const |
Get a momentum component (PUP) by index. Defined in order: E/C, Px, Py, Pz, mass
Definition at line 67 of file LHEParticle.cc.
References LHEParticle::pup_.
Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().
| double getSPINUP | ( | ) | const |
Get the particle's spin (SPINUP).
Definition at line 75 of file LHEParticle.cc.
References LHEParticle::spinup_.
Referenced by LHEParticle::print().
| double getVTIMUP | ( | ) | const |
Get the proper lifetime (VTIMUP).
Definition at line 71 of file LHEParticle.cc.
References LHEParticle::vtimup_.
Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().
| void print | ( | std::ostream & | stream | ) | const |
Print particle information to an output stream.
| stream | The output stream. |
Definition at line 87 of file LHEParticle.cc.
References LOG::endl, LHEParticle::getICOLUP(), LHEParticle::getIDUP(), LHEParticle::getISTUP(), LHEParticle::getMOTHUP(), LHEParticle::getPUP(), LHEParticle::getSPINUP(), and LHEParticle::getVTIMUP().
| void setMother | ( | int | i, |
| LHEParticle * | particle | ||
| ) |
Set a mother particle by index.
| i | The mother index. |
| particle | The mother particle. |
Definition at line 79 of file LHEParticle.cc.
References LHEParticle::mothers_.
Referenced by LHEReader::readNextEvent().
|
friend |
Overloaded stream operator.
| stream | The output stream. |
| particle | The particle to print. |
Definition at line 91 of file LHEParticle.cc.
|
private |
The particle color.
Definition at line 124 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getICOLUP().
|
private |
The PDG code.
Definition at line 109 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getIDUP().
|
private |
The status code.
Definition at line 114 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getISTUP().
|
private |
The mother particles.
Definition at line 104 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), LHEParticle::getMother(), and LHEParticle::setMother().
|
private |
The mother particle indices.
Definition at line 119 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getMOTHUP().
|
private |
The momentum components.
Definition at line 129 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getPUP().
|
private |
The particle's spin.
Definition at line 139 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getSPINUP().
|
private |
The proper time.
Definition at line 134 of file LHEParticle.hh.
Referenced by LHEParticle::LHEParticle(), and LHEParticle::getVTIMUP().