10#include "MantidDataHandling/DllConfig.h"
21namespace DataHandling {
28 const std::string
name()
const override {
return "LoadGSASInstrumentFile"; }
30 const std::string
summary()
const override {
return "Load parameters from a GSAS Instrument file."; }
33 int version()
const override {
return 1; }
34 const std::vector<std::string>
seeAlso()
const override {
35 return {
"SaveGSASInstrumentFile",
"LoadGSS",
"FixGSASInstrumentFile"};
39 const std::string
category()
const override {
return "Diffraction\\DataHandling"; }
48 void loadFile(
const std::string &filename, std::vector<std::string> &lines);
51 std::string getHistogramType(
const std::vector<std::string> &lines);
54 size_t getNumberOfBanks(
const std::vector<std::string> &lines);
57 void scanBanks(
const std::vector<std::string> &lines, std::vector<size_t> &bankStartIndex);
60 void parseBank(std::map<std::string, double> ¶mmap,
const std::vector<std::string> &lines,
size_t bankid,
61 size_t startlineindex);
64 size_t findINSPRCFLine(
const std::vector<std::string> &lines,
size_t lineIndex,
double ¶m1,
double ¶m2,
65 double ¶m3,
double ¶m4);
Base class from which all concrete algorithm classes should be derived.
LoadGSASInstrumentFile : Load GSAS instrument file to TableWorkspace(s)
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
Helper class which provides the Collimation Length for SANS instruments.