public class IdealEQuad extends ThickElectrostatic
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
s_strParamAperture
Parameter for XAL MODEL LATTICE dtd
|
static java.lang.String |
s_strParamOrient
Parameter for XAL MODEL LATTICE dtd
|
static java.lang.String |
s_strParamVoltage
Parameter for XAL MODEL LATTICE dtd
|
static java.lang.String |
s_strType
string type identifier for all IdealEQuad objects
|
dblField, enmOrientORIENT_HOR, ORIENT_NONE, ORIENT_VERLightSpeed, Permeability, Permittivity, UnitCharge| Constructor and Description |
|---|
IdealEQuad()
JavaBean constructor - creates a new uninitialized instance of IdealEQuad
BE CAREFUL
|
IdealEQuad(java.lang.String strId,
int enmOrient,
double dblVol,
double dblLen,
double dblApt)
Creates a new instance of IdealEQuad
|
| Modifier and Type | Method and Description |
|---|---|
double |
elapsedTime(IProbe probe,
double dblLen)
Returns the time taken for the probe to drift through part of the
element.
|
double |
energyGain(IProbe probe,
double dblLen)
Return the energy gain imparted to a particular probe.
|
double |
getAperture()
Get the Aperture radius of the electrostatic quad.
|
int |
getOrientation()
Return the orientation enumeration code.
|
double |
getVoltage()
Get the voltage applied to the electrostatic quad pole tips.
|
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 |
setAperture(double dblAperture)
Set the Aperture radius of the electrostatic quad.
|
void |
setOrientation(int enmOrient)
Set the electrostatic quad orientation.
|
void |
setVoltage(double dblVoltage)
Set the applied Voltage on the electrostatic quad.
|
PhaseMap |
transferMap(IProbe probe,
double length)
Compute the partial transfer map of an ideal Equadrupole for the particular probe.
|
getMagField, setMagFieldgetLength, setLengthaddCloseElements, 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_strParamOrient
public static final java.lang.String s_strParamVoltage
public static final java.lang.String s_strParamAperture
public IdealEQuad(java.lang.String strId,
int enmOrient,
double dblVol,
double dblLen,
double dblApt)
strId - identifier for this IdealEQuad objectenmOrient - enumeration specifying the quadrupole orientation
(ORIENT_HOR or ORIENT_VER)dblVol - Applied Voltage (kV)dblLen - Length of the quadrupole (m)dblApt - Aperture radius (m)public IdealEQuad()
public int getOrientation()
getOrientation in interface IElectrostaticgetOrientation in class ThickElectrostaticpublic double getVoltage()
public void setOrientation(int enmOrient)
setOrientation in interface IElectrostaticsetOrientation in class ThickElectrostaticenmOrient - quad orientation enumeration codegetOrientation()public void setVoltage(double dblVoltage)
dblVoltage - Voltage (in public double getAperture()
public void setAperture(double dblAperture)
dblAperture - Aperture Radius (in public double elapsedTime(IProbe probe, double dblLen)
elapsedTime in interface IElementelapsedTime in class Elementprobe - propagating probedblLen - length of subsection to propagate through meterspublic double energyGain(IProbe probe, double dblLen)
energyGain in interface IElementenergyGain in class ThickElementprobe - dummy argumentdblLen - dummy argumentpublic PhaseMap transferMap(IProbe probe, double length)
dblLen meters in length.
The aperture used in the calculation is the aperture radius in meters.transferMap in interface IElementtransferMap in class ThickElementprobe - supplies the charge, rest and kinetic energy parameterslength - compute transfer matrix for section of this lengthIElement.transferMap(IProbe,double)public void print(java.io.PrintWriter os)
public void initializeFrom(LatticeElement element)
initializeFrom in interface IComponentinitializeFrom in class ThickElectrostaticlatticeElement - the SMF node to convert