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"
13#include "MantidKernel/System.h"
15
16namespace Mantid {
17namespace HistogramData {
18class Points;
19class BinEdges;
20} // namespace HistogramData
21namespace CurveFitting {
22
36class MANTID_CURVEFITTING_DLL FunctionDomain1DSpectrumCreator : public API::IDomainCreator {
37public:
39
40 void setMatrixWorkspace(API::MatrixWorkspace_sptr matrixWorkspace);
41 void setWorkspaceIndex(size_t workspaceIndex);
42
43 void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
44 size_t i0 = 0) override;
45
46 size_t getDomainSize() const override;
47
48protected:
49 void throwIfWorkspaceInvalid() const;
50
54};
55
56} // namespace CurveFitting
57} // 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.