10#include "MantidAlgorithms/DllConfig.h"
39 const std::string
name()
const override {
return "ConvertSpectrumAxis"; }
41 const std::string
summary()
const override {
42 return "Converts the axis of a Workspace2D which normally holds spectrum "
43 "numbers to one of Q, Q^2 or theta. 'Note': After running this "
44 "algorithm, some features will be unavailable on the workspace as "
45 "it will have lost all connection to the instrument. This includes "
46 "things like the 3D Instrument Display.";
50 int version()
const override {
return (2); }
51 const std::vector<std::string>
seeAlso()
const override {
return {
"ConvertAxesToRealSpace",
"ConvertUnits"}; }
53 const std::string
category()
const override {
return "Transforms\\Units;Transforms\\Axes"; }
82 void emplaceIndexMap(
double value,
size_t wsIndex);
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
Base MatrixWorkspace Abstract Class.
Helper class for reporting progress from algorithms.
Converts the representation of the vertical axis (the one up the side of a matrix in MantidPlot) of a...
std::vector< double > m_axis
Vector of axis in case ordering is not asked.
int version() const override
Algorithm's version.
bool m_toOrder
Flag whether ordering is needed.
const std::string category() const override
Algorithm's category for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
std::multimap< double, size_t > m_indexMap
Map to which the conversion to the unit is stored.
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.