java.lang.Object
simpa.acc.api.Optics
This class holds optics data calculated by the
OpticsCalculator
. It
it is a list of TwissParameters
and a ReferenceOrbit
.- Author:
- lbojtar
-
Constructor Summary
ConstructorsConstructorDescriptionOptics
(List<TwissParameters> twissPars, ReferenceOrbit refOrbit) Constructor for Optics . -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
double
double
double
getTwissParametersAt
(double longiPos) Gets the Twiss parameter closest to the given longitudinal position.void
writeToFile
(String outFileName) Writes the Optics to a file, but only the Twiss parameters.
-
Constructor Details
-
Optics
Constructor for Optics .- Parameters:
twissPars
- List of all Twiss ParametersrefOrbit
- The reference orbit.
-
-
Method Details
-
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
Writes the Optics to a file, but only the Twiss parameters.- Parameters:
outFileName
- The name of the output file.
-
getTwissParametersAt
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()
-