Mantid
Loading...
Searching...
No Matches
Framework
Algorithms
inc
MantidAlgorithms
ConvertAxesToRealSpace.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2014 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 "
MantidAPI/Algorithm.h
"
10
#include "MantidAlgorithms/DllConfig.h"
11
#include "
MantidKernel/cow_ptr.h
"
12
13
#include <map>
14
15
namespace
Mantid
{
16
17
namespace
Algorithms {
18
22
class
MANTID_ALGORITHMS_DLL
ConvertAxesToRealSpace
final :
public
API::Algorithm
{
23
public
:
24
const
std::string
name
()
const override
;
25
int
version()
const override
;
26
const
std::vector<std::string>
seeAlso
()
const override
{
return
{
"ConvertSpectrumAxis"
,
"ConvertUnits"
}; }
27
const
std::string category()
const override
;
28
const
std::string summary()
const override
;
29
30
private
:
31
void
init()
override
;
32
void
exec()
override
;
33
35
struct
SpectraData
{
36
double
verticalValue
;
37
double
horizontalValue
;
38
double
intensity
;
39
double
error
;
40
int
verticalIndex
;
41
int
horizontalIndex
;
42
};
43
45
struct
AxisData
{
46
std::string
label
;
47
double
min
;
48
double
max
;
49
int
bins
;
50
};
51
52
// map to store unit captions and measures
53
std::map<std::string, std::string>
m_unitMap
;
54
55
void
fillAxisValues(MantidVec &vector,
const
AxisData
&axisData,
bool
isHistogram);
56
void
fillUnitMap(std::vector<std::string> &orderedVector, std::map<std::string, std::string> &unitMap,
57
const
std::string &caption,
const
std::string &unit);
58
};
59
60
}
// namespace Algorithms
61
}
// namespace Mantid
name
std::string name
Definition
Run.cpp:60
Algorithm.h
Mantid::API::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition
Algorithm.h:76
Mantid::Algorithms::ConvertAxesToRealSpace
ConvertAxesToRealSpace : Converts the spectrum and TOF axes to real space values, integrating the dat...
Definition
ConvertAxesToRealSpace.h:22
Mantid::Algorithms::ConvertAxesToRealSpace::m_unitMap
std::map< std::string, std::string > m_unitMap
Definition
ConvertAxesToRealSpace.h:53
Mantid::Algorithms::ConvertAxesToRealSpace::seeAlso
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition
ConvertAxesToRealSpace.h:26
cow_ptr.h
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Mantid::Algorithms::ConvertAxesToRealSpace::AxisData
summary data about an Axis
Definition
ConvertAxesToRealSpace.h:45
Mantid::Algorithms::ConvertAxesToRealSpace::AxisData::label
std::string label
Definition
ConvertAxesToRealSpace.h:46
Mantid::Algorithms::ConvertAxesToRealSpace::AxisData::bins
int bins
Definition
ConvertAxesToRealSpace.h:49
Mantid::Algorithms::ConvertAxesToRealSpace::AxisData::max
double max
Definition
ConvertAxesToRealSpace.h:48
Mantid::Algorithms::ConvertAxesToRealSpace::AxisData::min
double min
Definition
ConvertAxesToRealSpace.h:47
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData
Local cache data about a spectra.
Definition
ConvertAxesToRealSpace.h:35
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::verticalValue
double verticalValue
Definition
ConvertAxesToRealSpace.h:36
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::horizontalIndex
int horizontalIndex
Definition
ConvertAxesToRealSpace.h:41
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::verticalIndex
int verticalIndex
Definition
ConvertAxesToRealSpace.h:40
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::intensity
double intensity
Definition
ConvertAxesToRealSpace.h:38
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::error
double error
Definition
ConvertAxesToRealSpace.h:39
Mantid::Algorithms::ConvertAxesToRealSpace::SpectraData::horizontalValue
double horizontalValue
Definition
ConvertAxesToRealSpace.h:37
Generated by
1.9.8