Package xal.tools.beam
Class EnergyFinder
java.lang.Object
xal.tools.beam.EnergyFinder
A class to find the energy of the beam, given information about measured
phase differences between BPMs We assume the BPMs report phase differences
from -180 to 180
- Author:
- J. Galambos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
findEnergy
(double targetPhase) solve the problem, using a simple linear step schemedouble
findEnergy
(double targetPhase, double energy) solve the problem, using a simple linear step schemevoid
initCalc
(double l, double energy) initialize problem specific information
-
Constructor Details
-
EnergyFinder
constructor- Parameters:
probe
- for the beamfreq
- the BPM frequency (MHz)
-
-
Method Details
-
initCalc
public void initCalc(double l, double energy) initialize problem specific information -
findEnergy
public double findEnergy(double targetPhase, double energy) solve the problem, using a simple linear step scheme- Parameters:
targetPhase
- the phase difference between BPMs in degenergy
- the starting guess for energy (MeV)
-
findEnergy
public double findEnergy(double targetPhase) solve the problem, using a simple linear step scheme- Parameters:
targetPhase
- the phase difference between BPMs in deg
-