12#include "MantidDataHandling/DllConfig.h"
15namespace DataHandling {
20 void setParameters(
const std::string &nodetype,
const std::string &nodeunit,
const std::string &nodedescription);
21 void setValue(
const std::string &strvalue);
30 const std::string
getName()
const;
31 const std::string
getUnit()
const;
51 const std::string name()
const override;
54 int version()
const override;
55 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadSpice2D"}; }
58 const std::string category()
const override;
61 const std::string summary()
const override;
73 std::vector<unsigned int> binaryParseIntegers(std::string &binary_file_name);
76 std::vector<SpiceXMLNode> xmlParseSpice(
const std::string &xmlfilename);
80 const size_t &numpixelx,
const size_t &numpixely,
81 const std::string &detnodename,
82 const bool &loadinstrument);
86 const std::string &detnodename,
87 const bool &loadinstrument);
Base class from which all concrete algorithm classes should be derived.
LoadSpiceXML2DDet : Load 2D detector data in XML format form SPICE.
std::string m_detXMLNodeName
XML node name in detector counts file.
double m_detSampleDistanceShift
shift distance from sample to detector center
bool m_hasScanTable
Flag to show whether the SPICE scan table workspace is given.
int m_ptNumber4Log
Pt number for the sample logs to load with presense of Spice scan table workspace.
bool m_loadInstrument
Flag to show whether instrument is required to load.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
~LoadSpiceXML2DDet() override
Destructor.
std::string m_detXMLFileName
SPICE detector XML file.
size_t m_numPixelY
Pixel size at Y direction.
std::string m_idfFileName
IDF file name to override Mantid's.
double m_detXShift
shift of detector on X and Y direction
size_t m_numPixelX
Pixel size at X direction.
double m_userSpecifiedWaveLength
User specified wave length.
bool hasValue() const
Check whether XML node has value set.
bool isDouble() const
Is this node of double type?
bool isInteger() const
Is this node of integer type?
void setValue(const std::string &strvalue)
Set node value in string format.
void setParameters(const std::string &nodetype, const std::string &nodeunit, const std::string &nodedescription)
Set XML node parameters.
std::string m_typefullname
std::string m_description
const std::string getName() const
Get name of XML node.
bool hasUnit() const
Check whether XML has unit set.
const std::string getValue() const
Get node's value in string.
bool isString() const
Is this node of string type?
const std::string getUnit() const
Get unit of XML node.
const std::string getDescription() const
Get node's description.
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
Helper class which provides the Collimation Length for SANS instruments.