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
11
12namespace Mantid {
13namespace CurveFitting {
14namespace Functions {
20/* Class representing the inelastic portion of DiffRotDiscreteCircle
21 * Contains a linear combination of Lorentzians.
22 */
23class MANTID_CURVEFITTING_DLL InelasticDiffRotDiscreteCircle : public FunctionQDepends {
24public:
27
28 std::string name() const override { return "InelasticDiffRotDiscreteCircle"; }
29
30 const std::string category() const override { return "QuasiElastic"; }
31
32 void init() override;
33
34protected:
35 void function1D(double *out, const double *xValues, const size_t nData) const override;
36
37private:
39 void setWorkspace(std::shared_ptr<const API::Workspace> ws) override;
40
41 const double m_hbar; // Plank constant, in meV*ps (or ueV*ns)
42
43 std::vector<double> m_qValueCache; // List of calculated Q values
44};
45
46} // namespace Functions
47} // namespace CurveFitting
48} // 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.