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_LABELFields 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 newProbeStateobject, 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 voidinitializeFrom(Probe<TransferMapState> probe) Deprecated.Never Usedprotected TransferMapStatereadStateFrom(DataAdaptor container) Read the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.voidsetPartialTransferMap(PhaseMap mapPhi) Set the partial transfer map at the current probe location.voidsetTransferMap(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 newTransferMapProbewith zero initial state. -
TransferMapProbe
Initializing constructor. Create a newTransferMapProbeand initialize its state to that of the given probe.- Parameters:
probe- probe containing initial state information
-
-
Method Details
-
copy
Description copied from class:ProbeCreates a deep copy of the probe- Specified by:
copyin 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:
createTrajectoryin classProbe<TransferMapState>- Returns:
- a new, empty
Trajectory<TransferMapState>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 classProbe<TransferMapState>- Returns:
- probe state object of type
TransferMapState - See Also:
-
createEmptyProbeState
Creates a new, emptyTransferMapState.- Specified by:
createEmptyProbeStatein classProbe<TransferMapState>- Returns:
- a new, empty
TransferMapState - Since:
- Jul 1, 2014
-
initializeFrom
Deprecated.Never UsedInitialize this probe from the one specified.- Overrides:
initializeFromin classProbe<TransferMapState>- Parameters:
probe- the probe from which to initialize this one
-
readStateFrom
Description copied from class:ProbeRead the contents of the suppliedDataAdaptorand return an instance of the appropriate Trajectory species.- Specified by:
readStateFromin classProbe<TransferMapState>- Parameters:
container-DataAdaptorto read a Trajectory from- Returns:
- a ProbeState for the contents of the DataAdaptor
- Throws:
DataFormatException- error encountered reading the DataAdaptor
-