Mantid
Loading...
Searching...
No Matches
ConvolveWorkspaces.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
20
21namespace Mantid {
22namespace CurveFitting {
23namespace Algorithms {
27class MANTID_CURVEFITTING_DLL ConvolveWorkspaces final : public API::Algorithm {
28public:
30 ~ConvolveWorkspaces() override = default;
32 const std::string name() const override { return "ConvolveWorkspaces"; }
34 const std::string summary() const override { return "Convolution of two workspaces."; }
35
37 int version() const override { return (1); }
39 const std::string category() const override { return "Utility\\Workspaces"; }
40
41private:
43 void init() override;
45 void exec() override;
46 void convolve(MantidVec &xValues, const MantidVec &Y1, const MantidVec &Y2, MantidVec &out) const;
47 std::unique_ptr<API::Progress> m_progress = nullptr;
48};
49
50} // namespace Algorithms
51} // namespace CurveFitting
52} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
void convolve(MantidVec &xValues, const MantidVec &Y1, const MantidVec &Y2, MantidVec &out) const
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version.
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces
Definition: cow_ptr.h:172