Mantid
Loading...
Searching...
No Matches
DiffSphere.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
16// third party library headers (N/A)
17// standard library headers (N/A)
18
19namespace Mantid {
20namespace CurveFitting {
21namespace Functions {
27class MANTID_CURVEFITTING_DLL DiffSphere : public API::ImmutableCompositeFunction {
28
29public:
31 std::string name() const override { return "DiffSphere"; }
32
34 const std::string category() const override { return "QuasiElastic"; }
35
37 virtual int version() const { return 1; }
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
49 void init() override;
50
51private:
52 std::shared_ptr<Mantid::CurveFitting::Functions::ElasticDiffSphere>
53 m_elastic; // elastic intensity of the DiffSphere structure factor
54 std::shared_ptr<Mantid::CurveFitting::Functions::InelasticDiffSphere>
55 m_inelastic; // inelastic intensity of the DiffSphere structure factor
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...
std::shared_ptr< Mantid::CurveFitting::Functions::ElasticDiffSphere > m_elastic
Definition: DiffSphere.h:53
std::string name() const override
overwrite IFunction base class methods
Definition: DiffSphere.h:31
virtual int version() const
overwrite IFunction base class methods
Definition: DiffSphere.h:37
std::shared_ptr< Mantid::CurveFitting::Functions::InelasticDiffSphere > m_inelastic
Definition: DiffSphere.h:55
const std::string category() const override
overwrite IFunction base class methods
Definition: DiffSphere.h:34
Helper class which provides the Collimation Length for SANS instruments.