Mantid
Loading...
Searching...
No Matches
CropWorkspaceRagged.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 {
26class MANTID_ALGORITHMS_DLL CropWorkspaceRagged : public API::DistributedAlgorithm {
27public:
29 const std::string name() const override { return "CropWorkspaceRagged"; }
31 const std::string summary() const override {
32 return "Crops each spectrum of a workspace and produces a new "
33 "workspace.";
34 }
35
37 int version() const override { return (1); }
38 const std::vector<std::string> seeAlso() const override { return {"CropWorkspace"}; }
40 const std::string category() const override { return "Transforms\\Splitting"; }
41
42private:
44 void init() override;
46 void exec() override;
47 std::map<std::string, std::string> validateInputs() override;
48};
49
50} // namespace Algorithms
51} // 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.
int version() const override
Algorithm's version.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
Helper class which provides the Collimation Length for SANS instruments.