Mantid
Loading...
Searching...
No Matches
ConvertToMDParent.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 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
12
14
15namespace Mantid {
16namespace MDAlgorithms {
17
31class MANTID_MDALGORITHMS_DLL ConvertToMDParent : public API::BoxControllerSettingsAlgorithm {
32public:
34 const std::string name() const override = 0;
36 int version() const override = 0;
38 const std::string category() const override;
39
40protected:
41 void init() override;
42 //
44 preprocessDetectorsPositions(const Mantid::API::MatrixWorkspace_const_sptr &InWS2D,
45 const std::string &dEModeRequested, bool updateMasks, const std::string &OutWSName);
47 runPreprocessDetectorsToMDChildUpdatingMasks(const Mantid::API::MatrixWorkspace_const_sptr &InWS2D,
48 const std::string &OutWSName, const std::string &dEModeRequested,
50
53
55 std::shared_ptr<MDAlgorithms::ConvToMDBase> m_Convertor;
56
58 template <class T> inline bool isNaN(T val) {
59 volatile T buf = val;
60 return (val != buf);
61 }
62};
63
64} // namespace MDAlgorithms
65} // namespace Mantid
An abstract algorithm sub-class for algorithms that define properties for BoxController settings.
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition: Logger.h:52
ConvertToMDParent : Main part of two algorithms which use ConvertToMD factory to transform points fro...
bool isNaN(T val)
Template to check if a variable equal to NaN.
std::shared_ptr< MDAlgorithms::ConvToMDBase > m_Convertor
pointer to the class, which does the particular conversion
const std::string name() const override=0
Algorithm's name for identification.
int version() const override=0
Algorithm's version for identification.
static Mantid::Kernel::Logger & g_Log
logger -> to provide logging, for MD dataset file operations
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
std::shared_ptr< const TableWorkspace > TableWorkspace_const_sptr
shared pointer to Mantid::DataObjects::TableWorkspace (const version)
Helper class which provides the Collimation Length for SANS instruments.
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...
Definition: DeltaEMode.h:29