Class TFGScalerWithRatio

All Implemented Interfaces:
CounterTimer, Detector, DarkCurrentDetector, Device, Scannable, Configurable, Findable, gda.observable.IObservable, Serializable

public class TFGScalerWithRatio extends TfgScalerWithDarkCurrent
Temporary class for B18.

For when the drain currents are being fed into the TFG Scaler rather than the ion chamber output. When using drain current then only It/I0 is required. This class should be used in place of TFGScalerWithLogValues for counterTimer01.

See Also:
  • Constructor Details

    • TFGScalerWithRatio

      public TFGScalerWithRatio()
  • Method Details

    • isOutputRatio

      public boolean isOutputRatio()
      Returns:
      Returns the outputLogValues.
    • setOutputRatio

      public void setOutputRatio(boolean outputRatio)
      When set to true I0/It will be added to the output columns
      Parameters:
      outputRatio - The outputLogValues to set.
    • getTotalChans

      public int getTotalChans() throws DeviceException
      Description copied from class: TfgScaler
      Returns the total number of available counter-timer readout channels that will be returned by calls to readChans() For a time-framing device it is the number of channels per frame. All counter-timers must fully implement this.
      Overrides:
      getTotalChans in class TfgScaler
      Returns:
      total number of readout channels
      Throws:
      DeviceException
    • readout

      public double[] readout() throws DeviceException
      Description copied from interface: Detector
      Returns the latest data collected. The size of the Object returned must be consistent with the values returned by getDataDimensions and getExtraNames.

      If LocalProperties.GDA_SCAN_CONCURRENTSCAN_READOUT_CONCURRENTLY is true then motors may be moved while the detector readouts. The value returned must not be effected by any concurrent motor or shutter movements. See Detector.waitWhileBusy() and ConcurrentScan. Readout must block until the detector is ready to respond quickly to Detector.collectData() again.

      Specified by:
      readout in interface Detector
      Overrides:
      readout in class TfgScaler
      Returns:
      the data collected
      Throws:
      DeviceException
      See Also: