10#include "MantidAlgorithms/DllConfig.h"
17namespace HistogramData {
51 bool nullifyNegative =
false);
52 void removeBackground(
int nHist, HistogramData::HistogramX &x_data, HistogramData::HistogramY &y_data,
53 HistogramData::HistogramE &e_data,
int threadNum = 0)
const;
57 std::vector<std::unique_ptr<Kernel::Unit>>
m_WSUnit;
96 const std::string
name()
const override {
return "RemoveBackground"; }
98 const std::string
summary()
const override {
99 return "Removes background (constant for now) calculated in TOF units "
100 "from a matrix workspace, expressed in units, different from TOF";
106 const std::string
category()
const override {
return "CorrectionFunctions\\BackgroundCorrections"; }
110 void init()
override;
111 void exec()
override;
Base class from which all concrete algorithm classes should be derived.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Performs removal of constant (and possibly non-constant after simple modification) background calcula...
Kernel::DeltaEMode::Type m_Emode
BackgroundHelper(const BackgroundHelper &)=delete
BackgroundHelper & operator=(const BackgroundHelper &)=delete
const API::SpectrumInfo * m_spectrumInfo
std::vector< std::unique_ptr< Kernel::Unit > > m_WSUnit
bool m_singleValueBackground
bool m_previouslyRemovedBkgMode
API::MatrixWorkspace_const_sptr m_wkWS
API::MatrixWorkspace_const_sptr m_bgWs
int version() const override
Algorithm's version for identification overriding a virtual method.
RemoveBackground & operator=(const RemoveBackground &)=delete
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
RemoveBackground(const RemoveBackground &)=delete
BackgroundHelper m_BackgroundHelper
The Logger class is in charge of the publishing messages from the framework through various channels.
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.
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...