Specialization of FunctionDomain1DVector for spectra of MatrixWorkspaces.
An base class for domain creators for use in Fit.
FunctionDomain1DSpectrumCreator :
void createDomain(std::shared_ptr< API::FunctionDomain > &domain, std::shared_ptr< API::FunctionValues > &values, size_t i0=0) override
Creates the domain according to the stored MatrixWorkspace and workspace index.
void throwIfWorkspaceInvalid() const
Checks the assigned MatrixWorkspace and workspace index.
API::MatrixWorkspace_sptr m_matrixWorkspace
size_t getDomainSize() const override
Returns the domain sizes.
FunctionDomain1DSpectrumCreator()
Default Constructor.
void setWorkspaceIndex(size_t workspaceIndex)
Sets the workspace index for the created domain.
void setMatrixWorkspace(API::MatrixWorkspace_sptr matrixWorkspace)
Sets the matrix workspace this creator is working with.