Mantid
Loading...
Searching...
No Matches
EqualBinSizesValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidAPI/DllConfig.h"
11
12namespace Mantid {
13namespace API {
14
18class MANTID_API_DLL EqualBinSizesValidator : public MatrixWorkspaceValidator {
19public:
21 EqualBinSizesValidator(const double errorLevel);
23 std::string getType() const { return "equalbinsizes"; }
25 Kernel::IValidator_sptr clone() const override;
26
27private:
29 std::string checkValidity(const MatrixWorkspace_sptr &value) const override;
31 const double m_errorLevel;
32};
33
34} // namespace API
35} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
EqualBinSizesValidator : Checks that all bins in a workspace are equally sized to within a given tole...
const double m_errorLevel
Error threshold.
std::string getType() const
Gets the type of the validator.
An interface for those validators that require the MatrixWorkspace interface.
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.
Definition: IValidator.h:26
Helper class which provides the Collimation Length for SANS instruments.