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#include "MantidKernel/System.h"
13
14namespace Mantid {
15
16namespace API {
17class IFunctionGeneral;
18class Column;
19class ITableWorkspace;
20} // namespace API
21
22namespace CurveFitting {
23
48class MANTID_CURVEFITTING_DLL GeneralDomainCreator : public API::IDomainCreator {
49public:
51 const std::string &workspacePropertyName);
52
53 void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
54 size_t i0 = 0) override;
55
57 createOutputWorkspace(const std::string &baseName, API::IFunction_sptr function,
58 std::shared_ptr<API::FunctionDomain> domain, std::shared_ptr<API::FunctionValues> values,
59 const std::string &outputWorkspacePropertyName = "OutputWorkspace") override;
60
61 size_t getDomainSize() const override;
62
63 void declareDatasetProperties(const std::string &suffix = "", bool addProp = true) override;
64
65private:
67 std::shared_ptr<API::ITableWorkspace> getInputWorkspace() const;
68 // Names of additional properties
71 std::vector<std::string> m_domainColumnNames;
74 std::vector<std::string> m_dataColumnNames;
77 std::vector<std::string> m_weightsColumnNames;
80};
81
82} // namespace CurveFitting
83} // 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
Definition: Workspace_fwd.h:20
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Definition: IFunction.h:732
Helper class which provides the Collimation Length for SANS instruments.