18#ifndef CLASSIC_OpalParticle_HH
19#define CLASSIC_OpalParticle_HH
32 std::size_t
id,
double x,
double px,
double y,
double py,
double z,
double pz,
double time,
159 return i % 2 == 0 ?
R_m[i / 2] :
P_m[i / 2];
ippl::Vector< T, Dim > Vector_t
void setPy(double)
Set the vertical momentum.
double getPy() const
Get vertical momentum (no dimension).
Vector_t< double, 3 > R_m
double getPz() const
Get relative momentum error (no dimension).
Vector_t< double, 3 > P_m
const Vector_t< double, 3 > & getP() const
Get momentum.
void setPx(double)
Set the horizontal momentum.
void setPz(double)
Set the longitudinal momentum.
void setZ(double)
Set longitudinal position in m.
void setY(double)
Set the vertical displacement in m.
double getY() const
Get vertical displacement in m.
void setP(Vector_t< double, 3 > const &)
Set momentum.
double getCharge() const
Get charge in Coulomb.
double getZ() const
Get longitudinal displacement c*t in m.
double operator[](unsigned int) const
Get coordinate.
double getMass() const
Get mass in GeV/c^2.
double getTime() const
Get time.
void setTime(double t)
Set the time.
int64_t getId() const
Get the id of the particle.
double getPx() const
Get horizontal momentum (no dimension).
double getX() const
Get horizontal position in m.
void setR(Vector_t< double, 3 > const &)
Set position in m.
void setX(double)
Set the horizontal position in m.
const Vector_t< double, 3 > & getR() const
Get position in m.