Mantid
Loading...
Searching...
No Matches
InelasticDiffRotDiscreteCircle.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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 standards <http://www.mantidproject.org/Coding_Standards>
10// Mantid Headers from the same project
12// Mantid headers from other projects
14// 3rd party library headers (N/A)
15// standard library (N/A)
16
17namespace Mantid {
18namespace CurveFitting {
19namespace Functions {
25/* Class representing the inelastic portion of DiffRotDiscreteCircle
26 * Contains a linear combination of Lorentzians.
27 */
28class MANTID_CURVEFITTING_DLL InelasticDiffRotDiscreteCircle : public FunctionQDepends {
29public:
32
33 std::string name() const override { return "InelasticDiffRotDiscreteCircle"; }
34
35 const std::string category() const override { return "QuasiElastic"; }
36
37 void init() override;
38
39protected:
40 void function1D(double *out, const double *xValues, const size_t nData) const override;
41
42private:
44 void setWorkspace(std::shared_ptr<const API::Workspace> ws) override;
45
46 const double m_hbar; // Plank constant, in meV*ps (or ueV*ns)
47
48 std::vector<double> m_qValueCache; // List of calculated Q values
49};
50
51} // namespace Functions
52} // namespace CurveFitting
53} // namespace Mantid
This is a specialization of IFunction1D for functions having the magnitude of the momentum transfer (...
const std::string category() const override
The categories the Fit function belong to.
std::string name() const override
Returns the function's name.
Helper class which provides the Collimation Length for SANS instruments.