Class ScatterMaths
java.lang.Object
uk.ac.diamond.scisoft.spectroscopy.xrf.ScatterMaths
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetHorizontallyPolarizedIntensity(double I0, double degreeOfLinearPolarization) Get the horizontally polarized component of the beam intensitystatic doublegetVerticallyPolarizedIntensity(double I0, double degreeOfLinearPolarization) Get the vertically polarized component of the beam intensitystatic 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 equationstatic 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
-
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/secdegreeOfLinearPolarization- 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/secdegreeOfLinearPolarization- 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 irradiatedexcitationEnergy- the excitation energyD- the distance between sample and detector surfacearea- the active detector areaalpha- the angle between the incoming beam and the sample surface in radiansbeta- 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 samplemassFractions- a double array containing the weight fractions (0.0 - 1.0) of the elements in the sampleexcitationEnergy- the excitation energyD- the distance between sample and detector surfacearea- the active detector areaalpha- the angle between the incoming beam and the sample surface in radiansbeta- 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
-