class
Particle
(Return to index)
Particle position.
This class represents the canonical coordinates of a particle.
{P}
NOTE. The order of phase space coordinates is,
as opposed to the original CLASSIC definition:
{CENTER}
X = 0, PX = 1, Y = 2, PY = 3, T = 4, PT = 5.
{/CENTER}
The copy constructor, destructor, and assignment operator generated
by the compiler perform the correct operation. For speed reasons
they are not implemented.
Type: |
Instantiable |
Include file: |
./Algorithms/Particle.hh |
Synopsis (including inherited members):
- Public members:
-
Particle
(double,double,double,double,double,double)
;
-
Particle
()
;
-
double& operator[]
(int)
;
-
double& x
()
;
-
double& px
()
;
-
double& y
()
;
-
double& py
()
;
-
double& t
()
;
-
double& pt
()
;
-
double operator[]
(int)const
;
-
double x
()const
;
-
double px
()const
;
-
double y
()const
;
-
double py
()const
;
-
double t
()const
;
-
double pt
()const
;
Documentation:
- Public members:
-
Particle
(double,double,double,double,double,double)
;
- Constructor.
Construct particle with the given coordinates.
-
double& operator[]
(int)
;
- Get coordinate.
Access coordinate by index.
Note above order of phase space coordinates!
-
double operator[]
(int)const
;
- Get coordinate.
Access coordinate by index for constant particle.
-
double& pt
()
;
- Get reference to relative momentum error (no dimension).
-
double pt
()const
;
- Get relative momentum error (no dimension).
-
double& px
()
;
- Get reference to horizontal momentum (no dimension).
-
double px
()const
;
- Get horizontal momentum (no dimension).
-
double& py
()
;
- Get reference to vertical momentum (no dimension).
-
double py
()const
;
- Get vertical momentum (no dimension).
-
double& t
()
;
- Get reference to longitudinal displacement c*t in m.
-
double t
()const
;
- Get longitudinal displacement c*t in m.
-
double& x
()
;
- Get reference to horizontal position in m.
-
double x
()const
;
- Get horizontal position in m.
-
double& y
()
;
- Get reference to vertical displacement in m.
-
double y
()const
;
- Get vertical displacement in m.
Documentation generated by fci on Mon Feb 7 11:41:48 2000