Skip to content

Commit

Permalink
Enhancing algorithm (not completed). Refs #8096.
Browse files Browse the repository at this point in the history
1. Enable SaveFullprofResolution to support Fullprof profile 9;
2. Enable SaveFullprofResolution to read from a multiple-bank table
workspace;
3. Enable SaveFullprofResolution to append a bank's parameters to an
existing .irf file;
  • Loading branch information
wdzhou committed Oct 10, 2013
1 parent b65f2fc commit 1fe5f20
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,43 @@ namespace DataHandling
virtual void initDocs();
/// Initialisation code
void init();
///Execution code
/// Execution code
void exec();

///Write the header information

std::string toProf10IrfString(int bankid);
/// Process properties
void processProperties();

/// Write out string for profile 10 .irf file
std::string toProf10IrfString();

std::string toProf9IrfString(int bankid);
/// Write out string for profile 9 .irf file
std::string toProf9IrfString();

/// Parse input workspace to map of parameters
void parseTableWorkspace();
void parseTableWorkspace(int bankid);

/// Check wether a profile parameter map has the parameter
bool has_key(std::map<std::string, double> profmap, std::string key);

/// Map containing the name of value of each parameter required by .irf file
std::map<std::string, double> m_profileParamMap;

/// Input table workspace
DataObjects::TableWorkspace_sptr inpWS;
DataObjects::TableWorkspace_sptr m_profileTableWS;

/// Output Irf file name
std::string m_outIrfFilename;

/// Bank to write
int m_bankID;

/// Profile number
int m_fpProfileNumber;

/// Append to existing file
bool m_append;

};

Expand Down

0 comments on commit 1fe5f20

Please sign in to comment.