|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
#include <OpalParticle.h>
Public Types | |
| enum | { X , Y , L , INVALID } |
| enum | { X , Y , L , INVALID } |
Public Member Functions | |
| OpalParticle (int64_t id, double x, double px, double y, double py, double z, double pz, double time, double q, double m) | |
| Constructor. | |
| OpalParticle (int64_t id, Vector_t< double, 3 > const &R, Vector_t< double, 3 > const &P, double time, double q, double m) | |
| OpalParticle () | |
| void | setX (double) |
| Set the horizontal position in m. | |
| void | setPx (double) |
| Set the horizontal momentum. | |
| void | setY (double) |
| Set the vertical displacement in m. | |
| void | setPy (double) |
| Set the vertical momentum. | |
| void | setZ (double) |
| Set longitudinal position in m. | |
| void | setPz (double) |
| Set the longitudinal momentum. | |
| void | setR (Vector_t< double, 3 > const &) |
| Set position in m. | |
| void | setP (Vector_t< double, 3 > const &) |
| Set momentum. | |
| void | setTime (double t) |
| Set the time. | |
| int64_t | getId () const |
| Get the id of the particle. | |
| double | operator[] (unsigned int) const |
| Get coordinate. | |
| double | getX () const |
| Get horizontal position in m. | |
| double | getPx () const |
| Get horizontal momentum (no dimension). | |
| double | getY () const |
| Get vertical displacement in m. | |
| double | getPy () const |
| Get vertical momentum (no dimension). | |
| double | getZ () const |
| Get longitudinal displacement c*t in m. | |
| double | getPz () const |
| Get relative momentum error (no dimension). | |
| const Vector_t< double, 3 > & | getR () const |
| Get position in m. | |
| const Vector_t< double, 3 > & | getP () const |
| Get momentum. | |
| double | getTime () const |
| Get time. | |
| double | getCharge () const |
| Get charge in Coulomb. | |
| double | getMass () const |
| Get mass in GeV/c^2. | |
| OpalParticle (std::size_t id, double x, double px, double y, double py, double z, double pz, double time, double q, double m) | |
| Constructor. | |
| OpalParticle (std::size_t id, Vector_t< double, 3 > const &R, Vector_t< double, 3 > const &P, double time, double q, double m) | |
| OpalParticle () | |
| void | setX (double) |
| Set the horizontal position in m. | |
| void | setPx (double) |
| Set the horizontal momentum. | |
| void | setY (double) |
| Set the vertical displacement in m. | |
| void | setPy (double) |
| Set the vertical momentum. | |
| void | setZ (double) |
| Set longitudinal position in m. | |
| void | setPz (double) |
| Set the longitudinal momentum. | |
| void | setR (Vector_t< double, 3 > const &) |
| Set position in m. | |
| void | setP (Vector_t< double, 3 > const &) |
| Set momentum. | |
| void | setTime (double t) |
| Set the time. | |
| int64_t | getId () const |
| Get the id of the particle. | |
| double | operator[] (unsigned int) const |
| Get coordinate. | |
| double | getX () const |
| Get horizontal position in m. | |
| double | getPx () const |
| Get horizontal momentum (no dimension). | |
| double | getY () const |
| Get vertical displacement in m. | |
| double | getPy () const |
| Get vertical momentum (no dimension). | |
| double | getZ () const |
| Get longitudinal displacement c*t in m. | |
| double | getPz () const |
| Get relative momentum error (no dimension). | |
| const Vector_t< double, 3 > & | getR () const |
| Get position in m. | |
| const Vector_t< double, 3 > & | getP () const |
| Get momentum. | |
| double | getTime () const |
| Get time. | |
| double | getCharge () const |
| Get charge in Coulomb. | |
| double | getMass () const |
| Get mass in GeV/c^2. | |
Private Attributes | |
| int64_t | id_m |
| Vector_t< double, 3 > | R_m |
| Vector_t< double, 3 > | P_m |
| double | time_m |
| double | charge_m |
| double | mass_m |
Definition at line 28 of file AbstractObjects/OpalParticle.h.
| anonymous enum |
| Enumerator | |
|---|---|
| X | |
| Y | |
| L | |
| INVALID | |
Definition at line 31 of file AbstractObjects/OpalParticle.h.
| anonymous enum |
| Enumerator | |
|---|---|
| X | |
| Y | |
| L | |
| INVALID | |
Definition at line 27 of file Algorithms/OpalParticle.h.
| OpalParticle::OpalParticle | ( | int64_t | id, |
| double | x, | ||
| double | px, | ||
| double | y, | ||
| double | py, | ||
| double | z, | ||
| double | pz, | ||
| double | time, | ||
| double | q, | ||
| double | m ) |
| OpalParticle::OpalParticle | ( | ) |
Definition at line 21 of file AbstractObjects/OpalParticle.cpp.
| OpalParticle::OpalParticle | ( | std::size_t | id, |
| double | x, | ||
| double | px, | ||
| double | y, | ||
| double | py, | ||
| double | z, | ||
| double | pz, | ||
| double | time, | ||
| double | q, | ||
| double | m ) |
| OpalParticle::OpalParticle | ( | ) |
|
inline |
Get charge in Coulomb.
Definition at line 202 of file AbstractObjects/OpalParticle.h.
References charge_m.
Referenced by LossDataSink::saveH5().
| double OpalParticle::getCharge | ( | ) | const |
Get charge in Coulomb.
|
inline |
Get the id of the particle.
Definition at line 157 of file AbstractObjects/OpalParticle.h.
References id_m.
Referenced by LossDataSink::saveH5().
| int64_t OpalParticle::getId | ( | ) | const |
Get the id of the particle.
|
inline |
Get mass in GeV/c^2.
Definition at line 206 of file AbstractObjects/OpalParticle.h.
References mass_m.
Referenced by LossDataSink::saveH5().
| double OpalParticle::getMass | ( | ) | const |
|
inline |
| const Vector_t< double, 3 > & OpalParticle::getP | ( | ) | const |
Get momentum.
|
inline |
Get horizontal momentum (no dimension).
Definition at line 178 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getPx | ( | ) | const |
Get horizontal momentum (no dimension).
|
inline |
Get vertical momentum (no dimension).
Definition at line 182 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getPy | ( | ) | const |
Get vertical momentum (no dimension).
|
inline |
Get relative momentum error (no dimension).
Definition at line 186 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getPz | ( | ) | const |
Get relative momentum error (no dimension).
|
inline |
| const Vector_t< double, 3 > & OpalParticle::getR | ( | ) | const |
Get position in m.
|
inline |
Get time.
Definition at line 198 of file AbstractObjects/OpalParticle.h.
References time_m.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getTime | ( | ) | const |
Get time.
|
inline |
Get horizontal position in m.
Definition at line 166 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getX | ( | ) | const |
Get horizontal position in m.
|
inline |
Get vertical displacement in m.
Definition at line 170 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getY | ( | ) | const |
Get vertical displacement in m.
|
inline |
Get longitudinal displacement c*t in m.
Definition at line 174 of file AbstractObjects/OpalParticle.h.
Referenced by LossDataSink::computeSetStatistics(), and LossDataSink::saveH5().
| double OpalParticle::getZ | ( | ) | const |
Get longitudinal displacement c*t in m.
|
inline |
Get coordinate.
Definition at line 161 of file AbstractObjects/OpalParticle.h.
| double OpalParticle::operator[] | ( | unsigned int | ) | const |
Get coordinate.
|
inline |
| void OpalParticle::setP | ( | Vector_t< double, 3 > const & | ) |
Set momentum.
|
inline |
Set the horizontal momentum.
Definition at line 133 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setPx | ( | double | ) |
Set the horizontal momentum.
|
inline |
Set the vertical momentum.
Definition at line 137 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setPy | ( | double | ) |
Set the vertical momentum.
|
inline |
Set the longitudinal momentum.
Definition at line 141 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setPz | ( | double | ) |
Set the longitudinal momentum.
|
inline |
| void OpalParticle::setR | ( | Vector_t< double, 3 > const & | ) |
Set position in m.
|
inline |
| void OpalParticle::setTime | ( | double | t | ) |
Set the time.
|
inline |
Set the horizontal position in m.
Definition at line 121 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setX | ( | double | ) |
Set the horizontal position in m.
|
inline |
Set the vertical displacement in m.
Definition at line 125 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setY | ( | double | ) |
Set the vertical displacement in m.
|
inline |
Set longitudinal position in m.
Definition at line 129 of file AbstractObjects/OpalParticle.h.
| void OpalParticle::setZ | ( | double | ) |
Set longitudinal position in m.
|
private |
Definition at line 117 of file AbstractObjects/OpalParticle.h.
Referenced by getCharge(), getMass(), OpalParticle(), OpalParticle(), OpalParticle(), and OpalParticle().
|
private |
Definition at line 113 of file AbstractObjects/OpalParticle.h.
Referenced by getId(), getMass(), OpalParticle(), OpalParticle(), OpalParticle(), and OpalParticle().
|
private |
Definition at line 118 of file AbstractObjects/OpalParticle.h.
Referenced by getMass(), OpalParticle(), OpalParticle(), OpalParticle(), and OpalParticle().
|
private |
Definition at line 115 of file AbstractObjects/OpalParticle.h.
Referenced by getMass(), getP(), getPx(), getPy(), getPz(), OpalParticle(), OpalParticle(), OpalParticle(), OpalParticle(), operator[](), setP(), setPx(), setPy(), and setPz().
|
private |
Definition at line 114 of file AbstractObjects/OpalParticle.h.
Referenced by getMass(), getR(), getX(), getY(), getZ(), OpalParticle(), OpalParticle(), OpalParticle(), OpalParticle(), operator[](), setR(), setX(), setY(), and setZ().
|
private |
Definition at line 116 of file AbstractObjects/OpalParticle.h.
Referenced by getMass(), getTime(), OpalParticle(), OpalParticle(), OpalParticle(), OpalParticle(), and setTime().