/
IsoRotDiff.h
56 lines (45 loc) · 1.96 KB
/
IsoRotDiff.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2007 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/IFunction.h"
#include "MantidAPI/IFunction1D.h"
#include "MantidAPI/ImmutableCompositeFunction.h"
#include "MantidCurveFitting/DllConfig.h"
#include "MantidCurveFitting/Functions/ElasticIsoRotDiff.h"
#include "MantidCurveFitting/Functions/InelasticIsoRotDiff.h"
namespace Mantid {
namespace CurveFitting {
namespace Functions {
/**
@author Jose Borreguero, NScD
@date 25/09/2016
*/
class MANTID_CURVEFITTING_DLL IsoRotDiff : public API::ImmutableCompositeFunction {
public:
/// overwrite IFunction base class methods
std::string name() const override { return "IsoRotDiff"; }
/// overwrite IFunction base class methods
const std::string category() const override { return "QuasiElastic"; }
/// overwrite IFunction base class methods
virtual int version() const { return 1; }
/// Propagate an attribute to member functions
virtual void trickleDownAttribute(const std::string &name);
/// Override parent definition
virtual void declareAttribute(const std::string &name, const API::IFunction::Attribute &defaultValue);
/// Override parent definition
void setAttribute(const std::string &name, const API::IFunction::Attribute &att) override;
/// overwrite IFunction base class method, which declare function parameters
void init() override;
private:
std::shared_ptr<Mantid::CurveFitting::Functions::ElasticIsoRotDiff>
m_elastic; // elastic intensity of the DiffSphere structure factor
std::shared_ptr<Mantid::CurveFitting::Functions::InelasticIsoRotDiff>
m_inelastic; // inelastic intensity of the DiffSphere structure factor
};
} // namespace Functions
} // namespace CurveFitting
} // namespace Mantid