// Mantid Repository : https://github.com/mantidproject/mantid // // Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI, // NScD Oak Ridge National Laboratory, European Spallation Source, // Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS // SPDX - License - Identifier: GPL - 3.0 + #pragma once #include "MantidAPI/Algorithm.h" #include "MantidKernel/System.h" namespace Mantid { namespace DataHandling { /** Looks for an internally-stored monitor workspace on the input workspace and sets it as the output workspace if found. The input workspace will no longer hold a reference to the monitor workspace after running this algorithm. If no monitor workspace is present the algorithm will fail. */ class DLLExport ExtractMonitorWorkspace : public API::Algorithm { public: const std::string name() const override; int version() const override; const std::vector<std::string> seeAlso() const override { return {"ExtractMonitors"}; } const std::string category() const override; const std::string summary() const override; private: void init() override; void exec() override; }; } // namespace DataHandling } // namespace Mantid