Mantid
Loading...
Searching...
No Matches
GeneralDomainCreator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 "MantidCurveFitting/DllConfig.h"
12
13namespace Mantid {
14
15namespace API {
16class IFunctionGeneral;
17class Column;
18class ITableWorkspace;
19} // namespace API
20
21namespace CurveFitting {
22
47class MANTID_CURVEFITTING_DLL GeneralDomainCreator : public API::IDomainCreator {
48public:
50 const std::string &workspacePropertyName);
51
52 void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
53 size_t i0 = 0) override;
54
56 createOutputWorkspace(const std::string &baseName, API::IFunction_sptr function,
57 std::shared_ptr<API::FunctionDomain> domain, std::shared_ptr<API::FunctionValues> values,
58 const std::string &outputWorkspacePropertyName = "OutputWorkspace") override;
59
60 size_t getDomainSize() const override;
61
62 void declareDatasetProperties(const std::string &suffix = "", bool addProp = true) override;
63
64private:
66 std::shared_ptr<API::ITableWorkspace> getInputWorkspace() const;
67 // Names of additional properties
70 std::vector<std::string> m_domainColumnNames;
73 std::vector<std::string> m_dataColumnNames;
76 std::vector<std::string> m_weightsColumnNames;
79};
80
81} // namespace CurveFitting
82} // namespace Mantid
std::vector< double > Column
Definition LoadSESANS.h:15
An base class for domain creators for use in Fit.
IFunctionGeneral: a very general function definition.
std::vector< std::string > m_weightsColumnNames
Property names for columns in a TableWorkspace to be used as the fitting weights.
std::vector< std::string > m_dataColumnNames
Property names for columns in a TableWorkspace to be used as the data to fit to.
std::vector< std::string > m_domainColumnNames
Property names for columns in a TableWorkspace to be passed to the domain.
size_t m_defaultValuesSize
Default number of values.
Interface to PropertyManager.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Definition IFunction.h:743
Helper class which provides the Collimation Length for SANS instruments.