Mantid
Loading...
Searching...
No Matches
CropWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 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 {
51class MANTID_ALGORITHMS_DLL CropWorkspace : public API::DistributedAlgorithm {
52public:
54 const std::string name() const override { return "CropWorkspace"; }
56 const std::string summary() const override {
57 return "Extracts a 'block' from a workspace and places it in a new "
58 "workspace.";
59 }
60
62 int version() const override { return (1); }
63 const std::vector<std::string> seeAlso() const override {
64 return {"CropWorkspaceRagged", "CropToComponent", "RemoveBins", "ExtractSingleSpectrum", "ExtractSpectra"};
65 }
67 const std::string category() const override { return "Transforms\\Splitting"; }
68
69private:
71 void init() override;
73 void exec() override;
74};
75
76} // namespace Algorithms
77} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Extracts a 'block' from a workspace and places it in a new workspace.
Definition: CropWorkspace.h:51
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: CropWorkspace.h:63
int version() const override
Algorithm's version.
Definition: CropWorkspace.h:62
const std::string name() const override
Algorithm's name.
Definition: CropWorkspace.h:54
const std::string summary() const override
Summary of algorithms purpose.
Definition: CropWorkspace.h:56
const std::string category() const override
Algorithm's category for identification.
Definition: CropWorkspace.h:67
Helper class which provides the Collimation Length for SANS instruments.