Mantid
Loading...
Searching...
No Matches
CrystalFieldSpectrum.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
10#include "MantidCurveFitting/DllConfig.h"
11
12namespace Mantid {
13namespace CurveFitting {
14namespace Functions {
18class MANTID_CURVEFITTING_DLL CrystalFieldSpectrum : public API::FunctionGenerator {
19public:
21
22 void init() override;
23 std::string name() const override { return "CrystalFieldSpectrum"; }
24 const std::string category() const override { return "General"; }
25 void buildTargetFunction() const override;
26
27protected:
28 std::string writeToString(const std::string &parentLocalAttributesStr = "") const override;
29 void updateTargetFunction() const override;
30
31private:
33 mutable size_t m_nPeaks;
34};
35
36} // namespace Functions
37} // namespace CurveFitting
38} // namespace Mantid
FunctionGenerator is a partial implementation of IFunction that defines a function consisting of two ...
std::string name() const override
Returns the function's name.
const std::string category() const override
The categories the Fit function belong to.
size_t m_nPeaks
Number of fitted peaks in the spectrum.
Helper class which provides the Collimation Length for SANS instruments.