Mantid
Loading...
Searching...
No Matches
CrystalFieldMoment.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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
12
13namespace Mantid {
14namespace CurveFitting {
15namespace Functions {
16
25public:
27 void function1D(double *out, const double *xValues, const size_t nData) const override;
28
29protected:
31 mutable int m_nre;
32};
33
34class MANTID_CURVEFITTING_DLL CrystalFieldMoment : public CrystalFieldPeaksBase, public CrystalFieldMomentBase {
35public:
37 std::string name() const override { return "CrystalFieldMoment"; }
38 const std::string category() const override { return "General"; }
39 void setHamiltonian(const ComplexFortranMatrix &ham, const int nre);
40 void function1D(double *out, const double *xValues, const size_t nData) const override;
41
42private:
44};
45
46class MANTID_CURVEFITTING_DLL CrystalFieldMomentCalculation : public API::ParamFunction, public CrystalFieldMomentBase {
47public:
49 std::string name() const override { return "mt"; }
50 const std::string category() const override { return "General"; }
51 void setHamiltonian(const ComplexFortranMatrix &ham, const int nre);
52};
53
54} // namespace Functions
55} // namespace CurveFitting
56} // namespace Mantid
This is a specialization of IFunction for functions of one real argument.
Definition: IFunction1D.h:43
Implements the part of IFunction interface dealing with parameters.
Definition: ParamFunction.h:33
CrystalFieldMoment is a function that calculates the induced magnetic moment (in bohr magnetons per i...
void function1D(double *out, const double *xValues, const size_t nData) const override
Function you want to fit to.
const std::string category() const override
The categories the Fit function belong to.
std::string name() const override
Returns the function's name.
std::string name() const override
Returns the function's name.
const std::string category() const override
The categories the Fit function belong to.
CrystalFieldPeaks is a function that calculates crystal field peak positions and intensities.
Helper class which provides the Collimation Length for SANS instruments.