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
29class MANTID_MDALGORITHMS_DLL ConvertToMDParent : public API::BoxControllerSettingsAlgorithm {
30public:
32 const std::string name() const override = 0;
34 int version() const override = 0;
36 const std::string category() const override;
37
38protected:
39 void init() override;
40 //
42 preprocessDetectorsPositions(const Mantid::API::MatrixWorkspace_const_sptr &InWS2D,
43 const std::string &dEModeRequested, bool updateMasks, const std::string &OutWSName);
45 runPreprocessDetectorsToMDChildUpdatingMasks(const Mantid::API::MatrixWorkspace_const_sptr &InWS2D,
46 const std::string &OutWSName, const std::string &dEModeRequested,
48
51
53 std::shared_ptr<MDAlgorithms::ConvToMDBase> m_Convertor;
54
56 template <class T> inline bool isNaN(T val) {
57 volatile T buf = val;
58 return (val != buf);
59 }
60};
61
62} // namespace MDAlgorithms
63} // 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:51
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