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 String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
Fields inherited from class xal.model.probe.traj.ProbeState
STATE_LABEL, TYPE_LABEL
Fields 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 void
addPropertiesTo
(DataAdaptor container) Save the state values particular toBunchProbeState
objects 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 void
readPropertiesFrom
(DataAdaptor container) Recover the state values particular toBunchProbeState
objects from the data source.void
setPhaseCoordinates
(PhaseVector vecPhase) Set the phase space coordinates of the probe.void
setResponseMatrix
(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, emptyParticleProbeState
object. -
ParticleProbeState
Copy constructor for ParticleProbeState. Initializes the newParticleProbeState
objects with the state attributes of the givenParticleProbeState
.- Parameters:
particleProbeState
- initializing state- Since:
- Jun 26, 2014
-
ParticleProbeState
Initializing constructor. Creates a newParticleProbeState
object which contains a deep copy of the state of the given probe object.- Parameters:
probe
-ParticleProbe
containing 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:
toString
in classProbeState<ParticleProbeState>
- Returns:
- internal state information as a
String
.
-
copy
Copies and returns a new, identical instance of thisParticleProbeState
.- Specified by:
copy
in classProbeState<ParticleProbeState>
- Returns:
- a copy of this
ParticleProbeState
-
addPropertiesTo
Save the state values particular toBunchProbeState
objects to the data sink.- Overrides:
addPropertiesTo
in classProbeState<ParticleProbeState>
- Parameters:
container
- data sink represented byDataAdaptor
interface
-
readPropertiesFrom
Recover the state values particular toBunchProbeState
objects from the data source.- Overrides:
readPropertiesFrom
in classProbeState<ParticleProbeState>
- Parameters:
container
- data source represented by aDataAdaptor
interface- Throws:
DataFormatException
- state information in data source is malformatted
-
getPhaseCoordinates()
but with a misleading name.