Mantid
Loading...
Searching...
No Matches
ExtractSingleSpectrum.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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 {
28class MANTID_ALGORITHMS_DLL ExtractSingleSpectrum : public API::DistributedAlgorithm {
29public:
31 const std::string name() const override { return "ExtractSingleSpectrum"; }
33 const std::string summary() const override {
34 return "Extracts the specified spectrum from a workspace and places it in "
35 "a new single-spectrum workspace.";
36 }
37
39 int version() const override { return (1); }
40 const std::vector<std::string> seeAlso() const override {
41 return {"CropWorkspace", "ExtractSpectra", "PerformIndexOperations"};
42 }
44 const std::string category() const override { return "Transforms\\Splitting"; }
45
46private:
48 void init() override;
50 void exec() override;
51};
52
53} // namespace Algorithms
54} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Copies a single spectrum from a 2D Workspace into a new workspace.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version.
const std::string category() const override
Algorithm's category for identification.
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.
Helper class which provides the Collimation Length for SANS instruments.