31 auto blockSize = ws->histogram(0).size();
37 return "The workspace must contain single counts for all spectra";
42 return "The workspace must not contain single counts";
An interface for those validators that require the MatrixWorkspace interface.
Kernel::IValidator_sptr clone() const override
Clone the current state.
const bool m_mustBeSingleCount
A flag indicating whether this validator requires that the workspace be contain only single counts or...
SingleCountValidator(const bool &mustBeSingleCounts=true)
Constructor.
std::string checkValidity(const MatrixWorkspace_sptr &ws) const override
Check for validity.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.