Module simpa.acc
Package simpa.acc.api

Class Optics

java.lang.Object
simpa.acc.api.Optics

public class Optics extends Object
This class holds optics data calculated by the OpticsCalculator. It it is a list of TwissParameters and a ReferenceOrbit.
Author:
lbojtar
  • Constructor Details

    • Optics

      public Optics(List<TwissParameters> twissPars, ReferenceOrbit refOrbit)
      Constructor for Optics .
      Parameters:
      twissPars - List of all Twiss Parameters
      refOrbit - The reference orbit.
  • Method Details

    • getAllTwissParametrs

      public List<TwissParameters> getAllTwissParametrs()
      Returns:
      List Twiss parameters at all calculated longitudinal positions.
    • getMaxHorBeta

      public double getMaxHorBeta()
      Returns:
      Maximum value of the horizontal beta along the sequence.
    • getMaxVertBeta

      public double getMaxVertBeta()
      Returns:
      Maximum value of the vertical beta along the sequence.
    • getMaxHorDisp

      public double getMaxHorDisp()
      Returns:
      Maximum value of the horizontal dispersion along the sequence.
    • getMaxVertDisp

      public double getMaxVertDisp()
      Returns:
      Maximum value of the vertical dispersion along the sequence.
    • getMinHorDisp

      public double getMinHorDisp()
      Returns:
      Minimum value of the horizontal dispersion along the sequence. Useful when matching negative dispersion.
    • getMinVertDisp

      public double getMinVertDisp()
      Returns:
      Minimum value of the vertical dispersion along the sequence. Useful when matching negative dispersion.
    • writeToFile

      public void writeToFile(String outFileName)
      Writes the Optics to a file, but only the Twiss parameters.
      Parameters:
      outFileName - The name of the output file.
    • getTwissParametersAt

      public TwissParameters getTwissParametersAt(double longiPos)
      Gets the Twiss parameter closest to the given longitudinal position.
      Parameters:
      longiPos - Longitudinal position.
      Returns:
      Twiss parameters
    • getMaxHorAbsPos

      public double getMaxHorAbsPos()
    • getMaxVertAbsPos

      public double getMaxVertAbsPos()