|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.beam.Twiss
Convenience class for dealing with Courant-Snyder (or Twiss) parameters. These parameters represent an ellipse in phase space given by gamma*x^2 + 2*alpha*x*x' + beta*x'^2 = emitt Recall that these parameters are related by the fact beta*gamma - alpha^2 = 1
| Constructor Summary | |
Twiss()
Creates a new, uninitialized, instance of Twiss |
|
Twiss(double dblAlpha,
double dblBeta,
double dblEmitt)
Creates a new instance of Twiss initialized to the given Twiss parameters. |
|
| Method Summary | |
double[] |
computeEigenvalues()
Compute and return the eigenvalues of the Twiss matrix. |
R2[] |
computeEigenvectors()
Compute and return the eigenvectors of the Twiss matrix. |
double |
computeRotation()
Compute the phase space ellipse's rotation from upright. |
double[] |
computeSemiAxes()
Computes and returns the semi-axes of the phase space ellipse represented by the Twiss parameters. |
double[][] |
correlationMatrix()
Return the correlation matrix associated with these Twiss parameters. |
double |
getAlpha()
Return the alpha Twiss parameter |
double |
getBeta()
Return the beta Twiss parameter |
double |
getEmittance()
Return the beam emittance |
double |
getEnvelopeRadius()
Return the envelope radius extent |
double |
getEnvelopeSlope()
Return the envelope slope |
double |
getGamma()
Return the gamma Twiss parameter |
void |
printOn(java.io.PrintWriter pw)
Print out contents of the Twiss object. |
void |
setEnvelope(double dblEnvRad,
double dblEnvSlp,
double dblEmitt)
Set the values of the Twiss parameters from the corresponding phase space envelope values. |
void |
setTwiss(double dblAlpha,
double dblBeta,
double dblEmitt)
Sets the values of the Twiss parameters directly. |
double[][] |
twissMatrix()
Return the Twiss matrix associated with these Twiss parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Twiss()
public Twiss(double dblAlpha,
double dblBeta,
double dblEmitt)
dblAlpha - coefficient of 2*x*x'dblBeta - coefficient of x'^2dblEmitt - magnitude^2 of the ellipse (beam emittance)| Method Detail |
public void setTwiss(double dblAlpha,
double dblBeta,
double dblEmitt)
dblEmitt - beam emittance
public void setEnvelope(double dblEnvRad,
double dblEnvSlp,
double dblEmitt)
dblEnvRad - envelope radiusdblEnvSlp - envelope slopedblEmitt - beam emittancepublic double getAlpha()
public double getBeta()
public double getGamma()
public double getEnvelopeRadius()
public double getEnvelopeSlope()
public double getEmittance()
public double[][] twissMatrix()
public double[][] correlationMatrix()
public double computeRotation()
public double[] computeSemiAxes()
public double[] computeEigenvalues()
public R2[] computeEigenvectors()
public void printOn(java.io.PrintWriter pw)
pw - PrintWriter object to receive contents
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||