class
PartData
(Return to index)
Particle reference data.
This class encapsulates the reference data for a beam:
- charge per particle expressed in proton charges,
- mass per particle expressed in eV,
- reference momentum per particle expressed in eV.
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/PartData.hh |
Synopsis (including inherited members):
- Public members:
- Protected Members:
-
double charge
;
-
double mass
;
-
double beta
;
-
double gamma
;
Documentation:
- Public members:
-
PartData
(double,double,double)
;
- Constructor.
Inputs are:
- charge
- The charge per particle in proton charges.
- mass
- The particle mass in eV.
- momentum
- The reference momentum per particle in eV.
-
double getBeta
()const
;
- The relativistic beta per particle.
-
double getE
()const
;
- The constant reference Energy per particle.
-
double getGamma
()const
;
- The relativistic gamma per particle.
-
double getM
()const
;
- The constant mass per particle.
-
double getP
()const
;
- The constant reference momentum per particle.
-
double getQ
()const
;
- The constant charge per particle.
-
void setBeta
(double)
;
- Set beta.
Input is the relativistic beta = v/c.
-
void setE
(double)
;
- Set reference energy.
Input is the energy in eV.
-
void setGamma
(double)
;
- Set gamma.
Input is the relativistic gamma = E/(m*c*c).
-
void setP
(double)
;
- Set reference momentum.
Input is the momentum in eV.
- Protected members:
Documentation generated by fci on Mon Feb 7 11:41:47 2000