public class IdealDrift extends ThickElement
Represents a drift space in a particle beam transport/accelerator system.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
s_strType
string type identifier for all IdealDrift objects
|
LightSpeed, Permeability, Permittivity, UnitCharge
Constructor and Description |
---|
IdealDrift()
JavaBean constructor - creates a new unitialized instance of IdealDrift
BE CAREFUL
|
IdealDrift(java.lang.String strId,
double dblLen)
Creates a new instance of IdealDrift
|
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 probe object.
|
double |
getKDrift()
I guess this is the strength of the adjacent PMQ quadrupole
magnet if it exists.
|
void |
prepareFringe()
I think this method looks for PMQ magnets next to this drift
then stores them as a private class.
|
PhaseMap |
transferMap(IProbe probe,
double dblLen)
Computes the partial tranfer map for an ideal drift space.
|
getLength, initializeFrom, setLength
addCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toString
public static final java.lang.String s_strType
public IdealDrift(java.lang.String strId, double dblLen)
strId
- string identifier for the elementdblLen
- length of the driftpublic IdealDrift()
public double getKDrift()
public void prepareFringe()
public double elapsedTime(IProbe probe, double dblLen)
elapsedTime
in interface IElement
elapsedTime
in class Element
probe
- propagating probedblLen
- length of subsection to propagate through meterspublic double energyGain(IProbe probe, double dblLen)
energyGain
in interface IElement
energyGain
in class ThickElement
dblLen
- dummy argumentprobe
- dummy argumentpublic PhaseMap transferMap(IProbe probe, double dblLen) throws ModelException
dblLen
.transferMap
in interface IElement
transferMap
in class ThickElement
dblLen
- length of driftprobe
- requires rest and kinetic energy from probeModelException
- should not be thrownIElement.transferMap(IProbe,double)