Mantid
Loading...
Searching...
No Matches
CreateDetectorTable.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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
13#include "MantidAlgorithms/DllConfig.h"
16
17namespace Mantid {
18namespace Algorithms {
19
20class MANTID_ALGORITHMS_DLL CreateDetectorTable final : public API::Algorithm {
21public:
25 const std::string name() const override { return "CreateDetectorTable"; }
27 int version() const override { return 1; }
29 const std::string category() const override { return "Utility\\Workspaces"; }
31 const std::string summary() const override {
32 return "Create a table showing detector information for the given "
33 "workspace and optionally the data for that detector";
34 }
35 std::map<std::string, std::string> validateInputs() override;
36
38 void setup();
39 void createColumns();
40 void populateTable();
41 void setTableToOutput();
42
43private:
45 std::vector<int> workspaceIndices;
50 bool calcQ;
55 bool showSignedTwoTheta; // If true, signedVersion of the two theta
57 double sampleDist;
58 int nrows;
60 void init() override;
62 void exec() override;
63};
64
66std::string createTruncatedList(const std::set<int> &elements);
67
68} // namespace Algorithms
69} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
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.
int version() const override
Algorithm's version.
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::string createTruncatedList(const std::set< int > &elements)
Converts a list to a string, shortened if necessary.
PointingAlong
Type to describe pointing along options.
Helper class which provides the Collimation Length for SANS instruments.