Mantid
Loading...
Searching...
No Matches
ExtractSpectra2.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2017 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
22class MANTID_ALGORITHMS_DLL ExtractSpectra2 : public API::DistributedAlgorithm {
23public:
24 const std::string name() const override;
25 int version() const override;
26 const std::string category() const override;
27 const std::string summary() const override;
28
29private:
30 void init() override;
31 void exec() override;
32 template <class T> void exec(const T &inputWS, const Indexing::SpectrumIndexSet &indexSet);
33};
34
35} // namespace Algorithms
36} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Extracts specified spectra from a workspace and places them in a new workspace.
void exec(const T &inputWS, const Indexing::SpectrumIndexSet &indexSet)
Helper class which provides the Collimation Length for SANS instruments.