Class ParticleProbe
- Since:
- Aug 13, 2002
- Version:
- Nov 14, 2013
- Author:
- Christopher K. Allen, Craig McChesney
-
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
ConstructorsConstructorDescriptionDefault constructor for ParticleProbe.ParticleProbe(ParticleProbe probe) Copy constructor for ParticleProbe. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a clone of thisParticleProbeobject and returns it.Creates a new, emptyParticleProbeState.Captures the probe's state and return it as a newProbeStateobject.Creates aTrajectory<ParticleProbeState>object of the proper type for saving the probe's history.Deprecated.Returns homogeneous phase space coordinates of the particle.Returns the response matrix Φ for the particle at the given state location z.protected ParticleProbeStatereadStateFrom(DataAdaptor container) Read the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.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.Methods 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
-
ParticleProbe
public ParticleProbe()Default constructor for ParticleProbe. Creates a new (empty) instance of ParticleProbe. -
ParticleProbe
Copy constructor for ParticleProbe. Performs deep copy of target particle probe.- Parameters:
probe- ParticleProbe object to be cloned
-
-
Method Details
-
copy
Creates a clone of thisParticleProbeobject and returns it. This method is essentially a proxy to the constructorParticleProbe(ParticleProbe).- Specified by:
copyin classProbe<ParticleProbeState>- Since:
- Nov 14, 2013
- See Also:
-
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.- Returns:
- vector (x,x',y,y',z,z',1) 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)
-
createTrajectory
Creates aTrajectory<ParticleProbeState>object of the proper type for saving the probe's history.- Specified by:
createTrajectoryin classProbe<ParticleProbeState>- Returns:
- a new, empty
Trajectory<ParticleProbeState>for saving the probe's history
-
createProbeState
Captures the probe's state and return it as a newProbeStateobject.- Specified by:
createProbeStatein classProbe<ParticleProbeState>- Returns:
- new
ParticleProbeStateobject initialized to current state - Since:
- Aug 13, 2002
- See Also:
-
createEmptyProbeState
Creates a new, emptyParticleProbeState.- Specified by:
createEmptyProbeStatein classProbe<ParticleProbeState>- Returns:
- a new, empty
ParticleProbeState - Since:
- Jul 1, 2014
-
readStateFrom
Description copied from class:ProbeRead the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.- Specified by:
readStateFromin classProbe<ParticleProbeState>- Parameters:
container-DataAdaptorto read a Trajectory from- Returns:
- a ProbeState for the contents of the DataAdaptor
- Throws:
DataFormatException- error encountered reading the DataAdaptor
-
getPhaseCoordinates()but with a misleading name.