13#include "MantidDataHandling/DllConfig.h"
18namespace HistogramData {
22namespace DataHandling {
58 const std::string
name()
const override {
return "SaveSPE"; }
60 const std::string
summary()
const override {
return "Writes a workspace into a file the spe format."; }
63 int version()
const override {
return (1); }
64 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadSPE",
"SavePAR",
"SavePHX"}; }
66 const std::string
category()
const override {
return "DataHandling\\SPE;Inelastic\\DataHandling"; }
81 void writeMaskFlags(FILE *
const outFile)
const;
82 void writeBins(
const std::vector<double> &Vs, FILE *
const outFile)
const;
83 void writeValue(
const double value, FILE *
const outFile)
const;
84 void logMissingMasked(
const std::vector<int> &inds,
const size_t nonMasked,
const int masked)
const;
106 void check_and_copy_spectra(
const HistogramData::HistogramY &inSignal,
const HistogramData::HistogramE &inErr,
107 std::vector<double> &Signal, std::vector<double> &Error)
const;
double value
The value of the point.
Base class from which all concrete algorithm classes should be derived.
Saves a workspace into an ASCII SPE file.
std::vector< double > m_tSignal
const std::string name() const override
Algorithm's name.
static const double MASK_ERROR
the error value (=0.0) for spectra whose detectors are all masked, from the SPE specification http://...
const std::string category() const override
Algorithm's category for identification.
int m_remainder
the SPE files have a constant number of numbers written on each line, but depending on the number of ...
const std::string summary() const override
Summary of algorithms purpose.
static const double MASK_FLAG
the mask flag (=-1e30) from the SPE specification http://www.mantidproject.org/images/3/3d/Spe_file_f...
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
size_t m_nBins
the number of bins in each histogram, as the histogram must have common bins this shouldn't change
std::vector< double > m_tError
int version() const override
Algorithm's version.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.