|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.sns.tools.phasespaceanalysis.PhasePlaneEllipse
This class keeps the emittance and twiss parameters
to define ellipse in the phase plane. It also can generate
a curve ( CurveData
class) to show graphics
image of the ellipse.
The ellipse equation is
emitt/PI = gamma*x^2+2*alpha*x*xp+beta*xp^2.
Constructor Summary | |
PhasePlaneEllipse()
The phase plane ellipse constructor. |
|
PhasePlaneEllipse(double emitt,
double alpha,
double beta)
The phase plane ellipse constructor. |
Method Summary | |
void |
calcCurvePoints()
Calculates (x,xp) points for graphic presentation. |
void |
calcCurvePoints(int N)
Calculates (x,xp) points for graphic presentation. |
double |
getAlpha()
Returns the alpha parameter. |
double |
getBeta()
Returns the alpha parameter. |
double |
getBoundedEmittance(double x,
double xp)
Returns value of the emittance if the (x,xp) point is on the boudary of this ellipse. |
CurveData |
getCurveData()
Returns the reference to the CurveData. |
double |
getEmittance()
Returns the emittance parameter. |
PhasePlaneEllipse |
getNewPhasePlaneEllipse()
Returns the new instance of the PhasePlaneEllipse (this) class with the same parameters (emittance, alpha, and beta). |
PhasePlaneEllipse |
getNewPhasePlaneEllipse(double emmitNew)
Returns the new instance of the PhasePlaneEllipse (this) class with the new emmitance and the same others parameters. |
int |
getNumberCurvePoints()
Returns the number of graphics points. |
double |
getX(double phi)
Calculates x on the ellipse for angle phi in polar coordinate. |
double |
getXP(double phi)
Calculates x on the ellipse for angle phi in polar coordinate. |
boolean |
isInside(double x,
double xp)
Returns true is the (x,xp) is inside this ellipse. |
void |
setAlpha(double alpha)
Sets the alpha parameter. |
void |
setBeta(double beta)
Sets the alpha parameter. |
void |
setEmittance(double emitt)
Sets the emittance parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PhasePlaneEllipse()
public PhasePlaneEllipse(double emitt, double alpha, double beta)
Method Detail |
public void setEmittance(double emitt)
public void setAlpha(double alpha)
public void setBeta(double beta)
public double getEmittance()
public double getAlpha()
public double getBeta()
public boolean isInside(double x, double xp)
public double getBoundedEmittance(double x, double xp)
public void calcCurvePoints()
public double getX(double phi)
public double getXP(double phi)
public void calcCurvePoints(int N)
public int getNumberCurvePoints()
getCurveData()
method of this class;
public CurveData getCurveData()
public PhasePlaneEllipse getNewPhasePlaneEllipse(double emmitNew)
public PhasePlaneEllipse getNewPhasePlaneEllipse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |