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
8//#include "MantidDataObjects/MDTransfDEHelper.h"
10#include "MantidKernel/V3D.h"
11#include "MantidMDAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace MDAlgorithms {
27namespace CnvrtToMD {
29 ModQ_ID, //< the defauld |Q| id for mod Q or powder mode
30 Q1_ID, //< 1 of 3 dimID in Q3D mode
31 Q2_ID, //< 2 of 3 dimID in Q3D mode
32 Q3_ID, //< 3 of 3 dimID in Q3D mode
33 dE_ID, //< energy transfer ID
34 nDefaultID //< ID conunter
35};
36}
37
38class MANTID_MDALGORITHMS_DLL MDTransfAxisNames {
39public:
42 std::vector<std::string> getDefaultDimIDQ3D(Kernel::DeltaEMode::Type dEMode) const;
43 std::vector<std::string> getDefaultDimIDModQ(Kernel::DeltaEMode::Type dEMode) const;
44
45 // constructor
47
48private:
51 std::vector<std::string> m_DefaultDimID;
52};
55std::string DLLExport makeAxisName(const Kernel::V3D &Dir, const std::vector<std::string> &QNames);
57std::string DLLExport sprintfd(const double data, const double eps);
58
59} // namespace MDAlgorithms
60} // namespace Mantid
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
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