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_LABELFields 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 voidaddPropertiesTo(DataAdaptor container) Save the state values particular toEnsembleProbeStateobjects to the data sink.copy()Implements the clone operation required by the base classProbeStateelectricField(R3 ptFld) Get the electric field at a point in R3 from the ensemble.Return the Ensemble state objectintReturn the field calculation methodReturn the correlation matrix of the distributionReturn the coordinates of the ensemble centroid.protected voidreadPropertiesFrom(DataAdaptor container) Recover the state values particular toEnsembleProbeStateobjects from the data source.voidsetEnsemble(Ensemble ens) Set the state to the value of the argument NOTE: the copy operation can be expansive for largeEnsemblesvoidsetFieldCalculation(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, setBunchFrequencyMethods 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, emptyEnsembleProbeStateobject. -
EnsembleProbeState
Copy constructor for EnsembleProbeState. Initializes the newEnsembleProbeStateobjects with the state attributes of the givenEnsembleProbeState.- Parameters:
ensembleProbeState- initializing state- Since:
- Jun 26, 2014
-
EnsembleProbeState
Initializing Constructor. Create a newEnsembleProbeStateobject and initialize it to the state of the probe argument.- Parameters:
probe-EnsembleProbecontaining 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 largeEnsembles- Parameters:
ens-Ensembleobject 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:
copyin classProbeState<EnsembleProbeState>- Returns:
- a deep copy of this object.
- Since:
- Jun 27, 2014
- See Also:
-
addPropertiesTo
Save the state values particular toEnsembleProbeStateobjects to the data sink.- Overrides:
addPropertiesToin classBunchProbeState<EnsembleProbeState>- Parameters:
container- data sink represented byDataAdaptorinterface
-
readPropertiesFrom
Recover the state values particular toEnsembleProbeStateobjects from the data source.- Overrides:
readPropertiesFromin classBunchProbeState<EnsembleProbeState>- Parameters:
container- data source represented by aDataAdaptorinterface- Throws:
DataFormatException- state information in data source is malformatted
-
toString
Write out state information to a string.- Overrides:
toStringin classBunchProbeState<EnsembleProbeState>- Returns:
- text version of internal state data
-