-
Notifications
You must be signed in to change notification settings - Fork 122
/
SymmetriseModel.h
47 lines (40 loc) · 1.51 KB
/
SymmetriseModel.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
// 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 "MantidQtWidgets/Common/BatchAlgorithmRunner.h"
#include "MantidQtWidgets/Common/QtPropertyBrowser/QtTreePropertyBrowser"
#include <typeinfo>
using namespace Mantid::API;
namespace MantidQt {
namespace CustomInterfaces {
class MANTIDQT_INELASTIC_DLL SymmetriseModel {
public:
SymmetriseModel();
~SymmetriseModel() = default;
void setupPreviewAlgorithm(MantidQt::API::BatchAlgorithmRunner *batchAlgoRunner,
std::vector<long> const &spectraRange);
std::string setupSymmetriseAlgorithm(MantidQt::API::BatchAlgorithmRunner *batchAlgoRunner);
void reflectNegativeToPositive();
void setWorkspaceName(std::string const &workspaceName);
void setEMin(double value);
void setEMax(double value);
void setIsPositiveReflect(bool value);
bool getIsPositiveReflect() const;
private:
std::string m_inputWorkspace;
std::string m_reflectedInputWorkspace;
std::string m_negativeOutputWorkspace;
std::string m_positiveOutputWorkspace;
double m_eMin;
double m_eMax;
bool m_isPositiveReflect;
std::vector<long> m_spectraRange;
};
} // namespace CustomInterfaces
} // namespace MantidQt