Skip to content
Snippets Groups Projects
ExtractMonitorWorkspace.h 1.29 KiB
Newer Older
// 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
// SPDX - License - Identifier: GPL - 3.0 +
#ifndef MANTID_DATAHANDLING_EXTRACTMONITORWORKSPACE_H_
#define MANTID_DATAHANDLING_EXTRACTMONITORWORKSPACE_H_

#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 {
Nick Draper's avatar
Nick Draper committed
    return {"ExtractMonitors"};
  const std::string category() const override;
  const std::string summary() const override;
  void init() override;
  void exec() override;

} // namespace DataHandling
} // namespace Mantid

#endif /* MANTID_DATAHANDLING_EXTRACTMONITORWORKSPACE_H_ */