gov.sns.tools.beam
Class ParameterConverter

java.lang.Object
  |
  +--gov.sns.tools.beam.ParameterConverter

public class ParameterConverter
extends java.lang.Object


Constructor Summary
ParameterConverter()
           
 
Method Summary
static double computeBetaFromGamma(double gamma)
          Convenience function for computing the probe's velocity beta (w.r.t.
static double computeGammaFromBeta(double beta)
          Computes the relatavistic factor gamma from the current beta value
static double computeGammaFromEnergies(double W, double Er)
          Convenience function for computing the relatistic factor gamma from a particle's kinetic energy and rest energy.
static double computeMomentumFromEnergies(double W, double Er)
          Convenience function for computing momentum from kinetic energy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterConverter

public ParameterConverter()
Method Detail

computeGammaFromBeta

public static double computeGammaFromBeta(double beta)
Computes the relatavistic factor gamma from the current beta value

Parameters:
beta - speed of probe w.r.t. the speed of light
Returns:
relatavistic factor gamma

computeGammaFromEnergies

public static double computeGammaFromEnergies(double W,
                                              double Er)
Convenience function for computing the relatistic factor gamma from a particle's kinetic energy and rest energy.

Parameters:
W - kinetic energy of the particle
Er - rest energy of particle
Returns:
relatavistic factor gamma

computeBetaFromGamma

public static double computeBetaFromGamma(double gamma)
Convenience function for computing the probe's velocity beta (w.r.t. the speed of light) from the relatistic factor gamma.

Returns:
speed of probe (w.r.t. speed of light)

computeMomentumFromEnergies

public static double computeMomentumFromEnergies(double W,
                                                 double Er)
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