-
Notifications
You must be signed in to change notification settings - Fork 122
/
CropToComponent.h
34 lines (28 loc) · 1.08 KB
/
CropToComponent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/DistributedAlgorithm.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace Algorithms {
/** CropToComponent : Crops a workspace to a set of components.
*/
class MANTID_ALGORITHMS_DLL CropToComponent final : public API::DistributedAlgorithm {
public:
const std::string name() const override final;
int version() const override final;
const std::vector<std::string> seeAlso() const override { return {"CropWorkspace"}; }
const std::string category() const override final;
const std::string summary() const override final;
protected:
std::map<std::string, std::string> validateInputs() override;
private:
void init() override final;
void exec() override final;
};
} // namespace Algorithms
} // namespace Mantid