/
FindEPP.h
39 lines (33 loc) · 1.14 KB
/
FindEPP.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
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2017 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/Algorithm.h"
#include "MantidAPI/ITableWorkspace.h"
#include "MantidAPI/MatrixWorkspace.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace Algorithms {
/** Performs Gaussian fits over each spectrum to find the Elastic Peak
Position (EPP).
*/
class MANTID_ALGORITHMS_DLL FindEPP final : public API::Algorithm {
public:
const std::string name() const override;
int version() const override;
const std::string category() const override;
const std::string summary() const override;
private:
void init() override;
void exec() override;
void fitGaussian(int64_t);
void initWorkspace();
Mantid::API::MatrixWorkspace_sptr m_inWS;
Mantid::API::ITableWorkspace_sptr m_outWS;
std::unique_ptr<Mantid::API::Progress> m_progress;
};
} // namespace Algorithms
} // namespace Mantid