Class ScatterMaths

java.lang.Object
uk.ac.diamond.scisoft.spectroscopy.xrf.ScatterMaths

public class ScatterMaths extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getHorizontallyPolarizedIntensity(double I0, double degreeOfLinearPolarization)
    Get the horizontally polarized component of the beam intensity
    static double
    getVerticallyPolarizedIntensity(double I0, double degreeOfLinearPolarization)
    Get the vertically polarized component of the beam intensity
    static double[]
    scatteringGeometryFactors(int[] Elements, double[] massFractions, double excitationEnergy, double D, double area, double alpha, double beta)
    Calculate the geometry factors for the scattering contributions in the fundamental parameter equation
    static double[]
    scatteringGeometryFactors(String effectiveCompound, double excitationEnergy, double D, double area, double alpha, double beta)
    Calculate the geometry factors for the scattering contributions in the fundamental parameter equation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScatterMaths

      public ScatterMaths()
  • Method Details

    • getHorizontallyPolarizedIntensity

      public static double getHorizontallyPolarizedIntensity(double I0, double degreeOfLinearPolarization)
      Get the horizontally polarized component of the beam intensity
      Parameters:
      I0 - beam intensity, expressed in photons/sec
      degreeOfLinearPolarization - degree of linear polarization (must be between -1 and +1). +1 indicates a completely horizontally polarized beam, while -1 corresponds to a completely vertically polarized beam. 0 relates to an unpolarized beam. Synchrotron beam-lines will typically have a degree of linear polarization that is very close to 1.
      Returns:
      the horizontally polarized component of the beam intensity, expressed in photons/sec
    • getVerticallyPolarizedIntensity

      public static double getVerticallyPolarizedIntensity(double I0, double degreeOfLinearPolarization)
      Get the vertically polarized component of the beam intensity
      Parameters:
      I0 - beam intensity, expressed in photons/sec
      degreeOfLinearPolarization - degree of linear polarization (must be between -1 and +1). +1 indicates a completely horizontally polarized beam, while -1 corresponds to a completely vertically polarized beam. 0 relates to an unpolarized beam. Synchrotron beam-lines will typically have a degree of linear polarization that is very close to 1.
      Returns:
      the vertically polarized component of the beam intensity, expressed in photons/sec
    • scatteringGeometryFactors

      public static double[] scatteringGeometryFactors(String effectiveCompound, double excitationEnergy, double D, double area, double alpha, double beta) throws Exception
      Calculate the geometry factors for the scattering contributions in the fundamental parameter equation
      Parameters:
      effectiveCompound - a chemical formula or NIST compound name that matches the sample being irradiated
      excitationEnergy - the excitation energy
      D - the distance between sample and detector surface
      area - the active detector area
      alpha - the angle between the incoming beam and the sample surface in radians
      beta - the angle between detector axis and the sample surface in radians
      Returns:
      a 6 element array containing the scattering geometry factors for Rayleigh and Compton, horizontally and vertically polarized, as well as the Rayleigh and Compton scattering cross sections
      Throws:
      Exception
    • scatteringGeometryFactors

      public static double[] scatteringGeometryFactors(int[] Elements, double[] massFractions, double excitationEnergy, double D, double area, double alpha, double beta) throws Exception
      Calculate the geometry factors for the scattering contributions in the fundamental parameter equation
      Parameters:
      Elements - an int array containing the atomic numbers of the elements in the sample
      massFractions - a double array containing the weight fractions (0.0 - 1.0) of the elements in the sample
      excitationEnergy - the excitation energy
      D - the distance between sample and detector surface
      area - the active detector area
      alpha - the angle between the incoming beam and the sample surface in radians
      beta - the angle between detector axis and the sample surface in radians
      Returns:
      a 6 element array containing the scattering geometry factors for Rayleigh and Compton, horizontally and vertically polarized, as well as the Rayleigh and Compton scattering cross sections
      Throws:
      Exception