Mantid
Loading...
Searching...
No Matches
ConvertToEventWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
21class MANTID_ALGORITHMS_DLL ConvertToEventWorkspace final : public API::Algorithm {
22public:
24 const std::string name() const override { return "ConvertToEventWorkspace"; };
26 const std::string summary() const override {
27 return "Converts a Workspace2D from histograms to events in an "
28 "EventWorkspace by converting each bin to an equivalent weighted "
29 "event.";
30 }
31
33 int version() const override { return 1; };
34 const std::vector<std::string> seeAlso() const override { return {"ConvertToMatrixWorkspace"}; }
36 const std::string category() const override { return "Events"; }
37
38private:
40 void init() override;
42 void exec() override;
43};
44
45} // namespace Algorithms
46} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Perform a conversion for a Workspace2D to an equivalent EventWorkspace.
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string name() const override
Algorithm's name for identification.
Helper class which provides the Collimation Length for SANS instruments.