Mantid
Loading...
Searching...
No Matches
FunctionQDepends.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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
9// Mantid Coding standars <http://www.mantidproject.org/Coding_Standards>
10
11// Mantid Headers from the same project
12#include "MantidAPI/IFunction.h"
15#include "MantidCurveFitting/DllConfig.h"
16// Mantid headers from other projects
17// N/A
18// 3rd party library headers
19// N/A
20// Standard library
21// N/A
22
23namespace Mantid {
24namespace CurveFitting {
25namespace Functions {
26
39class MANTID_CURVEFITTING_DLL FunctionQDepends : virtual public Mantid::API::IFunction1D,
40 virtual public Mantid::API::ParamFunction {
41
42public:
43 /* -------------------
44 Overridden methods
45 -------------------*/
46 virtual void declareAttributes() override;
47 virtual void setAttribute(const std::string &attName, const Mantid::API::IFunction::Attribute &attValue) override;
48 void setMatrixWorkspace(std::shared_ptr<const Mantid::API::MatrixWorkspace> workspace, size_t wi, double startX,
49 double endX) override;
50
51private:
52 std::vector<double> extractQValues(const Mantid::API::MatrixWorkspace &workspace);
53 // list of Q values associated to the spectra
54 std::vector<double> m_vQ;
55
56}; // end of class FunctionQDepends
57
58} // namespace Functions
59} // namespace CurveFitting
60} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Attribute is a non-fitting parameter.
Definition: IFunction.h:282
Base MatrixWorkspace Abstract Class.
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
This is a specialization of IFunction1D for functions having the magnitude of the momentum transfer (...
Helper class which provides the Collimation Length for SANS instruments.