Skip to content

Commit

Permalink
Refs #9933. Made to support workspace without instrument better.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jul 18, 2014
1 parent b1481b8 commit efd716c
Show file tree
Hide file tree
Showing 3 changed files with 514 additions and 352 deletions.
Expand Up @@ -79,19 +79,27 @@ class DLLExport SaveGSS : public Mantid::API::Algorithm
void init();
///Execution code
void exec();

/// Write GSAS file
void writeGSASFile(const std::string& outfilename, bool append, int basebanknumber, bool multiplybybinwidth, bool split,
const std::string& outputFormat);

///Write the header information
void writeHeaders(const std::string &format, std::ostream& os,API::MatrixWorkspace_const_sptr& workspace, double primaryflightpath) const;
void writeHeaders(const std::string &format, std::stringstream &os,double primaryflightpath) const;
///Write out the data in RALF format
void writeRALFdata(const int bank, const bool MultiplyByBinWidth, std::ostream& out,
void writeRALFdata(const int bank, const bool MultiplyByBinWidth, std::stringstream &out,
const MantidVec& X, const MantidVec& Y, const MantidVec& E) const;
///Write out the data in SLOG format
void writeSLOGdata(const int bank, const bool MultiplyByBinWidth, std::ostream& out,
void writeSLOGdata(const int bank, const bool MultiplyByBinWidth, std::stringstream &out,
const MantidVec& X, const MantidVec& Y, const MantidVec& E) const;
/// sets non workspace properties for the algorithm
void setOtherProperties(IAlgorithm* alg,const std::string & propertyName,const std::string &propertyValue,int periodNum);

bool m_useSpecAsBank;

/// Workspace
API::MatrixWorkspace_const_sptr inputWS;

};

}
Expand Down

0 comments on commit efd716c

Please sign in to comment.