Mantid
Loading...
Searching...
No Matches
ResetNegatives.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
10#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
14
19class MANTID_ALGORITHMS_DLL ResetNegatives final : public API::Algorithm {
20public:
21 const std::string name() const override;
23 const std::string summary() const override { return "Reset negative values to something else."; }
24
25 int version() const override;
26 const std::string category() const override;
27
28private:
29 void init() override;
30 void exec() override;
31 void pushMinimum(const API::MatrixWorkspace_const_sptr &minWS, const API::MatrixWorkspace_sptr &wksp,
32 API::Progress &prog);
33 void changeNegatives(const API::MatrixWorkspace_const_sptr &minWS, const double spectrumNegativeValues,
34 const API::MatrixWorkspace_sptr &wksp, API::Progress &prog);
35};
36
37} // namespace Algorithms
38} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Helper class for reporting progress from algorithms.
Definition: Progress.h:25
ResetNegatives : Reset negative values to something else.
const std::string summary() const override
Summary of algorithms purpose.
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
Helper class which provides the Collimation Length for SANS instruments.