OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
OpalParticle Class Reference

OpalParticle position. More...

#include <OpalParticle.h>

Public Types

enum  {
  X, PX, Y, PY,
  T, PT
}
 

Public Member Functions

 OpalParticle (double x, double px, double y, double py, double t, double pt)
 Constructor. More...
 
 OpalParticle ()
 
double & operator[] (int)
 Get coordinate. More...
 
double & x ()
 Get reference to horizontal position in m. More...
 
double & px ()
 Get reference to horizontal momentum (no dimension). More...
 
double & y ()
 Get reference to vertical displacement in m. More...
 
double & py ()
 Get reference to vertical momentum (no dimension). More...
 
double & t ()
 Get reference to longitudinal displacement c*t in m. More...
 
double & pt ()
 Get reference to relative momentum error (no dimension). More...
 
double operator[] (int) const
 Get coordinate. More...
 
double x () const
 Get horizontal position in m. More...
 
double px () const
 Get horizontal momentum (no dimension). More...
 
double y () const
 Get vertical displacement in m. More...
 
double py () const
 Get vertical momentum (no dimension). More...
 
double t () const
 Get longitudinal displacement c*t in m. More...
 
double pt () const
 Get relative momentum error (no dimension). More...
 

Private Attributes

double phase [6]
 

Detailed Description

OpalParticle position.

Definition at line 38 of file OpalParticle.h.

Member Enumeration Documentation

anonymous enum
Enumerator
X 
PX 
Y 
PY 
T 
PT 

Definition at line 43 of file OpalParticle.h.

Constructor & Destructor Documentation

OpalParticle::OpalParticle ( double  x,
double  px,
double  y,
double  py,
double  t,
double  pt 
)

Constructor.

Definition at line 33 of file OpalParticle.cpp.

References PT, PX, PY, T, X, and Y.

OpalParticle::OpalParticle ( )

Definition at line 28 of file OpalParticle.cpp.

Member Function Documentation

double & OpalParticle::operator[] ( int  i)
inline

Get coordinate.

Definition at line 106 of file OpalParticle.h.

References phase.

double OpalParticle::operator[] ( int  i) const
inline

Get coordinate.

Definition at line 130 of file OpalParticle.h.

References phase.

double & OpalParticle::pt ( )
inline
double OpalParticle::pt ( ) const
inline

Get relative momentum error (no dimension).

Definition at line 149 of file OpalParticle.h.

References phase, and PT.

double & OpalParticle::px ( )
inline
double OpalParticle::px ( ) const
inline

Get horizontal momentum (no dimension).

Definition at line 143 of file OpalParticle.h.

References phase, and PX.

double & OpalParticle::py ( )
inline
double OpalParticle::py ( ) const
inline

Get vertical momentum (no dimension).

Definition at line 146 of file OpalParticle.h.

References phase, and PY.

double & OpalParticle::t ( )
inline
double OpalParticle::t ( ) const
inline

Get longitudinal displacement c*t in m.

Definition at line 140 of file OpalParticle.h.

References phase, and T.

double & OpalParticle::x ( )
inline
double OpalParticle::x ( ) const
inline

Get horizontal position in m.

Definition at line 134 of file OpalParticle.h.

References phase, and X.

double & OpalParticle::y ( )
inline
double OpalParticle::y ( ) const
inline

Get vertical displacement in m.

Definition at line 137 of file OpalParticle.h.

References phase, and Y.

Member Data Documentation

double OpalParticle::phase[6]
private

Definition at line 99 of file OpalParticle.h.

Referenced by operator[](), pt(), px(), py(), t(), x(), and y().


The documentation for this class was generated from the following files: