OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <OpalParticle.h>
Public Types | |
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. More... | |
OpalParticle (int64_t id, Vector_t const &R, Vector_t const &P, double time, double q, double m) | |
OpalParticle () | |
void | setX (double) |
Set the horizontal position in m. More... | |
void | setPx (double) |
Set the horizontal momentum. More... | |
void | setY (double) |
Set the vertical displacement in m. More... | |
void | setPy (double) |
Set the vertical momentum. More... | |
void | setZ (double) |
Set longitudinal position in m. More... | |
void | setPz (double) |
Set the longitudinal momentum. More... | |
void | setR (Vector_t const &) |
Set position in m. More... | |
void | setP (Vector_t const &) |
Set momentum. More... | |
void | setTime (double t) |
Set the time. More... | |
int64_t | getId () const |
Get the id of the particle. More... | |
double | operator[] (unsigned int) const |
Get coordinate. More... | |
double | getX () const |
Get horizontal position in m. More... | |
double | getPx () const |
Get horizontal momentum (no dimension). More... | |
double | getY () const |
Get vertical displacement in m. More... | |
double | getPy () const |
Get vertical momentum (no dimension). More... | |
double | getZ () const |
Get longitudinal displacement c*t in m. More... | |
double | getPz () const |
Get relative momentum error (no dimension). More... | |
const Vector_t & | getR () const |
Get position in m. More... | |
const Vector_t & | getP () const |
Get momentum. More... | |
double | getTime () const |
Get time. More... | |
double | getCharge () const |
Get charge in Coulomb. More... | |
double | getMass () const |
Get mass in GeV/c^2. More... | |
Private Attributes | |
int64_t | id_m |
Vector_t | R_m |
Vector_t | P_m |
double | time_m |
double | charge_m |
double | mass_m |
Definition at line 23 of file OpalParticle.h.
anonymous enum |
Enumerator | |
---|---|
X | |
Y | |
L | |
INVALID |
Definition at line 28 of file 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 | ||
) |
Constructor.
Definition at line 25 of file OpalParticle.cpp.
OpalParticle::OpalParticle | ( | int64_t | id, |
Vector_t const & | R, | ||
Vector_t const & | P, | ||
double | time, | ||
double | q, | ||
double | m | ||
) |
Definition at line 39 of file OpalParticle.cpp.
OpalParticle::OpalParticle | ( | ) |
Definition at line 21 of file OpalParticle.cpp.
|
inline |
Get charge in Coulomb.
Definition at line 243 of file OpalParticle.h.
References charge_m.
Referenced by DistributionMoments::computeStatistics(), and LossDataSink::saveH5().
|
inline |
Get the id of the particle.
Definition at line 176 of file OpalParticle.h.
References id_m.
Referenced by DistributionMoments::isParticleExcluded(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get mass in GeV/c^2.
Definition at line 249 of file OpalParticle.h.
References mass_m.
Referenced by DistributionMoments::computeMeans(), DistributionMoments::computeStatistics(), and LossDataSink::saveH5().
|
inline |
Get momentum.
Definition at line 231 of file OpalParticle.h.
References P_m.
Referenced by Tracker::applyDrift(), DistributionMoments::computeMeans(), DistributionMoments::computeStatistics(), PartBunchBase< T, Dim >::push_back(), and PartBunchBase< T, Dim >::setParticle().
|
inline |
Get horizontal momentum (no dimension).
Definition at line 207 of file OpalParticle.h.
Referenced by Tracker::applyThinMultipole(), Tracker::applyThinSBend(), Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get vertical momentum (no dimension).
Definition at line 213 of file OpalParticle.h.
Referenced by Tracker::applyThinMultipole(), Tracker::applyThinSBend(), Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get relative momentum error (no dimension).
Definition at line 219 of file OpalParticle.h.
Referenced by Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get position in m.
Definition at line 225 of file OpalParticle.h.
References R_m.
Referenced by PartBunchBase< T, Dim >::push_back(), and PartBunchBase< T, Dim >::setParticle().
|
inline |
Get time.
Definition at line 237 of file OpalParticle.h.
References time_m.
Referenced by DistributionMoments::computeMeans(), LossDataSink::computeSetStatistics(), DistributionMoments::computeStatistics(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get horizontal position in m.
Definition at line 189 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), Tracker::applyThinMultipole(), Tracker::applyThinSBend(), Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get vertical displacement in m.
Definition at line 195 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), Tracker::applyThinMultipole(), Tracker::applyThinSBend(), Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
Get longitudinal displacement c*t in m.
Definition at line 201 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), Tracker::applyTransform(), LossDataSink::computeSetStatistics(), PartBunchBase< T, Dim >::maximumAmplitudes(), LossDataSink::saveASCII(), and LossDataSink::saveH5().
|
inline |
|
inline |
|
inline |
Set the horizontal momentum.
Definition at line 140 of file OpalParticle.h.
Referenced by Tracker::applyThinMultipole(), Tracker::applyThinSBend(), and Tracker::applyTransform().
|
inline |
Set the vertical momentum.
Definition at line 146 of file OpalParticle.h.
Referenced by Tracker::applyThinMultipole(), Tracker::applyThinSBend(), and Tracker::applyTransform().
|
inline |
Set the longitudinal momentum.
Definition at line 152 of file OpalParticle.h.
|
inline |
Set position in m.
Definition at line 158 of file OpalParticle.h.
References Attrib::Distribution::R, and R_m.
|
inline |
|
inline |
Set the horizontal position in m.
Definition at line 122 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), and Tracker::applyTransform().
|
inline |
Set the vertical displacement in m.
Definition at line 128 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), and Tracker::applyTransform().
|
inline |
Set longitudinal position in m.
Definition at line 134 of file OpalParticle.h.
Referenced by Tracker::applyDrift(), and Tracker::applyTransform().
|
private |
Definition at line 117 of file OpalParticle.h.
Referenced by getCharge().
|
private |
Definition at line 113 of file OpalParticle.h.
Referenced by getId().
|
private |
Definition at line 118 of file OpalParticle.h.
Referenced by getMass().
|
private |
|
private |
|
private |
Definition at line 116 of file OpalParticle.h.