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 void buildTargetFunction() const override;
25
26protected:
27 std::string writeToString(const std::string &parentLocalAttributesStr = "") const override;
28 void updateTargetFunction() const override;
29
30private:
32 mutable size_t m_nPeaks;
33};
34
35} // namespace Functions
36} // namespace CurveFitting
37} // 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.
size_t m_nPeaks
Number of fitted peaks in the spectrum.
Helper class which provides the Collimation Length for SANS instruments.