20namespace CurveFitting {
32 std::vector<double> &vec_peakfwhm);
35 size_t excludePeaks(std::vector<double> v_inX, std::vector<bool> &v_useX, std::vector<double> v_centre,
36 std::vector<double> v_fwhm,
double num_fwhm);
48 const std::string
category()
const override {
return "Diffraction\\Utility"; }
50 const std::string
name()
const override {
return "ProcessBackground"; }
52 int version()
const override {
return 1; }
55 const std::string
summary()
const override {
56 return "ProcessBackground provides some tools to process powder "
57 "diffraction pattern's "
58 "background in order to help Le Bail Fit.";
69 void setupDummyOutputWSes();
72 void selectBkgdPoints();
75 void selectFromGivenXValues();
78 void selectFromGivenFunction();
115 void fitBackgroundFunction(
const std::string &bkgdfunctiontype);
Base class from which all concrete algorithm classes should be derived.
ProcessBackground : Process background obtained from LeBailFit.
DataObjects::Workspace2D_const_sptr m_dataWS
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
DataObjects::Workspace2D_sptr m_outputWS
double m_numFWHM
Number of FWHM of range of peak to be removed.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
function to return a category of the algorithm.
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
void parsePeakTableWorkspace(const DataObjects::TableWorkspace_sptr &peaktablews, std::vector< double > &vec_peakcentre, std::vector< double > &vec_peakfwhm)
Parse peak centre and FWHM from a table workspace.
std::vector< double > m_vecPeakCentre
void setup(const DataObjects::TableWorkspace_sptr &peaktablews)
Set up: parse peak workspace to vectors.
size_t excludePeaks(std::vector< double > v_inX, std::vector< bool > &v_useX, std::vector< double > v_centre, std::vector< double > v_fwhm, double num_fwhm)
Exclude peak regions.
std::vector< double > m_vecPeakFWHM
DataObjects::Workspace2D_sptr removePeaks(const API::MatrixWorkspace_const_sptr &dataws, int wsindex, double numfwhm)
Remove peaks from a input workspace.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< BackgroundFunction > BackgroundFunction_sptr
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
std::shared_ptr< const Workspace2D > Workspace2D_const_sptr
shared pointer to Mantid::DataObjects::Workspace2D (const version)
Helper class which provides the Collimation Length for SANS instruments.