Skip to content
Snippets Groups Projects
Commit ee1ed617 authored by Samuel Jackson's avatar Samuel Jackson
Browse files

Refs #20409 Update documentation

parent b403eed7
No related branches found
No related tags found
No related merge requests found
...@@ -58,13 +58,14 @@ void FindSXPeaks::init() { ...@@ -58,13 +58,14 @@ void FindSXPeaks::init() {
declareProperty("RangeLower", EMPTY_DBL(), declareProperty("RangeLower", EMPTY_DBL(),
"The X value to search from (default 0)"); "The X value to search from (default 0)");
declareProperty("RangeUpper", EMPTY_DBL(), declareProperty("RangeUpper", EMPTY_DBL(),
"The X value to search to (default FindSXPeaks)"); "The X value to search to (default total number of bins)");
auto mustBePositive = boost::make_shared<BoundedValidator<int>>(); auto mustBePositive = boost::make_shared<BoundedValidator<int>>();
mustBePositive->setLower(0); mustBePositive->setLower(0);
declareProperty("StartWorkspaceIndex", 0, mustBePositive, declareProperty("StartWorkspaceIndex", 0, mustBePositive,
"Start spectrum number (default 0)"); "Start workspace index (default 0)");
declareProperty("EndWorkspaceIndex", EMPTY_INT(), mustBePositive, declareProperty(
"End spectrum number (default FindSXPeaks)"); "EndWorkspaceIndex", EMPTY_INT(), mustBePositive,
"End workspace index (default to total number of histograms)");
// --------------------------------------------------------------- // ---------------------------------------------------------------
// Peak strategies + Threshold // Peak strategies + Threshold
......
...@@ -18,11 +18,12 @@ d-spacing. ...@@ -18,11 +18,12 @@ d-spacing.
Strongest peak mode: Strongest peak mode:
- The highest intensity bin is taken to be the peak, so the algorithm only - The highest intensity bin is taken to be the peak, so the algorithm only
finds one peak per spectra - In this case the background is calculated as finds one peak per spectra. In this case the background is calculated as the
the average of the start and end intensity multiplied by the provided average of the start and end intensity multiplied by the provided
SignalBackground parameter. Peaks that are not above the background are SignalBackground parameter. Peaks that are not above the background are
culled. - This peak finding mode is mainly used with the ResolutionStrategy culled.
set to RelativeResolution. In this case, the resolution parameter defines a - This peak finding mode is mainly used with the ResolutionStrategy set to
RelativeResolution. In this case, the resolution parameter defines a
tolerance which is compared to the absolute difference between the parameters tolerance which is compared to the absolute difference between the parameters
:math:`\phi`, :math:`2\theta`, and :math:`t` of two found peaks. If the :math:`\phi`, :math:`2\theta`, and :math:`t` of two found peaks. If the
absolute difference between any of the parameters for two peaks is greater absolute difference between any of the parameters for two peaks is greater
...@@ -35,23 +36,24 @@ Strongest peak mode: ...@@ -35,23 +36,24 @@ Strongest peak mode:
All peaks mode: All peaks mode:
- All peaks in each spectra above a certain threshold are detected as peaks - All peaks in each spectra above a certain threshold are detected as peaks
(see below for the threshold). - In this case the user provides an (see below for the threshold).
absolute, global background/threshold value which is set with the - In this case the user provides an absolute, global background/threshold
AbsoluteBackground parameter. Peaks that are not above the absolute value which is set with the AbsoluteBackground parameter. Peaks that are not
background are culled. A good way of identifying the background is to inspect above the absolute background are culled. A good way of identifying the
your data set in pick mode within the InstrumentView. Ensure that your background is to inspect your data set in pick mode within the
absolute background has been set high enough, else the algorithm will pick up InstrumentView. Ensure that your absolute background has been set high
noise as peaks. - This peak finding mode provides the best results when enough, else the algorithm will pick up noise as peaks.
used with the ResolutionStrategy set to AbsoluteResolution, which allows the - This peak finding mode provides the best results when used with the
user to set absolute resolution values for the XUnitResolution (either in ResolutionStrategy set to AbsoluteResolution, which allows the user to set
units of TOF or d-spacing), PhiResolution and the TwoThetaResolution absolute resolution values for the XUnitResolution (either in units of TOF or
parameters. These resolution parameters define tolerances which are compared d-spacing), PhiResolution and the TwoThetaResolution parameters. These
to the absolute difference between the parameters :math:`\phi`, resolution parameters define tolerances which are compared to the absolute
:math:`2\theta`, and :math:`t` of two found peaks. If the absolute difference between the parameters :math:`\phi`, :math:`2\theta`, and
difference between any of the parameters for two peaks is greater than the :math:`t` of two found peaks. If the absolute difference between any of the
absolute tolerance then the two peaks are classed as not the same. i.e. if parameters for two peaks is greater than the absolute tolerance then the two
:math:`|\phi_1 - \phi_2| > PhiTolerance then peaks 1 & 2 are not the same (as peaks are classed as not the same. i.e. if :math:`|\phi_1 - \phi_2| >
well as similar definitions for :math:`2\theta` and :math:`t`). PhiTolerance then peaks 1 & 2 are not the same (as well as similar
definitions for :math:`2\theta` and :math:`t`).
General points: General points:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment