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
13
14namespace Mantid {
15namespace CurveFitting {
16namespace Functions {
22class MANTID_CURVEFITTING_DLL DiffSphere : public API::ImmutableCompositeFunction {
23
24public:
26 std::string name() const override { return "DiffSphere"; }
27
29 const std::string category() const override { return "QuasiElastic"; }
30
32 virtual int version() const { return 1; }
33
35 virtual void trickleDownAttribute(const std::string &name);
36
38 virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue);
39
41 void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override;
42
44 void init() override;
45
46private:
47 std::shared_ptr<Mantid::CurveFitting::Functions::ElasticDiffSphere>
48 m_elastic; // elastic intensity of the DiffSphere structure factor
49 std::shared_ptr<Mantid::CurveFitting::Functions::InelasticDiffSphere>
50 m_inelastic; // inelastic intensity of the DiffSphere structure factor
51};
52
53} // namespace Functions
54} // namespace CurveFitting
55} // 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...
std::shared_ptr< Mantid::CurveFitting::Functions::ElasticDiffSphere > m_elastic
Definition DiffSphere.h:48
std::string name() const override
overwrite IFunction base class methods
Definition DiffSphere.h:26
virtual int version() const
overwrite IFunction base class methods
Definition DiffSphere.h:32
std::shared_ptr< Mantid::CurveFitting::Functions::InelasticDiffSphere > m_inelastic
Definition DiffSphere.h:50
const std::string category() const override
overwrite IFunction base class methods
Definition DiffSphere.h:29
Helper class which provides the Collimation Length for SANS instruments.