public class EnergyFinder
extends java.lang.Object
| Constructor and Description |
|---|
EnergyFinder(IProbe probe,
double freq)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
findEnergy(double targetPhase)
solve the problem, using a simple linear step scheme
|
double |
findEnergy(double targetPhase,
double E)
solve the problem, using a simple linear step scheme
|
void |
initCalc(double l,
double E)
initialize problem specific information
|
public EnergyFinder(IProbe probe, double freq)
probe - for the beamthe - BPM frequency (MHz)public void initCalc(double l,
double E)
public double findEnergy(double targetPhase,
double E)
the - phase difference between BPMs in degthe - starting guess for energy (MeV)public double findEnergy(double targetPhase)
the - phase difference between BPMs in deg