OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
Particle reference data. More...
#include <PartData.h>
Public Member Functions | |
PartData (double charge, double mass, double momentum) | |
Constructor. More... | |
PartData () | |
double | getQ () const |
The constant charge per particle. More... | |
double | getM () const |
The constant mass per particle. More... | |
double | getP () const |
The constant reference momentum per particle. More... | |
double | getE () const |
The constant reference Energy per particle. More... | |
double | getBeta () const |
The relativistic beta per particle. More... | |
double | getGamma () const |
The relativistic gamma per particle. More... | |
void | setP (double p) |
Set reference momentum. More... | |
void | setE (double E) |
Set reference energy. More... | |
void | setBeta (double beta) |
Set beta. More... | |
void | setGamma (double gamma) |
Set gamma. More... | |
void | setM (double m) |
Set reference mass expressed in eV/c^2. More... | |
void | setQ (double q) |
Set reference charge expressed in proton charges, More... | |
Protected Attributes | |
double | charge |
double | mass |
double | beta |
double | gamma |
Particle reference data.
Definition at line 35 of file PartData.h.
PartData::PartData | ( | double | charge, |
double | mass, | ||
double | momentum | ||
) |
Constructor.
Definition at line 29 of file PartData.cpp.
References charge, mass, and setP().
PartData::PartData | ( | ) |
|
inline |
The relativistic beta per particle.
Definition at line 124 of file PartData.h.
References beta.
Referenced by Tracker::applyDrift(), Tracker::applyTransform(), ParallelCyclotronTracker::visitCyclotron(), and ParallelCyclotronTracker::visitRing().
|
inline |
The constant reference Energy per particle.
Definition at line 119 of file PartData.h.
|
inline |
The relativistic gamma per particle.
Definition at line 129 of file PartData.h.
References gamma.
Referenced by ThickTracker::fillGaps_m(), ParallelCyclotronTracker::visitCyclotron(), ThickTracker::visitDrift(), ThickTracker::visitMultipole(), and ParallelCyclotronTracker::visitRing().
|
inline |
The constant mass per particle.
Definition at line 109 of file PartData.h.
References mass.
Referenced by Tracker::applyDrift(), Tracker::applyTransform(), CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), OrbitThreader::integrate(), BorisPusher::kick(), OrbitThreader::setDesignEnergy(), CavityAutophaser::track(), Beam::update(), and ThickTracker::visitSBend().
|
inline |
The constant reference momentum per particle.
Definition at line 114 of file PartData.h.
References beta, gamma, and mass.
Referenced by Tracker::applyDrift(), Tracker::applyTransform(), ParallelTTracker::execute(), Beam::print(), and ThickTracker::visitMultipole().
|
inline |
The constant charge per particle.
Definition at line 104 of file PartData.h.
References charge.
Referenced by CavityAutophaser::getPhaseAtMaxEnergy(), CavityAutophaser::guessCavityPhase(), BorisPusher::kick(), CavityAutophaser::track(), ThickTracker::visitMultipole(), and ThickTracker::visitSBend().
void PartData::setBeta | ( | double | beta | ) |
Set beta.
Definition at line 73 of file PartData.cpp.
References beta, gamma, and sqrt().
void PartData::setE | ( | double | E | ) |
Set reference energy.
Definition at line 61 of file PartData.cpp.
References beta, gamma, mass, and sqrt().
Referenced by Beam::update().
void PartData::setGamma | ( | double | gamma | ) |
Set gamma.
Definition at line 83 of file PartData.cpp.
References beta, gamma, and sqrt().
Referenced by Beam::update().
|
inline |
void PartData::setP | ( | double | p | ) |
Set reference momentum.
Definition at line 44 of file PartData.cpp.
References beta, Physics::e, gamma, mass, and sqrt().
Referenced by PartData(), and Beam::update().
|
inline |
Set reference charge expressed in proton charges,
Definition at line 89 of file PartData.h.
References charge.
|
protected |
Definition at line 96 of file PartData.h.
Referenced by ParallelTTracker::execute(), ParallelTTracker::findStartPosition(), getBeta(), getP(), PartData(), setBeta(), setE(), setGamma(), setP(), and ParallelTTracker::writePhaseSpace().
|
protected |
Definition at line 94 of file PartData.h.
Referenced by getQ(), PartData(), and setQ().
|
protected |
Definition at line 97 of file PartData.h.
Referenced by ParallelTTracker::findStartPosition(), getE(), getGamma(), getP(), PartData(), setBeta(), setE(), setGamma(), and setP().
|
protected |
Definition at line 95 of file PartData.h.
Referenced by getE(), getM(), getP(), PartData(), setE(), setM(), and setP().