Class RelativeParticleCoordinateImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.track.RelativeParticleCoordinateImpl
-
- All Implemented Interfaces:
RelativeParticleCoordinate
public class RelativeParticleCoordinateImpl extends java.lang.Object implements RelativeParticleCoordinate
Standard implementation of RelativeParticleCoordinate
-
-
Constructor Summary
Constructors Constructor Description RelativeParticleCoordinateImpl()
RelativeParticleCoordinateImpl(double x, double px, double y, double py, double t, double pt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getRelativeEnergyError()
double
getRelativeTimeDifference()
double
getXRelativeMomentum()
double
getXRelatviePosition()
double
getYRelativePosition()
double
getYRelatvieMomentum()
boolean
isActionAngle()
void
setActionAngle(boolean actionAngle)
void
setRelativeEnergyError(double pt)
void
setRelativeTimeDiffence(double t)
void
setXRelativeMomentum(double px)
void
setXRelatviePosition(double x)
void
setYRelativePosition(double y)
void
setYRelatvieMomentum(double py)
-
-
-
Method Detail
-
getRelativeEnergyError
public double getRelativeEnergyError()
- Specified by:
getRelativeEnergyError
in interfaceRelativeParticleCoordinate
- Returns:
- PT = delta(E)/ps*c
-
getRelativeTimeDifference
public double getRelativeTimeDifference()
- Specified by:
getRelativeTimeDifference
in interfaceRelativeParticleCoordinate
- Returns:
- T = -c*t
-
getXRelativeMomentum
public double getXRelativeMomentum()
- Specified by:
getXRelativeMomentum
in interfaceRelativeParticleCoordinate
- Returns:
- PX = px/p0
-
getXRelatviePosition
public double getXRelatviePosition()
- Specified by:
getXRelatviePosition
in interfaceRelativeParticleCoordinate
- Returns:
- X
-
getYRelativePosition
public double getYRelativePosition()
- Specified by:
getYRelativePosition
in interfaceRelativeParticleCoordinate
- Returns:
- Y
-
getYRelatvieMomentum
public double getYRelatvieMomentum()
- Specified by:
getYRelatvieMomentum
in interfaceRelativeParticleCoordinate
- Returns:
- PY = py/p0
-
setRelativeEnergyError
public void setRelativeEnergyError(double pt)
- Specified by:
setRelativeEnergyError
in interfaceRelativeParticleCoordinate
-
setRelativeTimeDiffence
public void setRelativeTimeDiffence(double t)
- Specified by:
setRelativeTimeDiffence
in interfaceRelativeParticleCoordinate
-
setXRelativeMomentum
public void setXRelativeMomentum(double px)
- Specified by:
setXRelativeMomentum
in interfaceRelativeParticleCoordinate
-
setXRelatviePosition
public void setXRelatviePosition(double x)
- Specified by:
setXRelatviePosition
in interfaceRelativeParticleCoordinate
-
setYRelativePosition
public void setYRelativePosition(double y)
- Specified by:
setYRelativePosition
in interfaceRelativeParticleCoordinate
-
setYRelatvieMomentum
public void setYRelatvieMomentum(double py)
- Specified by:
setYRelatvieMomentum
in interfaceRelativeParticleCoordinate
-
setActionAngle
public void setActionAngle(boolean actionAngle)
- Specified by:
setActionAngle
in interfaceRelativeParticleCoordinate
-
isActionAngle
public boolean isActionAngle()
- Specified by:
isActionAngle
in interfaceRelativeParticleCoordinate
-
-