-
Notifications
You must be signed in to change notification settings - Fork 122
/
CrystalFieldSpectrum.h
38 lines (32 loc) · 1.14 KB
/
CrystalFieldSpectrum.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
// 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/FunctionGenerator.h"
#include "MantidCurveFitting/DllConfig.h"
namespace Mantid {
namespace CurveFitting {
namespace Functions {
/**
Calculates crystal field spectrum.
*/
class MANTID_CURVEFITTING_DLL CrystalFieldSpectrum : public API::FunctionGenerator {
public:
CrystalFieldSpectrum();
void init() override;
std::string name() const override { return "CrystalFieldSpectrum"; }
const std::string category() const override { return "General"; }
void buildTargetFunction() const override;
protected:
std::string writeToString(const std::string &parentLocalAttributesStr = "") const override;
void updateTargetFunction() const override;
private:
/// Number of fitted peaks in the spectrum.
mutable size_t m_nPeaks;
};
} // namespace Functions
} // namespace CurveFitting
} // namespace Mantid