-
Notifications
You must be signed in to change notification settings - Fork 122
/
SqwModel.h
59 lines (53 loc) · 2.11 KB
/
SqwModel.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2022 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 "Common/IndirectDataValidationHelper.h"
#include "DllConfig.h"
#include "MantidGeometry/IComponent.h"
#include "MantidQtWidgets/Common/BatchAlgorithmRunner.h"
#include "MantidQtWidgets/Common/QtPropertyBrowser/QtTreePropertyBrowser"
#include <typeinfo>
using namespace Mantid::API;
namespace MantidQt {
namespace CustomInterfaces {
class MANTIDQT_INELASTIC_DLL SqwModel {
public:
SqwModel();
~SqwModel() = default;
void setupRebinAlgorithm(MantidQt::API::BatchAlgorithmRunner *batchAlgoRunner);
void setupSofQWAlgorithm(MantidQt::API::BatchAlgorithmRunner *batchAlgoRunner);
void setupAddSampleLogAlgorithm(MantidQt::API::BatchAlgorithmRunner *batchAlgoRunner);
void setInputWorkspace(const std::string &workspace);
void setQMin(double qMin);
void setQWidth(double qWidth);
void setQMax(double qMax);
void setEMin(double eMin);
void setEWidth(double eWidth);
void setEMax(double eMax);
void setEFixed(const double eFixed);
void setRebinInEnergy(bool scale);
std::string getEFixedFromInstrument(std::string const &instrumentName, std::string analyser,
std::string const &reflection);
std::string getOutputWorkspace();
MatrixWorkspace_sptr getRqwWorkspace();
UserInputValidator validate(std::tuple<double, double> const qRange, std::tuple<double, double> const eRange);
MatrixWorkspace_sptr loadInstrumentWorkspace(const std::string &instrumentName, const std::string &analyser,
const std::string &reflection);
private:
std::string m_inputWorkspace;
std::string m_baseName;
double m_eFixed;
double m_qLow;
double m_qWidth;
double m_qHigh;
double m_eLow;
double m_eWidth;
double m_eHigh;
bool m_rebinInEnergy;
};
} // namespace CustomInterfaces
} // namespace MantidQt