Class SynchronousProbe

All Implemented Interfaces:
IProbe, IArchive

public class SynchronousProbe extends BunchProbe<SynchronousState>
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>
  • Constructor Details

    • SynchronousProbe

      public SynchronousProbe()
    • SynchronousProbe

      public SynchronousProbe(SynchronousProbe probe)
      Parameters:
      probe -
  • Method Details

    • copy

      public SynchronousProbe copy()
      Description copied from class: Probe
      Creates a deep copy of the probe
      Specified by:
      copy in class Probe<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

      public Trajectory<SynchronousState> createTrajectory()
      Creates a Trajectory<SynchronousState> object of the proper type for saving the probe's history.
      Specified by:
      createTrajectory in class Probe<SynchronousState>
      Returns:
      a new, empty Trajectory<SynchronousState> for saving the probe's history
    • createProbeState

      public SynchronousState createProbeState()
      Return a new ProbeState object, of the appropriate type, initialized to the current state of this probe.
      Specified by:
      createProbeState in class BunchProbe<SynchronousState>
      Returns:
      probe state object of type SynchronousState
      See Also:
    • createEmptyProbeState

      public SynchronousState createEmptyProbeState()
      Creates a new, empty SynchronousState.
      Specified by:
      createEmptyProbeState in class BunchProbe<SynchronousState>
      Returns:
      a new, empty SynchronousState
    • readStateFrom

      protected SynchronousState readStateFrom(DataAdaptor container) throws DataFormatException
      Description copied from class: Probe
      Read the contents of the supplied DataAdaptor and return an instance of the appropriate Trajectory species.
      Specified by:
      readStateFrom in class Probe<SynchronousState>
      Parameters:
      container - DataAdaptor to read a Trajectory from
      Returns:
      a ProbeState for the contents of the DataAdaptor
      Throws:
      DataFormatException - error encountered reading the DataAdaptor