Package xal.model.probe
Class TransferMapProbe
Probe that tracks all the transfer maps between modeling elements. Note there is no beam dynamics per se, the probe simply collects all the transfer maps as provided by the beamline elements for the design synchronous particle.
If you wish to compute the transfer matrices for an envelope model that
includes space charge effects, then you should employ and
and call the method
EnvelopeProbe
.
EnvelopeProbeState.getResponseMatrix()
- Since:
- May 28, 2004
- Version:
- Oct 25, 2013
- Author:
- Christopher K. Allen
-
Field Summary
Fields inherited from class xal.model.probe.Probe
COMMENT_LABEL, PROBE_LABEL, stateCurrent, TEXT_LABEL, TIME_LABEL, trajHist, TYPE_LABEL
Fields inherited from interface xal.model.IProbe
LIGHT_SPEED, PERMITTIVITY, UNIT_CHARGE
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.TransferMapProbe
(TransferMapProbe probe) Initializing constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a deep copy of the probeCreates a new, emptyTransferMapState
.Return a newProbeState
object, of the appropriate type, initialized to the current state of this probe.Creates aTrajectory<TransferMapState>
object of the proper type for saving the probe's history.Get the partial transfer map for the current probe location.Get the composite transfer map for the current probe location.protected void
initializeFrom
(Probe<TransferMapState> probe) Deprecated.Never Usedprotected TransferMapState
readStateFrom
(DataAdaptor container) Read the contents of the suppliedDataAdaptor
and return an instance of the appropriate Trajectory species.void
setPartialTransferMap
(PhaseMap mapPhi) Set the partial transfer map at the current probe location.void
setTransferMap
(PhaseMap mapTrans) Set the current composite transfer map up to the current probe location.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, load, lookupLastStateFor, newProbeInitializedFrom, performPostProcessing, readFrom, reset, save, setAlgorithm, setComment, setCurrentElement, setCurrentElementTypeId, setCurrentHardwareId, setKineticEnergy, setLongitudinalPhase, setPosition, setSpeciesCharge, setSpeciesName, setSpeciesRestEnergy, setTime, setTimestamp, setTracking, update
-
Constructor Details
-
TransferMapProbe
public TransferMapProbe()Default constructor. Create a newTransferMapProbe
with zero initial state. -
TransferMapProbe
Initializing constructor. Create a newTransferMapProbe
and initialize its state to that of the given probe.- Parameters:
probe
- probe containing initial state information
-
-
Method Details
-
copy
Description copied from class:Probe
Creates a deep copy of the probe- Specified by:
copy
in classProbe<TransferMapState>
-
setTransferMap
Set the current composite transfer map up to the current probe location.- Parameters:
mapTrans
- transfer map in homogeneous phase coordinates- See Also:
-
setPartialTransferMap
Set the partial transfer map at the current probe location.- Parameters:
mapPhi
- transfer map in homogeneous phase coordinates- See Also:
-
getTransferMap
Get the composite transfer map for the current probe location.- Returns:
- transfer map in homogeneous phase space coordinates
-
getPartialTransferMap
Get the partial transfer map for the current probe location.- Returns:
- partial transfer map in homogeneous phase space coordinates
-
createTrajectory
Creates aTrajectory<TransferMapState>
object of the proper type for saving the probe's history.- Specified by:
createTrajectory
in classProbe<TransferMapState>
- Returns:
- a new, empty
Trajectory<TransferMapState>
for saving the probe's history
-
createProbeState
Return a newProbeState
object, of the appropriate type, initialized to the current state of this probe.- Specified by:
createProbeState
in classProbe<TransferMapState>
- Returns:
- probe state object of type
TransferMapState
- See Also:
-
createEmptyProbeState
Creates a new, emptyTransferMapState
.- Specified by:
createEmptyProbeState
in classProbe<TransferMapState>
- Returns:
- a new, empty
TransferMapState
- Since:
- Jul 1, 2014
-
initializeFrom
Deprecated.Never UsedInitialize this probe from the one specified.- Overrides:
initializeFrom
in classProbe<TransferMapState>
- Parameters:
probe
- the probe from which to initialize this one
-
readStateFrom
Description copied from class:Probe
Read the contents of the suppliedDataAdaptor
and return an instance of the appropriate Trajectory species.- Specified by:
readStateFrom
in classProbe<TransferMapState>
- Parameters:
container
-DataAdaptor
to read a Trajectory from- Returns:
- a ProbeState for the contents of the DataAdaptor
- Throws:
DataFormatException
- error encountered reading the DataAdaptor
-