public class ThinMatrix extends ThinElement
Since this is a thin element there are no space charge kicks in the particle dynamics. If
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
s_strType
string type identifier for all TranferMatrix objects
|
LightSpeed, Permeability, Permittivity, UnitCharge
Constructor and Description |
---|
ThinMatrix()
JavaBean constructor - creates a new uninitialized instance of ThinMatrix
BE CAREFUL
|
ThinMatrix(java.lang.String strId)
Creates a new instance of TransferMatrix.
|
ThinMatrix(java.lang.String strId,
PhaseMatrix matPhi)
Creates a new instance of TransferMatrix.
|
ThinMatrix(java.lang.String strId,
PhaseMatrix matPhi,
double dblDelW)
Creates a new instance of ThinMatrix
|
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)
Returns the energy gain of this element, which is independent of all probe
parameters.
|
void |
setElapsedTime(double dblDelT)
Set the elapsed time for all probes to propagate this element.
|
void |
setEnergyGain(double dblDelW)
Set the energy gain imparted to all probes.
|
void |
setTransferMatrix(PhaseMatrix matPhi)
Set the transfer matrix of the element for all probes.
|
protected PhaseMap |
transferMap(IProbe probe)
Returns the transfer map of this element, which only has a linear component
corresponding to the transfer matrix,
|
elapsedTime, energyGain, getLength, transferMap
addCloseElements, applyAlignError, backPropagate, backPropagate, compDriftingTime, compProbeLocation, getAlignX, getAlignY, getAlignZ, getCloseElements, getHardwareNodeId, getId, getPosition, getType, getUID, initializeFrom, print, propagate, propagate, setAlign, setAlignX, setAlignY, setAlignZ, setHardwareNodeId, setId, setPosition, toString
public static final java.lang.String s_strType
public ThinMatrix(java.lang.String strId, PhaseMatrix matPhi, double dblDelW)
strId
- string identifier of this objectmatPhi
- 7x7 transfer matrix of element in homogeneous coordinatesdblDelW
- energy gain of element (in electron-volts)public ThinMatrix(java.lang.String strId, PhaseMatrix matPhi)
strId
- string identifier of this objectmatPhi
- 7x7 transfer matrix of element in homogeneous coordinatespublic ThinMatrix(java.lang.String strId)
strId
- string identifier of this objectpublic ThinMatrix()
public void setElapsedTime(double dblDelT)
dblDelT
- elapsed time through element in secondspublic void setEnergyGain(double dblDelW)
dblDelW
- energy gain (in electron-volts)public void setTransferMatrix(PhaseMatrix matPhi)
matPhi
- 7x7 transfer matrix in homogeneous phase space coordinatespublic double elapsedTime(IProbe probe)
elapsedTime
in class ThinElement
probe
- propagating probepublic double energyGain(IProbe probe)
energyGain
in class ThinElement
probe
- dummy argumentprotected PhaseMap transferMap(IProbe probe) throws ModelException
Returns the transfer map of this element, which only has a linear component corresponding to the transfer matrix,
Note that since the transfer matrix is constant it is independent of the IProbe argument.
transferMap
in class ThinElement
probe
- dummy argumentModelException
- this should not occur