Mantid
|
A validator which provides a TENTATIVE check that a workspace contains common bins in each spectrum. More...
#include <CommonBinsValidator.h>
Public Member Functions | |
Kernel::IValidator_sptr | clone () const override |
Clone the current state. More... | |
std::string | getType () const |
Gets the type of the validator. More... | |
Private Member Functions | |
std::string | checkValidity (const MatrixWorkspace_sptr &value) const override |
Check for validity. More... | |
A validator which provides a TENTATIVE check that a workspace contains common bins in each spectrum.
For efficiency reasons, it only checks that the first and last spectra have common bins, so it is important to carry out a full check within the algorithm itself.
Definition at line 21 of file CommonBinsValidator.h.
|
overrideprivate |
Check for validity.
Checks that the bin boundaries of each histogram in the workspace are the same.
value | :: The workspace to test |
Definition at line 20 of file CommonBinsValidator.cpp.
References value.
|
override |
Clone the current state.
Definition at line 13 of file CommonBinsValidator.cpp.
Referenced by Mantid::MDAlgorithms::IntegratePeaksMDHKL::init(), Mantid::MDAlgorithms::MDNorm::init(), and Mantid::MDAlgorithms::MDNormSCD::init().
|
inline |
Gets the type of the validator.
Definition at line 24 of file CommonBinsValidator.h.