Mantid
Loading...
Searching...
No Matches
FunctionDomain1DSpectrumCreator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
12#include "MantidCurveFitting/DllConfig.h"
14
15namespace Mantid {
16namespace HistogramData {
17class Points;
18class BinEdges;
19} // namespace HistogramData
20namespace CurveFitting {
21
35class MANTID_CURVEFITTING_DLL FunctionDomain1DSpectrumCreator : public API::IDomainCreator {
36public:
38
39 void setMatrixWorkspace(API::MatrixWorkspace_sptr matrixWorkspace);
40 void setWorkspaceIndex(size_t workspaceIndex);
41
42 void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
43 size_t i0 = 0) override;
44
45 size_t getDomainSize() const override;
46
47protected:
48 void throwIfWorkspaceInvalid() const;
49
53};
54
55} // namespace CurveFitting
56} // namespace Mantid
An base class for domain creators for use in Fit.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.