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
9// Mantid Coding standars <http://www.mantidproject.org/Coding_Standards>
10// Mantid Headers from the same project
13// Mantid headers from other projects
14#include "MantidAPI/IFunction.h"
16// 3rd party library headers (N/A)
17// standard library (N/A)
18
19namespace Mantid {
20namespace CurveFitting {
21namespace Functions {
27/* Class representing the dynamics structure factor of a particle undergoing
28 * discrete jumps on N-sites evenly distributed in a circle. The particle can
29 * only
30 * jump to neighboring sites. This is the most common type of discrete
31 * rotational diffusion in a circle.
32 */
33class MANTID_CURVEFITTING_DLL DiffRotDiscreteCircle : public API::ImmutableCompositeFunction {
34public:
35 std::string name() const override { return "DiffRotDiscreteCircle"; }
36
37 const std::string category() const override { return "QuasiElastic"; }
38
39 virtual int version() const { return 1; }
40
41 void init() override;
42
44 virtual void trickleDownAttribute(const std::string &name);
45
47 virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue);
48
50 void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override;
51
52private:
53 std::shared_ptr<ElasticDiffRotDiscreteCircle> m_elastic;
54
55 std::shared_ptr<InelasticDiffRotDiscreteCircle> m_inelastic;
56};
57
58} // namespace Functions
59} // namespace CurveFitting
60} // namespace Mantid
Attribute is a non-fitting parameter.
Definition: IFunction.h:282
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.