Mantid
Loading...
Searching...
No Matches
DeltaEMode.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
9#include "MantidKernel/DllConfig.h"
10#include <string>
11#include <vector>
12
13namespace Mantid {
14namespace Kernel {
23struct MANTID_KERNEL_DLL DeltaEMode {
29 enum Type {
30 Elastic = 0,
31 Direct = 1,
32 Indirect = 2,
33 Undefined //< The type for the situations, where instrument can not be
34 // reasonably defined (e.g. ws with detector information lost)
37 };
39 static std::string asString(const Type mode);
41 static Type fromString(const std::string &modeStr);
43 static const std::vector<std::string> availableTypes();
44};
45} // namespace Kernel
46} // namespace Mantid
Helper class which provides the Collimation Length for SANS instruments.
Defines the possible energy transfer modes:
Definition: DeltaEMode.h:23
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...
Definition: DeltaEMode.h:29