Mantid
Loading...
Searching...
No Matches
MDTransfAxisNames.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
9#include "MantidKernel/V3D.h"
10#include "MantidMDAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace MDAlgorithms {
26namespace CnvrtToMD {
28 ModQ_ID, //< the defauld |Q| id for mod Q or powder mode
29 Q1_ID, //< 1 of 3 dimID in Q3D mode
30 Q2_ID, //< 2 of 3 dimID in Q3D mode
31 Q3_ID, //< 3 of 3 dimID in Q3D mode
32 dE_ID, //< energy transfer ID
33 nDefaultID //< ID conunter
34};
35}
36
37class MANTID_MDALGORITHMS_DLL MDTransfAxisNames {
38public:
41 std::vector<std::string> getDefaultDimIDQ3D(Kernel::DeltaEMode::Type dEMode) const;
42 std::vector<std::string> getDefaultDimIDModQ(Kernel::DeltaEMode::Type dEMode) const;
43
44 // constructor
46
47private:
50 std::vector<std::string> m_DefaultDimID;
51};
54std::string DLLExport makeAxisName(const Kernel::V3D &Dir, const std::vector<std::string> &QNames);
56std::string DLLExport sprintfd(const double data, const double eps);
57
58} // namespace MDAlgorithms
59} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition System.h:37
Class for 3D vectors.
Definition V3D.h:34
std::vector< std::string > m_DefaultDimID
the vector describes default dimension names, specified along the axis if no names are explicitly req...
std::string DLLExport sprintfd(const double data, const double eps)
creates string representation of the number with accuracy, cpecified by eps
std::string DLLExport makeAxisName(const Kernel::V3D &Dir, const std::vector< std::string > &QNames)
function to build mslice-like axis name from the vector, which describes crystallographic direction a...
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