15#include "MantidMDAlgorithms/DllConfig.h"
21class FunctionDomainMD;
23class IMDEventWorkspace;
24class IMDHistoWorkspace;
27namespace MDAlgorithms {
45 DomainType domainType)
override;
49 void declareDatasetProperties(
const std::string &suffix =
"",
bool addProp =
true)
override;
51 void createDomain(std::shared_ptr<API::FunctionDomain> &, std::shared_ptr<API::FunctionValues> &,
size_t i0)
override;
52 std::shared_ptr<API::Workspace>
54 std::shared_ptr<API::FunctionDomain> domain, std::shared_ptr<API::FunctionValues> values,
55 const std::string &outputWorkspacePropertyName =
"OutputWorkspace")
override;
58 size_t getDomainSize()
const override;
62 void setRange(
size_t startIndex,
size_t count);
69 void setParameters()
const;
71 std::shared_ptr<API::Workspace> createEventOutputWorkspace(
const std::string &baseName,
74 const std::string &outputWorkspacePropertyName);
76 std::shared_ptr<API::Workspace>
77 createHistoOutputWorkspace(
const std::string &baseName,
const API::IFunction_sptr &function,
78 const std::shared_ptr<const API::IMDHistoWorkspace> &inputWorkspace,
79 const std::string &outputWorkspacePropertyName);
A class to store values calculated by a function.
An base class for domain creators for use in Fit.
DomainType
Type of domain to create.
Abstract base class for multi-dimension event workspaces (MDEventWorkspace).
Basic MD Workspace Abstract Class.
Interface to PropertyManager.
Creates FunctionDomainMD from an IMDWorkspace.
std::string m_maxSizePropertyName
Store maxSize property name.
size_t m_maxSize
Max size for seq domain.
size_t m_count
Size of the domain if part of the workspace is used.
std::string m_workspacePropertyName
Store workspace property name.
void setMaxSize(size_t maxSize)
Set max size for Sequantial and Parallel domains.
size_t m_startIndex
Starting index.
std::shared_ptr< API::IMDWorkspace > m_IMDWorkspace
The input IMDWorkspace.
void setWorkspace(std::shared_ptr< API::IMDWorkspace > IMDWorkspace)
Set the workspace.
FitMD(DomainType domainType)
Constructor.
std::shared_ptr< IFunction > IFunction_sptr
shared pointer to the function base class
Helper class which provides the Collimation Length for SANS instruments.