Package xal.model.probe
Class SynchronousProbe
This class represents the behavior of the synchronous particle of a particle
beam bunch. Thus, its use is intended for evaluation of machine designs and
the variation of design trajectories with respect to machine parameters.
- Author:
- Juan F. Esteban Müller <JuanF.EstebanMuller@ess.eu>
-
Field Summary
Fields inherited from class xal.model.probe.Probe
COMMENT_LABEL, PROBE_LABEL, stateCurrent, TEXT_LABEL, TIME_LABEL, trajHist, TYPE_LABELFields inherited from interface xal.model.IProbe
LIGHT_SPEED, PERMITTIVITY, UNIT_CHARGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of the probeCreates a new, emptySynchronousState.Return a newProbeStateobject, of the appropriate type, initialized to the current state of this probe.Creates aTrajectory<SynchronousState>object of the proper type for saving the probe's history.doubleReturn the energy gain in the current element.doubleReturn the synchronous phase.protected SynchronousStatereadStateFrom(DataAdaptor container) Read the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.voidsetEnergyGain(double dblEnergyGain) Set the energy gain for the current element.voidsetSynchronousPhase(double dblPhase) Set the synchronous phase.Methods inherited from class xal.model.probe.BunchProbe
beamDCPerveance, beamPerveance, bunchCharge, getBeamCurrent, getBunchFrequency, setBeamCurrent, setBunchFrequencyMethods inherited from class xal.model.probe.Probe
applyState, cloneCurrentProbeState, deepCopy, getAlgorithm, getArchive, getBeta, getComment, getCurrentElement, getCurrentElementTypeId, getCurrentHardwareId, getCurrentState, getGamma, getInitialState, getKineticEnergy, getLongitinalPhase, getMomentum, getPosition, getSpeciesCharge, getSpeciesName, getSpeciesRestEnergy, getTime, getTimestamp, getTrajectory, initialize, initializeFrom, load, lookupLastStateFor, newProbeInitializedFrom, performPostProcessing, readFrom, reset, save, setAlgorithm, setComment, setCurrentElement, setCurrentElementTypeId, setCurrentHardwareId, setKineticEnergy, setLongitudinalPhase, setPosition, setSpeciesCharge, setSpeciesName, setSpeciesRestEnergy, setTime, setTimestamp, setTracking, update
-
Constructor Details
-
SynchronousProbe
public SynchronousProbe() -
SynchronousProbe
- Parameters:
probe-
-
-
Method Details
-
copy
Description copied from class:ProbeCreates a deep copy of the probe- Specified by:
copyin classProbe<SynchronousState>
-
setSynchronousPhase
public void setSynchronousPhase(double dblPhase) Set the synchronous phase.- Parameters:
dblPhase- synchronous phase in radians
-
getSynchronousPhase
public double getSynchronousPhase()Return the synchronous phase.- Returns:
- synchronous phase in radians
-
setEnergyGain
public void setEnergyGain(double dblEnergyGain) Set the energy gain for the current element.- Parameters:
dblEnergyGain- energy gain in eV
-
getEnergyGain
public double getEnergyGain()Return the energy gain in the current element.- Returns:
- energy gain in eV
-
createTrajectory
Creates aTrajectory<SynchronousState>object of the proper type for saving the probe's history.- Specified by:
createTrajectoryin classProbe<SynchronousState>- Returns:
- a new, empty
Trajectory<SynchronousState>for saving the probe's history
-
createProbeState
Return a newProbeStateobject, of the appropriate type, initialized to the current state of this probe.- Specified by:
createProbeStatein classBunchProbe<SynchronousState>- Returns:
- probe state object of type
SynchronousState - See Also:
-
createEmptyProbeState
Creates a new, emptySynchronousState.- Specified by:
createEmptyProbeStatein classBunchProbe<SynchronousState>- Returns:
- a new, empty
SynchronousState
-
readStateFrom
Description copied from class:ProbeRead the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.- Specified by:
readStateFromin classProbe<SynchronousState>- Parameters:
container-DataAdaptorto read a Trajectory from- Returns:
- a ProbeState for the contents of the DataAdaptor
- Throws:
DataFormatException- error encountered reading the DataAdaptor
-