11#include "MantidDataHandling/DllConfig.h"
17namespace DataHandling {
25 const std::string
name()
const override {
return "SaveReflectometryAscii"; }
27 int version()
const override {
return 1; }
29 const std::string
category()
const override {
return "DataHandling\\Text;ILL\\Reflectometry;Reflectometry"; }
31 const std::string
summary()
const override {
return "Saves a 2D workspace to an ascii file"; }
33 const std::vector<std::string>
seeAlso()
const override {
return {
"SaveAscii"}; }
35 std::map<std::string, std::string> validateInputs()
override;
37 bool checkGroups()
override;
45 bool processGroups()
override;
47 void checkFile(
const std::string &filename);
51 template <
typename T>
void outputval(
const T &val,
bool firstColumn =
false);
53 std::string sampleLogValue(
const std::string &logName);
55 std::string sampleLogUnit(
const std::string &logName);
57 void writeInfo(
const std::string &logName,
const std::string &logNameFixed =
"");
63 bool includeQResolution()
const;
73 std::vector<API::MatrixWorkspace_const_sptr>
m_group;
Base class from which all concrete algorithm classes should be derived.
Saves a file of desired (mft, txt, dat or custom) Ascii format from a 2D workspace.
std::string m_filename
Filename.
std::ofstream m_file
The output file stream.
std::string m_ext
File extension.
std::vector< std::string > m_wsName
Names of the workspaces in a group.
std::vector< API::MatrixWorkspace_const_sptr > m_group
Input workspace group.
API::MatrixWorkspace_const_sptr m_ws
Input workspace.
double m_theta
The angle used to calculate wavelength from momentum exchange, in rad.
int version() const override
Algorithm's version.
const std::string category() const override
Algorithm's category for identification.
const std::vector< std::string > seeAlso() const override
Algorithm's with similar purpose.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
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.