13#include "MantidAlgorithms/DllConfig.h"
26 const std::string
name()
const override {
return "CreateDetectorTable"; }
28 int version()
const override {
return 1; }
30 const std::string
category()
const override {
return "Utility\\Workspaces"; }
32 const std::string
summary()
const override {
33 return "Create a table showing detector information for the given "
34 "workspace and optionally the data for that detector";
36 std::map<std::string, std::string> validateInputs()
override;
42 void populateTableByDetID();
43 void setTableToOutput();
68 double dataY0 = 0, dataE0 = 0;
69 double R = 0, theta = 0, q = 0, phi = 0;
78 void getSphericalCoordinates(
size_t wsIndex,
double &R,
double &theta,
double &phi);
79 const std::string getTimeIndexes(
size_t wsIndex);
80 double getQ(
size_t wsIndex);
81 void getDiffConst(
size_t wsIndex,
double &difa,
double &difc,
double &difcUnc,
double &tzero);
82 void writeRowToTable(
const int row,
const DetectorRowData &data);
83 DetectorRowData calculateWsIdxData(
size_t wsIndex);
Base class from which all concrete algorithm classes should be derived.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
API::MatrixWorkspace_sptr ws
Geometry::PointingAlong beamAxisIndex
const std::string category() const override
Algorithm's category for identification.
bool includeDetectorPosition
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
const API::SpectrumInfo * spectrumInfo
CreateDetectorTable()
(Empty) Constructor
API::ITableWorkspace_sptr table
bool signedThetaParamRetrieved
int version() const override
Algorithm's version.
const Geometry::DetectorInfo * detectorInfo
std::vector< int > workspaceIndices
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
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.