Class ParticleProbeState
- All Implemented Interfaces:
IProbeState,IArchive
ParticleProbe at a particular point
in time.- Version:
- $id:
- Author:
- Craig McChesney
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class xal.model.probe.traj.ProbeState
STATE_LABEL, TYPE_LABELFields inherited from interface xal.model.probe.traj.IProbeState
LIGHT_SPEED -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ParticleProbeState(ParticleProbe probe) Initializing constructor.ParticleProbeState(ParticleProbeState particleProbeState) Copy constructor for ParticleProbeState. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPropertiesTo(DataAdaptor container) Save the state values particular toBunchProbeStateobjects to the data sink.copy()Copies and returns a new, identical instance of thisParticleProbeState.Deprecated.Returns homogeneous phase space coordinates of the particle.Returns the response matrix Φ for the particle at the given state location z.protected voidreadPropertiesFrom(DataAdaptor container) Recover the state values particular toBunchProbeStateobjects from the data source.voidsetPhaseCoordinates(PhaseVector vecPhase) Set the phase space coordinates of the probe.voidsetResponseMatrix(PhaseMatrix matResp) Set the response matrix Φ for the particle at the given state location z.toString()Write out the state information in text form.Methods inherited from class xal.model.probe.traj.ProbeState
computeBetaFromGamma, computeGammaFromBeta, computeGammaFromW, getBeta, getBetaGamma, getElementId, getElementTypeId, getGamma, getHardwareNodeId, getKineticEnergy, getLongitudinalPhase, getMomentum, getPosition, getSpeciesCharge, getSpeciesRestEnergy, getTime, load, save, setElementId, setElementTypeId, setHardwareNodeId, setKineticEnergy, setLongitudinalPhase, setPosition, setSpeciesCharge, setSpeciesRestEnergy, setTime
-
Field Details
-
X_LABEL
- See Also:
-
Y_LABEL
- See Also:
-
Z_LABEL
- See Also:
-
XP_LABEL
- See Also:
-
YP_LABEL
- See Also:
-
ZP_LABEL
- See Also:
-
-
Constructor Details
-
ParticleProbeState
public ParticleProbeState()Default constructor. Creates a new, emptyParticleProbeStateobject. -
ParticleProbeState
Copy constructor for ParticleProbeState. Initializes the newParticleProbeStateobjects with the state attributes of the givenParticleProbeState.- Parameters:
particleProbeState- initializing state- Since:
- Jun 26, 2014
-
ParticleProbeState
Initializing constructor. Creates a newParticleProbeStateobject which contains a deep copy of the state of the given probe object.- Parameters:
probe-ParticleProbecontaining cloned initial state data
-
-
Method Details
-
setPhaseCoordinates
Set the phase space coordinates of the probe. This is the location z in homogeneous phase space coordinates R6 × {1}.- Parameters:
vecPhase- new homogeneous phase space coordinate vector z = (x, x', y, y', z, z', 1)T
-
setResponseMatrix
Set the response matrix Φ for the particle at the given state location z. The response matrix represents the sensitivity of the current phase coordinate position z to the initial phase coordinate location z0 at the start of the simulation. That is,
Φ ≡ ∂z/∂z0
so that small changes Δz0 in the initial phase position yield a corresponding change Δz = ΦΔz0 in the current particle location.- Parameters:
matResp- the response matrix Φ ≡ ∂z/∂z0the matResp to set
-
getPhaseCoordinates
Returns homogeneous phase space coordinates of the particle. The units are meters and radians.
This is the location z in homogeneous phase space coordinates R6 × {1}.- Returns:
- vector z = (x,x',y,y',z,z',1)T of phase space coordinates
-
getResponseMatrix
Returns the response matrix Φ for the particle at the given state location z. The response matrix represents the sensitivity of the current phase coordinate position z to the initial phase coordinate location z0 at the start of the simulation. That is,
Φ ≡ ∂z/∂z0
so that small changes Δz0 in the initial phase position yield a corresponding change Δz = ΦΔz0 in the current particle location.- Returns:
- the response matrix Φ ≡ ∂z/∂z0
-
getFixedOrbit
Deprecated.This is a duplicate ofgetPhaseCoordinates()but with a misleading name. I plan to get rid of it.Get the fixed orbit about which betatron oscillations occur.- Returns:
- the reference orbit vector (x,x',y,y',z,z',1)
-
toString
Write out the state information in text form.- Overrides:
toStringin classProbeState<ParticleProbeState>- Returns:
- internal state information as a
String.
-
copy
Copies and returns a new, identical instance of thisParticleProbeState.- Specified by:
copyin classProbeState<ParticleProbeState>- Returns:
- a copy of this
ParticleProbeState
-
addPropertiesTo
Save the state values particular toBunchProbeStateobjects to the data sink.- Overrides:
addPropertiesToin classProbeState<ParticleProbeState>- Parameters:
container- data sink represented byDataAdaptorinterface
-
readPropertiesFrom
Recover the state values particular toBunchProbeStateobjects from the data source.- Overrides:
readPropertiesFromin classProbeState<ParticleProbeState>- Parameters:
container- data source represented by aDataAdaptorinterface- Throws:
DataFormatException- state information in data source is malformatted
-
getPhaseCoordinates()but with a misleading name.