public class IdealMagSteeringDipole extends ThinElectromagnet
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
s_strParamField
Tag for the parameter within the XML configuration file
|
static java.lang.String |
s_strParamLenEff
Tag for the parameter within the XML configuration file
|
static java.lang.String |
s_strParamOrient
Tag for the parameter within the XML configuration file
|
static java.lang.String |
s_strType
the string type identifier for all IdealMagSteeringDipole's
|
dblField, enmOrientORIENT_HOR, ORIENT_NONE, ORIENT_VERLightSpeed, Permeability, Permittivity, UnitCharge| Constructor and Description |
|---|
IdealMagSteeringDipole()
Default constructor - creates a new uninitialized instance
of IdealMagSteeringDipole.
|
IdealMagSteeringDipole(java.lang.String strId)
Create a new instance of IdealMagSteeringDipole and specify its
instance identifier.
|
IdealMagSteeringDipole(java.lang.String strId,
double dblLenEff,
int enmOrient,
double dblFld)
Creates a new instance of
IdealMagSteeringDipole. |
| Modifier and Type | Method and Description |
|---|---|
double |
elapsedTime(IProbe probe)
Returns the time taken for the probe to propagate through element.
|
double |
energyGain(IProbe probe)
Return the energy gain for this Element.
|
double |
getAngleKick()
Return the angle kick [rad]
|
double |
getEffLength()
Return the effective length of this dipole magnet
|
double |
getPositionKick()
Return the position kick strength of this dipole magnet
|
void |
initializeFrom(LatticeElement element)
Conversion method to be provided by the user
|
void |
print(java.io.PrintWriter os)
Dump current state and content to output stream.
|
void |
setAngleKick(double dblAngKick)
Set the kick angle of the dipole magnet.
|
void |
setEffLength(double dblLenEff)
Set the effective length of the dipole magnet.
|
void |
setPositionKick(double dblPosKick)
Set the position kick of the dipole magnet.
|
protected PhaseMap |
transferMap(IProbe probe)
Computes the transfer map for an ideal magnetic dipole.
|
getMagField, getOrientation, setMagField, setOrientationelapsedTime, energyGain, getLength, transferMapaddCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toStringpublic static final java.lang.String s_strType
public static final java.lang.String s_strParamLenEff
public static final java.lang.String s_strParamOrient
public static final java.lang.String s_strParamField
public IdealMagSteeringDipole()
public IdealMagSteeringDipole(java.lang.String strId)
strId - string instance identifier of elementpublic IdealMagSteeringDipole(java.lang.String strId,
double dblLenEff,
int enmOrient,
double dblFld)
IdealMagSteeringDipole.
The action of the kicker is completely unspecified.strId - string identifier of elementdblFld - field strength (in Tesla)enmOrient - dipole orientation (ORIENT_HOR or ORIENT_VER)dblLenEff - effective length of dipole magnetpublic void setEffLength(double dblLenEff)
dblLenEff - effective length (in meters)public double getEffLength()
public void setPositionKick(double dblPosKick)
dblPosKick - change in position going through magnet (in meters)public void setAngleKick(double dblAngKick)
dblAngKick - effective length (in meters)public double getPositionKick()
public double getAngleKick()
public double elapsedTime(IProbe probe)
elapsedTime in class ThinElementprobe - propagating probepublic double energyGain(IProbe probe)
energyGain in class ThinElementprobe - dummy argumentprotected PhaseMap transferMap(IProbe probe) throws ModelException
transferMap in class ThinElementprobe - probe interface from which we get rest energy and kinetic energyModelException - bad orientation codepublic void print(java.io.PrintWriter os)
public void initializeFrom(LatticeElement element)
initializeFrom in interface IComponentinitializeFrom in class ThinElectromagnetlatticeElement - the SMF node to convert