Class Correction
java.lang.Object
org.scictrl.mp.orbitcorrect.correction.Correction
Class holding correction information.
It is result of correction calculation and it is applied to the beam by the OrbitCorrectionController.
- Author:
- igor@scictrl.com
-
Constructor Summary
ConstructorDescriptionCorrection
(ElementList<AbstractCorrector> corr, RFGenerator rf, double[] correction, Orientation ori, double scale, int eigenvaluesUsed, double[] eigenvalues) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Getter for the fieldcorrection
.Getter for the fieldcorrectors
.double[]
Getter for the fieldeigenvalues
.int
Getter for the fieldeigenvectorsUsed
.double
Maximal absolute correction value in this correction array.getOrientation.Getter for the fieldrfGenerator
.double
getScale()
Getter for the fieldscale
.double[]
Getter for the fieldscaledCorrection
.getTarget
(int i) getTarget.double
Getter for the fieldusedScale
.boolean
isNaN()
isNaN.void
print
(PrintWriter pw) print.double
testValuesInRange.toString()
-
Constructor Details
-
Correction
public Correction(ElementList<AbstractCorrector> corr, RFGenerator rf, double[] correction, Orientation ori, double scale, int eigenvaluesUsed, double[] eigenvalues) Constructor- Parameters:
corr
- aElementList
objectrf
- aRFGenerator
objectcorrection
- an array ofinvalid reference
double
ori
- aOrientation
objectscale
- a doubleeigenvaluesUsed
- a inteigenvalues
- an array ofinvalid reference
double
-
-
Method Details
-
getEigenvectorsUsed
public int getEigenvectorsUsed()Getter for the field
eigenvectorsUsed
.- Returns:
- a int
-
getMaxScaledCorrection
public double getMaxScaledCorrection()Maximal absolute correction value in this correction array.- Returns:
- a double
-
getOrientation
getOrientation.
- Returns:
- a
Orientation
object
-
getTarget
getTarget.
- Parameters:
i
- a int- Returns:
- a
AbstractDataBushElement
object
-
getCorrection
public double[] getCorrection()Getter for the field
correction
.- Returns:
- double[][]
-
getEigenvalues
public double[] getEigenvalues()Getter for the field
eigenvalues
.- Returns:
- an array of
invalid reference
double
-
getCorrectors
Getter for the field
correctors
.- Returns:
- a
ElementList
object
-
getRfGenerator
Getter for the field
rfGenerator
.- Returns:
- a
RFGenerator
object
-
getScale
public double getScale()Getter for the field
scale
.- Returns:
- a double
-
getScaledCorrection
public double[] getScaledCorrection()Getter for the field
scaledCorrection
.- Returns:
- an array of
invalid reference
double
-
getUsedScale
public double getUsedScale()Getter for the field
usedScale
.- Returns:
- a double
-
testValuesInRange
public double testValuesInRange()testValuesInRange.
- Returns:
- a double
-
print
print.
- Parameters:
pw
- aPrintWriter
object
-
toString
-
isNaN
public boolean isNaN()isNaN.
- Returns:
- a boolean
-