Mantid
Loading...
Searching...
No Matches
HistogramDomainCreator.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
10#include "MantidCurveFitting/DllConfig.h"
12#include "MantidKernel/System.h"
13
14namespace Mantid {
15
16namespace API {
17class FunctionDomain1DHistogram;
18}
19
20namespace CurveFitting {
21
46class MANTID_CURVEFITTING_DLL HistogramDomainCreator : public IMWDomainCreator {
47public:
48 HistogramDomainCreator(Kernel::IPropertyManager &manager, const std::string &workspacePropertyName);
49
50 void createDomain(std::shared_ptr<API::FunctionDomain> &domain, std::shared_ptr<API::FunctionValues> &values,
51 size_t i0 = 0) override;
52 std::shared_ptr<API::Workspace> createOutputWorkspace(const std::string &baseName, API::IFunction_sptr function,
53 std::shared_ptr<API::FunctionDomain> domain,
54 std::shared_ptr<API::FunctionValues> values,
55 const std::string &outputWorkspacePropertyName) override;
56};
57
58} // namespace CurveFitting
59} // namespace Mantid
A base class for domain creators taking 1D data from a spectrum of a matrix workspace.
Interface to PropertyManager.
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.