10#include "MantidAlgorithms/DllConfig.h"
21namespace DataObjects {
58 const std::string
name()
const override {
return "SumSpectra"; }
60 const std::string
summary()
const override {
61 return "The SumSpectra algorithm adds the data values in each time bin "
62 "across a range of spectra; the output workspace has a single "
63 "spectrum. If the input is an EventWorkspace, the output is also an "
64 "EventWorkspace; otherwise it will be a Workspace2D.";
68 int version()
const override {
return (1); }
69 const std::vector<std::string>
seeAlso()
const override {
return {
"SumNeighbours"}; }
71 const std::string
category()
const override {
return "Transforms\\Grouping"; }
73 std::map<std::string, std::string> validateInputs()
override;
96 bool m_keepMonitors{
false};
98 size_t m_numberOfSpectra{0};
106 bool m_calculateWeightedSum{
false};
107 bool m_multiplyByNumSpec{
true};
Base class from which all concrete algorithm classes should be derived.
A "spectrum" is an object that holds the data for a particular spectrum, in particular:
Helper class for reporting progress from algorithms.
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Takes a workspace as input and sums all of the spectra within it maintaining the existing bin structu...
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification overriding a virtual method.
std::set< size_t > m_indices
Set of indices to sum.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< const RebinnedOutput > RebinnedOutput_const_sptr
shared pointer to a const RebinnedOutput
std::shared_ptr< RebinnedOutput > RebinnedOutput_sptr
shared pointer to the RebinnedOutput class
Helper class which provides the Collimation Length for SANS instruments.
int32_t specnum_t
Typedef for a spectrum Number.