Class EnergyFinder

java.lang.Object
xal.tools.beam.EnergyFinder

public class EnergyFinder extends Object
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
    Constructor
    Description
    EnergyFinder(IProbe probe, double freq)
    constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    findEnergy(double targetPhase)
    solve the problem, using a simple linear step scheme
    double
    findEnergy(double targetPhase, double energy)
    solve the problem, using a simple linear step scheme
    void
    initCalc(double l, double energy)
    initialize problem specific information

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnergyFinder

      public EnergyFinder(IProbe probe, double freq)
      constructor
      Parameters:
      probe - for the beam
      freq - 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 deg
      energy - 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