Package xal.tools.beam
Class ParameterConverter
java.lang.Object
xal.tools.beam.ParameterConverter
Deprecated.
- Author:
- Christopher K. Allen
- See Also:
-
gov.sns.tool.beam#RelativisticParameterConverter
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecomputeBetaFromEnergies(double w, double eR) Deprecated.Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the kinetic energy.static doublecomputeBetaFromGamma(double gamma) Deprecated.Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the relativistic factor gamma.static doublecomputeGammaFromBeta(double beta) Deprecated.Computes the relativistic factor gamma from the current beta valuestatic doublecomputeGammaFromEnergies(double w, double eR) Deprecated.Convenience function for computing the relativistic factor gamma from a particle's kinetic energy and rest energy.static doublecomputeMomentumFromEnergies(double w, double eR) Deprecated.Convenience function for computing momentum from kinetic energy
-
Method Details
-
computeGammaFromBeta
public static double computeGammaFromBeta(double beta) Deprecated.Computes the relativistic factor gamma from the current beta value- Parameters:
beta- speed of probe w.r.t. the speed of light- Returns:
- relativistic factor gamma
-
computeGammaFromEnergies
public static double computeGammaFromEnergies(double w, double eR) Deprecated.Convenience function for computing the relativistic factor gamma from a particle's kinetic energy and rest energy.- Parameters:
w- kinetic energy of the particleeR- rest energy of particle- Returns:
- relativistic factor gamma
-
computeBetaFromGamma
public static double computeBetaFromGamma(double gamma) Deprecated.Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the relativistic factor gamma.- Parameters:
gamma- relativistic factor gamma- Returns:
- speed of probe (w.r.t. speed of light)
-
computeBetaFromEnergies
public static double computeBetaFromEnergies(double w, double eR) Deprecated.Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the kinetic energy.- Parameters:
w- kinetic energy (eV)eR- rest energy of particle (eV)- Returns:
- speed of probe (w.r.t. speed of light)
-
computeMomentumFromEnergies
public static double computeMomentumFromEnergies(double w, double eR) Deprecated.Convenience function for computing momentum from kinetic energy- Parameters:
w- kinetic energy of the particle (eV)eR- rest energy of particle (eV)- Returns:
- particle momentum in eV/c where c is the speed of light
-
RelativisticParameterConverter