Package gda.px.util

Class DetDistToBeamXYConverter

All Implemented Interfaces:
Configurable, Findable, IDetDistToBeamXYConverter

@ServiceInterface(IDetDistToBeamXYConverter.class) public final class DetDistToBeamXYConverter extends FindableConfigurableBase implements IDetDistToBeamXYConverter
DetDistToBeamXYConverter Class. Use as follows: a=BCMFinder.getDetectorDistanceToBeamXYConverter(); a.getBeamX(); a.getBeamY();
  • Field Details

  • Constructor Details

    • DetDistToBeamXYConverter

      public DetDistToBeamXYConverter()
  • Method Details

    • configure

      public void configure()
      Description copied from class: ConfigurableBase
      Default implementation for classes that do not have to do any specific configuration.
      Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
    • getBeamXConverter

      public SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> getBeamXConverter()
    • setBeamXConverter

      public void setBeamXConverter(SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> beamXConverter)
    • getBeamYConverter

      public SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> getBeamYConverter()
    • setBeamYConverter

      public void setBeamYConverter(SimpleConverter<javax.measure.quantity.Length,javax.measure.quantity.Length> beamYConverter)
    • getBeamX

      public javax.measure.Quantity<javax.measure.quantity.Length> getBeamX(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) throws Exception
      Parameters:
      detectorDistance -
      Returns:
      beam x
      Throws:
      Exception
    • getBeamY

      public javax.measure.Quantity<javax.measure.quantity.Length> getBeamY(javax.measure.Quantity<javax.measure.quantity.Length> detectorDistance) throws Exception
      Parameters:
      detectorDistance -
      Returns:
      beam y
      Throws:
      Exception
    • getBeamXUsingMM

      public double getBeamXUsingMM(double detectorDistanceInMM) throws Exception
      Specified by:
      getBeamXUsingMM in interface IDetDistToBeamXYConverter
      Parameters:
      detectorDistanceInMM -
      Returns:
      double beam x
      Throws:
      Exception
    • getBeamYUsingMM

      public double getBeamYUsingMM(double detectorDistanceInMM) throws Exception
      Specified by:
      getBeamYUsingMM in interface IDetDistToBeamXYConverter
      Parameters:
      detectorDistanceInMM -
      Returns:
      double beam y
      Throws:
      Exception
    • getBeamXUsingPixels

      public double getBeamXUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) throws Exception
      Parameters:
      detectorDistanceInMM -
      imageSizeInPixels -
      detectorDimensionInMM -
      Returns:
      x beam x position in pixels
      Throws:
      Exception
    • getBeamYUsingPixels

      public double getBeamYUsingPixels(double detectorDistanceInMM, int imageSizeInPixels, double detectorDimensionInMM) throws Exception
      Parameters:
      detectorDistanceInMM -
      imageSizeInPixels -
      detectorDimensionInMM -
      Returns:
      y beam y position in pixels
      Throws:
      Exception