Class EndstationPhotonEnergyProvider

All Implemented Interfaces:
INeXusInfoWriteable, ControllerRecord, Device, Scannable, ScannableMotion, Configurable, Findable, gda.observable.IObservable

@ServiceInterface(Scannable.class) public class EndstationPhotonEnergyProvider extends DummyScannable
B07-1 Choose between CCMC and PGM to return photon energy to SPECS analyser. CCM positions is a gda.device.enumpositioner.EpicsPositionerCallback, while pgm_energy is gda.device.scannable.TweakableScannableMotor. As agreed with the B07-1 beamline staff: 1. CCM position name must be "Xtal_" followed by an actual photon energy except for "Out of Beam" position. 2. When CCM is in "out of beam" -> get energy from PGM, otherwise parse CCM position name.
  • Constructor Details

    • EndstationPhotonEnergyProvider

      public EndstationPhotonEnergyProvider()
  • Method Details

    • getCcmPositionPrefix

      public String getCcmPositionPrefix()
    • setCcmPositionPrefix

      public void setCcmPositionPrefix(String ccmPositionPrefix)
    • getCcmLowerLimit

      public double getCcmLowerLimit()
    • setCcmLowerLimit

      public void setCcmLowerLimit(double ccmLowerLimit)
    • getCcmUpperLimit

      public double getCcmUpperLimit()
    • setCcmUpperLimit

      public void setCcmUpperLimit(double ccmUpperLimit)
    • getPgmEnergy

      public Scannable getPgmEnergy()
    • setPgmEnergy

      public void setPgmEnergy(Scannable pgmEnergy)
    • getCcmcPositions

      public Scannable getCcmcPositions()
    • setCcmcPositions

      public void setCcmcPositions(Scannable ccmcPositions)
    • getPosition

      public Object getPosition() throws DeviceException
      Description copied from class: ScannableBase
      Returns the current position of the Scannable. Called by ConcurentScan at the end of the point. Reads an internal (hardware) position from rawGetPosition, converts this to an external (user) position and returns it.
      Specified by:
      getPosition in interface Scannable
      Overrides:
      getPosition in class DummyScannable
      Returns:
      Current position with an element for each input and extra field. null if their are no fields.
      Throws:
      DeviceException