13#include "MantidAlgorithms/DllConfig.h"
38 const std::string
name()
const override {
return "UnwrapSNS"; }
40 const std::string
summary()
const override {
41 return "Takes an input workspace that contains 'raw' data, unwraps the "
42 "data according to the reference flightpath provided and converts "
43 "the units to wavelength. The output workspace will have common "
44 "bins in the maximum theoretical wavelength range.";
47 int version()
const override {
return 1; }
49 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
55 void runMaskDetectors();
57 int unwrapX(
const Mantid::HistogramData::HistogramX &, std::vector<double> &dataout,
const double &Ld);
58 void getTofRangeData(
const bool);
Base class from which all concrete algorithm classes should be derived.
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.