14#include "MantidCrystal/DllConfig.h"
23using peakvector = std::vector<FindSXPeaksHelper::SXPeak>;
43 const std::string
name()
const override {
return "FindSXPeaks"; }
45 const std::string
summary()
const override {
46 return "Takes a 2D workspace as input and finds the highest intensity "
47 "point in each 1D spectrum. This is used in particular for single "
48 "crystal as a quick way to find strong peaks.";
52 int version()
const override {
return (1); }
53 const std::vector<std::string>
seeAlso()
const override {
return {
"IndexSXPeaks"}; }
55 const std::string
category()
const override {
return "Crystal\\Peaks;Optimization\\PeakFinding"; }
66 std::map<std::string, std::string> validateInputs()
override;
69 std::unique_ptr<FindSXPeaksHelper::BackgroundStrategy> getBackgroundStrategy()
const;
72 std::unique_ptr<FindSXPeaksHelper::PeakFindingStrategy>
78 std::unique_ptr<FindSXPeaksHelper::ReducePeakListStrategy>
82 std::unique_ptr<FindSXPeaksHelper::CompareStrategy> getCompareStrategy()
const;
IPeaksWorkspace_sptr workspace
Base class from which all concrete algorithm classes should be derived.
Helper class for reporting progress from algorithms.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Search detector space for single crystal peaks.
static const std::string absoluteResolutionPeaksStrategy
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Mantid::DataObjects::PeaksWorkspace_sptr m_peaks
int version() const override
Algorithm's version for identification overriding a virtual method.
size_t m_MaxWsIndex
The spectrum to finish the integration at.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
double m_MinRange
The value in X to start the search from.
double m_MaxRange
The value in X to finish the search at.
static const std::string strongestPeakStrategy
static const std::string relativeResolutionStrategy
static const std::string allPeaksStrategy
size_t m_MinWsIndex
The spectrum to start the integration from.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
XAxisUnit
enum to determine the units of the workspaces X axis we are searching in
std::vector< FindSXPeaksHelper::SXPeak > peakvector
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
Helper class which provides the Collimation Length for SANS instruments.