15using namespace Kernel;
24 "The name of the RAW file from which to obtain the mapping "
25 "information, including its full or relative path.");
27 "The name of the input and output workspace on which to perform the "
38 auto iraw = std::make_unique<ISISRAW2>();
40 if (iraw->readFromFile(
m_filename.c_str(),
false) != 0)
46 const int number_spectra = iraw->i_det;
47 if (number_spectra == 0) {
48 g_log.
warning(
"The spectra to detector mapping table is empty");
#define DECLARE_ALGORITHM(classname)
Base class from which all concrete algorithm classes should be derived.
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
void progress(double p, const std::string &msg="", double estimatedTime=0.0, int progressPrecision=0)
Sends ProgressNotification.
@ Load
allowed here which will be passed to the algorithm
A minimal class to hold the mapping between the spectrum number and its related detector ID numbers f...
A property class for workspaces.
Loads the mapping table between spectra and IDetector from a raw file.
void init() override
Overwrites Algorithm method.
std::string m_filename
The name and path of the input file.
void exec() override
Overwrites Algorithm method.
Records the filename and the description of failure.
void error(const std::string &msg)
Logs at error level.
void warning(const std::string &msg)
Logs at warning level.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
@ InOut
Both an input & output workspace.