Package xal.model.probe.traj
Class EnsembleProbeState
- All Implemented Interfaces:
IProbeState
,IArchive
Encapsulates the state of an EnsembleProbe at a particular point in time.
- Version:
- $id:
- Author:
- Craig McChesney
-
Field Summary
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.EnsembleProbeState
(EnsembleProbe probe) Initializing Constructor.EnsembleProbeState
(EnsembleProbeState ensembleProbeState) Copy constructor for EnsembleProbeState. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPropertiesTo
(DataAdaptor container) Save the state values particular toEnsembleProbeState
objects to the data sink.copy()
Implements the clone operation required by the base classProbeState
electricField
(R3 ptFld) Get the electric field at a point in R3 from the ensemble.Return the Ensemble state objectint
Return the field calculation methodReturn the correlation matrix of the distributionReturn the coordinates of the ensemble centroid.protected void
readPropertiesFrom
(DataAdaptor container) Recover the state values particular toEnsembleProbeState
objects from the data source.void
setEnsemble
(Ensemble ens) Set the state to the value of the argument NOTE: the copy operation can be expansive for largeEnsemble
svoid
setFieldCalculation
(int fc) Set the field calculation methodtoString()
Write out state information to a string.Methods inherited from class xal.model.probe.traj.BunchProbeState
beamDCPerveance, beamPerveance, bunchCharge, getBeamCurrent, getBunchFrequency, setBeamCurrent, setBunchFrequency
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
-
Constructor Details
-
EnsembleProbeState
public EnsembleProbeState()Default constructor. Create a new, emptyEnsembleProbeState
object. -
EnsembleProbeState
Copy constructor for EnsembleProbeState. Initializes the newEnsembleProbeState
objects with the state attributes of the givenEnsembleProbeState
.- Parameters:
ensembleProbeState
- initializing state- Since:
- Jun 26, 2014
-
EnsembleProbeState
Initializing Constructor. Create a newEnsembleProbeState
object and initialize it to the state of the probe argument.- Parameters:
probe
-EnsembleProbe
containing initializing state information
-
-
Method Details
-
setFieldCalculation
public void setFieldCalculation(int fc) Set the field calculation method- Parameters:
fc
- field calculation method enumeration
-
setEnsemble
Set the state to the value of the argument NOTE: the copy operation can be expansive for largeEnsemble
s- Parameters:
ens
-Ensemble
object to be copied
-
getFieldCalculation
public int getFieldCalculation()Return the field calculation method -
getEnsemble
Return the Ensemble state object -
electricField
Get the electric field at a point in R3 from the ensemble.- Parameters:
ptFld
- field point to evaluation ensemble field- Returns:
- electric field at field point
-
phaseMean
Return the coordinates of the ensemble centroid.- Returns:
- (homogeneous) phase space coordinates of ensemble centroid
-
phaseCovariance
Return the correlation matrix of the distribution- Returns:
- symmetric 7x7 covariance matrix in homogeneous coordinates
- See Also:
-
copy
Implements the clone operation required by the base classProbeState
- Specified by:
copy
in classProbeState<EnsembleProbeState>
- Returns:
- a deep copy of this object.
- Since:
- Jun 27, 2014
- See Also:
-
addPropertiesTo
Save the state values particular toEnsembleProbeState
objects to the data sink.- Overrides:
addPropertiesTo
in classBunchProbeState<EnsembleProbeState>
- Parameters:
container
- data sink represented byDataAdaptor
interface
-
readPropertiesFrom
Recover the state values particular toEnsembleProbeState
objects from the data source.- Overrides:
readPropertiesFrom
in classBunchProbeState<EnsembleProbeState>
- Parameters:
container
- data source represented by aDataAdaptor
interface- Throws:
DataFormatException
- state information in data source is malformatted
-
toString
Write out state information to a string.- Overrides:
toString
in classBunchProbeState<EnsembleProbeState>
- Returns:
- text version of internal state data
-