Mantid
Loading...
Searching...
No Matches
DiffRotDiscreteCircle.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
13// standard library (N/A)
14
15namespace Mantid {
16namespace CurveFitting {
17namespace Functions {
23/* Class representing the dynamics structure factor of a particle undergoing
24 * discrete jumps on N-sites evenly distributed in a circle. The particle can
25 * only
26 * jump to neighboring sites. This is the most common type of discrete
27 * rotational diffusion in a circle.
28 */
29class MANTID_CURVEFITTING_DLL DiffRotDiscreteCircle : public API::ImmutableCompositeFunction {
30public:
31 std::string name() const override { return "DiffRotDiscreteCircle"; }
32
33 const std::string category() const override { return "QuasiElastic"; }
34
35 virtual int version() const { return 1; }
36
37 void init() override;
38
40 virtual void trickleDownAttribute(const std::string &name);
41
43 virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue);
44
46 void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override;
47
48private:
49 std::shared_ptr<ElasticDiffRotDiscreteCircle> m_elastic;
50
51 std::shared_ptr<InelasticDiffRotDiscreteCircle> m_inelastic;
52};
53
54} // namespace Functions
55} // namespace CurveFitting
56} // namespace Mantid
std::string name
Definition Run.cpp:60
Attribute is a non-fitting parameter.
Definition IFunction.h:285
Immutable composite function is a composite function which members cannot be added or removed after c...
const std::string category() const override
The categories the Fit function belong to.
std::shared_ptr< ElasticDiffRotDiscreteCircle > m_elastic
std::shared_ptr< InelasticDiffRotDiscreteCircle > m_inelastic
std::string name() const override
Returns the function's name.
Helper class which provides the Collimation Length for SANS instruments.