Mantid
Loading...
Searching...
No Matches
StripPeaks.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
38class MANTID_ALGORITHMS_DLL StripPeaks : public API::ParallelAlgorithm {
39public:
41 const std::string name() const override { return "StripPeaks"; }
43 const std::string summary() const override {
44 return "This algorithm attempts to find all the peaks in all spectra of a "
45 "workspace and subtract them from the data, leaving just the "
46 "'background'.";
47 }
48
50 int version() const override { return (1); }
51 const std::vector<std::string> seeAlso() const override { return {"FindPeaks", "StripVanadiumPeaks"}; }
53 const std::string category() const override {
54 return "CorrectionFunctions\\PeakCorrections;Optimization\\PeakFinding";
55 }
56
57private:
59 void init() override;
61 void exec() override;
62
65 const API::ITableWorkspace_sptr &peakslist);
66 double m_maxChiSq{0.0};
67};
68
69} // namespace Algorithms
70} // namespace Mantid
Base class for algorithms that can run in parallel on all MPI ranks but not in a distributed fashion.
This algorithm calls FindPeaks as a ChildAlgorithm and then subtracts all the peaks found from the da...
Definition: StripPeaks.h:38
const std::string category() const override
Algorithm's category for identification.
Definition: StripPeaks.h:53
const std::string summary() const override
Summary of algorithms purpose.
Definition: StripPeaks.h:43
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: StripPeaks.h:51
int version() const override
Algorithm's version.
Definition: StripPeaks.h:50
const std::string name() const override
Algorithm's name.
Definition: StripPeaks.h:41
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.