Mantid
Loading...
Searching...
No Matches
MDTypes.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
16#include <limits>
17
18namespace Mantid {
19
27using coord_t = float;
28
30//#undef COORDT_IS_FLOAT
31#define COORDT_IS_FLOAT
32
36using signal_t = double;
37
51#define TMDE(decl) template <typename MDE, size_t nd> decl<MDE, nd>
52
58#define TMDE_CLASS template <typename MDE, size_t nd>
59
60#define UNDEF_SIZET std::numeric_limits<size_t>::max()
61#define UNDEF_COORDT std::numeric_limits<coord_t>::quiet_NaN()
62#define UNDEF_UINT64 std::numeric_limits<uint64_t>::max()
63} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...
Definition: MDTypes.h:27
double signal_t
Typedef for the signal recorded in a MDBox, etc.
Definition: MDTypes.h:36