14#include "MantidAlgorithms/DllConfig.h"
39 const std::string
name()
const override {
return "UnwrapSNS"; }
41 const std::string
summary()
const override {
42 return "Takes an input workspace that contains 'raw' data, unwraps the "
43 "data according to the reference flightpath provided and converts "
44 "the units to wavelength. The output workspace will have common "
45 "bins in the maximum theoretical wavelength range.";
48 int version()
const override {
return 1; }
50 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
56 void runMaskDetectors();
58 int unwrapX(
const Mantid::HistogramData::HistogramX &, std::vector<double> &dataout,
const double &Ld);
59 void getTofRangeData(
const bool);
Base class from which all concrete algorithm classes should be derived.
Class for marking algorithms as deprecated.
Takes an input Workspace2D that contains 'raw' data, unwraps the data according to the reference flig...
double m_conversionConstant
The constant used in the conversion from TOF.
double m_Tmin
The start of the time-of-flight frame.
double m_Tmax
The end of the time-of-flight frame.
double m_frameWidth
The width of the frame cached to speed up things.
double m_LRef
The 'reference' flightpath.
DataObjects::EventWorkspace_const_sptr m_inputEvWS
Pointer to the input event workspace.
API::MatrixWorkspace_const_sptr m_inputWS
to wavelength
int m_XSize
The size of the X vectors in the input workspace.
std::unique_ptr< API::Progress > m_progress
Progress reporting.
~UnwrapSNS() override=default
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
const std::string category() const override
function to return a category of the algorithm.
int m_numberOfSpectra
The number of spectra in the workspace.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< const EventWorkspace > EventWorkspace_const_sptr
shared pointer to a const Workspace2D
Helper class which provides the Collimation Length for SANS instruments.