Mantid
Loading...
Searching...
No Matches
IntegrateByComponent.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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
18class MANTID_ALGORITHMS_DLL IntegrateByComponent final : public API::Algorithm {
19public:
20 const std::string name() const override;
22 const std::string summary() const override { return "Averages up the instrument hierarchy."; }
23
24 int version() const override;
25 const std::vector<std::string> seeAlso() const override { return {"Integration"}; }
26 const std::string category() const override;
27
28private:
29 void init() override;
30 void exec() override;
31
33 std::vector<std::vector<size_t>> makeMap(const API::MatrixWorkspace_sptr &countsWS, int parents);
35 std::vector<std::vector<size_t>> makeInstrumentMap(const API::MatrixWorkspace_sptr &countsWS);
36};
37
38} // namespace Algorithms
39} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
IntegrateByComponent : The algorithm integrates up the instrument hierarchy, and each pixel will cont...
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.