18namespace WorkflowAlgorithms {
28 :
API::
Algorithm(), m_low_TOF_cut(0), m_high_TOF_cut(0), m_center_x(0), m_center_y(0), m_mask_as_string(
""),
29 m_output_message(
""), m_moderator_position(0) {
30 for (
int i = 0; i < 3; i++)
31 for (
int j = 0; j < 8; j++)
32 m_slit_positions[i][j] = EQSANSInstrument::default_slit_positions[i][j];
35 m_slit_to_source[0] = 10080;
36 m_slit_to_source[1] = 11156;
37 m_slit_to_source[2] = 12150;
40 const std::string
name()
const override {
return "EQSANSLoad"; }
42 const std::string
summary()
const override {
return "Load EQSANS data."; }
44 int version()
const override {
return (1); }
46 const std::string
category()
const override {
return "Workflow\\SANS"; }
53 std::string findConfigFile(
const int &run);
54 void readConfigFile(
const std::string &filePath);
55 void readRectangularMasks(
const std::string &line);
56 void readTOFcuts(
const std::string &line);
57 void readBeamCenter(
const std::string &line);
58 void readModeratorPosition(
const std::string &line);
59 void readSourceSlitSize(
const std::string &line);
60 void getSourceSlitSize();
61 void moveToBeamCenter();
71 double m_slit_positions[3][8];
72 int m_slit_to_source[3];
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Base class from which all concrete algorithm classes should be derived.
Subtract dark current for EQSANS.
double m_moderator_position
const std::string name() const override
Algorithm's name.
API::MatrixWorkspace_sptr dataWS
std::string m_mask_as_string
int version() const override
Algorithm's version.
const std::string category() const override
Algorithm's category for identification.
std::string m_output_message
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.