Mantid
Loading...
Searching...
No Matches
IsoRotDiff.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// Mantid Coding standars <http://www.mantidproject.org/Coding_Standards>
9// Mantid Headers from the same project
10#include "MantidCurveFitting/DllConfig.h"
13// Mantid headers from other projects
14#include "MantidAPI/IFunction.h"
17// third party library headers (N/A)
18// standard library headers (N/A)
19
20namespace Mantid {
21namespace CurveFitting {
22namespace Functions {
28class MANTID_CURVEFITTING_DLL IsoRotDiff : public API::ImmutableCompositeFunction {
29
30public:
32 std::string name() const override { return "IsoRotDiff"; }
33
35 const std::string category() const override { return "QuasiElastic"; }
36
38 virtual int version() const { return 1; }
39
41 virtual void trickleDownAttribute(const std::string &name);
42
44 virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue);
45
47 void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override;
48
50 void init() override;
51
52private:
53 std::shared_ptr<Mantid::CurveFitting::Functions::ElasticIsoRotDiff>
54 m_elastic; // elastic intensity of the DiffSphere structure factor
55 std::shared_ptr<Mantid::CurveFitting::Functions::InelasticIsoRotDiff>
56 m_inelastic; // inelastic intensity of the DiffSphere structure factor
57};
58
59} // namespace Functions
60} // namespace CurveFitting
61} // 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
overwrite IFunction base class methods
Definition: IsoRotDiff.h:35
std::string name() const override
overwrite IFunction base class methods
Definition: IsoRotDiff.h:32
std::shared_ptr< Mantid::CurveFitting::Functions::InelasticIsoRotDiff > m_inelastic
Definition: IsoRotDiff.h:56
virtual int version() const
overwrite IFunction base class methods
Definition: IsoRotDiff.h:38
std::shared_ptr< Mantid::CurveFitting::Functions::ElasticIsoRotDiff > m_elastic
Definition: IsoRotDiff.h:54
Helper class which provides the Collimation Length for SANS instruments.