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; }
50 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
56 const std::vector<int> unwrapX(std::vector<double> &newX,
const int &spectrum,
const double &Ld);
57 std::pair<int, int> handleFrameOverlapped(
const Mantid::HistogramData::HistogramX &xdata,
const double &Ld,
58 std::vector<double> &tempX);
60 std::vector<double> &newY, std::vector<double> &newE);
62 const size_t &numBins);
72 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...
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(std::span< double const > xold, std::span< double const > yold, std::span< double const > eold, std::span< double const > xnew, std::span< double > ynew, std::span< double > enew, bool distribution, bool addition=false)
The input and output ranges are taken as spans so that the size-checked histogram data types,...
Helper class which provides the Collimation Length for SANS instruments.