Mantid
Loading...
Searching...
No Matches
SetSpecialCoordinates.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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
11#include "MantidCrystal/DllConfig.h"
12#include <string>
13#include <vector>
14
15namespace Mantid {
16namespace Crystal {
17
24class MANTID_CRYSTAL_DLL SetSpecialCoordinates final : public API::Algorithm {
25public:
27
28 const std::string name() const override;
30 const std::string summary() const override { return "Set or overwrite any Q3D special coordinates."; }
31
32 int version() const override;
33 const std::vector<std::string> seeAlso() const override { return {"ConvertToMD", "ConvertToDiffractionMDWorkspace"}; }
34 const std::string category() const override;
35
36private:
37 void init() override;
38 void exec() override;
39 std::vector<std::string> m_specialCoordinatesNames;
40 using SpecialCoordinatesNameMap = std::map<std::string, Mantid::Kernel::SpecialCoordinateSystem>;
42 static const std::string QLabOption();
43 static const std::string QSampleOption();
44 static const std::string HKLOption();
45 bool writeCoordinatesToMDEventWorkspace(const Mantid::API::Workspace_sptr &inWS,
47 bool writeCoordinatesToMDHistoWorkspace(const Mantid::API::Workspace_sptr &inWS,
49 bool writeCoordinatesToPeaksWorkspace(const Mantid::API::Workspace_sptr &inWS,
51};
52
53} // namespace Crystal
54} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
SpecialCoordinatesNameMap m_specialCoordinatesMap
std::vector< std::string > m_specialCoordinatesNames
std::map< std::string, Mantid::Kernel::SpecialCoordinateSystem > SpecialCoordinatesNameMap
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition: Workspace_fwd.h:20
SpecialCoordinateSystem
Special coordinate systems for Q3D.
Helper class which provides the Collimation Length for SANS instruments.