10#include "MantidAlgorithms/DllConfig.h"
14namespace HistogramData {
51 const std::string
name()
const override {
return "RemoveBins"; }
53 const std::string
summary()
const override {
return "Used to remove data from a range of bins in a workspace."; }
56 int version()
const override {
return 1; }
57 const std::vector<std::string>
seeAlso()
const override {
return {
"CropWorkspace"}; }
59 const std::string
category()
const override {
return "Transforms\\Splitting"; }
64 std::map<std::string, std::string> validateInputs()
override;
67 void crop(
const double &start,
const double &end);
68 void transformRangeUnit(
const int index,
double &startX,
double &endX);
69 int findIndex(
const double &
value,
const HistogramData::HistogramX &vec);
70 void RemoveFromEnds(
int start,
int end, HistogramData::HistogramY &Y, HistogramData::HistogramE &E);
71 void RemoveFromMiddle(
const int &start,
const int &end,
const double &startFrac,
const double &endFrac,
72 HistogramData::HistogramY &Y, HistogramData::HistogramE &E);
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Removes bins from a workspace.
double m_endX
The range end point.
double m_startX
The range start point.
const std::string summary() const override
Summary of algorithms purpose.
Kernel::Unit_sptr m_rangeUnit
The unit in which the above range is given.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
API::MatrixWorkspace_const_sptr m_inputWorkspace
The input workspace.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
bool m_interpolate
Whether removed bins should be interpolated.
const API::SpectrumInfo * m_spectrumInfo
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< Unit > Unit_sptr
Shared pointer to the Unit base class.
Helper class which provides the Collimation Length for SANS instruments.