10#include "MantidAlgorithms/DllConfig.h"
11#include "MantidHistogramData/HistogramX.h"
37 const std::string
name()
const override {
return "UnwrapMonitor"; }
39 const std::string
summary()
const override {
40 return "Takes an input workspace that contains 'raw' data, unwraps the "
42 "according to the reference flightpath provided and converts the "
43 "units to wavelength."
44 "The output workspace will have common bins in the maximum "
45 "theoretical wavelength range.";
48 int version()
const override {
return 1; }
49 const std::vector<std::string>
seeAlso()
const override {
return {
"UnwrapMonitorsInTOF",
"UnwrapSNS"}; }
51 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
57 const std::vector<int> unwrapX(std::vector<double> &newX,
const int &spectrum,
const double &Ld);
58 std::pair<int, int> handleFrameOverlapped(
const Mantid::HistogramData::HistogramX &xdata,
const double &Ld,
59 std::vector<double> &tempX);
61 std::vector<double> &newY, std::vector<double> &newE);
63 const size_t &numBins);
73 std::unique_ptr<API::Progress> m_progress =
nullptr;
IPeaksWorkspace_sptr workspace
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...
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
API::MatrixWorkspace_const_sptr m_inputWS
to wavelength
double m_LRef
The 'reference' flightpath.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
double m_Tmin
The start of the time-of-flight frame.
size_t m_XSize
The size of the X vectors in the input workspace.
double m_Tmax
The end of the time-of-flight frame.
const std::string summary() const override
Summary of algorithms purpose.
~UnwrapMonitor() override=default
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
double m_conversionConstant
The constant used in the conversion from TOF.
int version() const override
Algorithm's version for identification overriding a virtual method.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
void MANTID_KERNEL_DLL rebin(const std::vector< double > &xold, const std::vector< double > &yold, const std::vector< double > &eold, const std::vector< double > &xnew, std::vector< double > &ynew, std::vector< double > &enew, bool distribution, bool addition=false)
Rebins data according to a new output X array.
Helper class which provides the Collimation Length for SANS instruments.