Mantid
|
MDFLogValueFinder : Holds a collection of workspace names, and finds log values from them. More...
#include <LogValueFinder.h>
Public Member Functions | |
std::vector< std::string > | getLogNames () const |
Get log names from workspaces. More... | |
double | getLogValue (const QString &logName, const Mantid::Kernel::Math::StatisticType &function, const QString &wsName) const |
Get log value from workspace name. More... | |
double | getLogValue (const QString &logName, const Mantid::Kernel::Math::StatisticType &function, int index) const |
Get log value from workspace position in list. More... | |
LogValueFinder (QStringList wsNames) | |
Constructor. More... | |
Private Attributes | |
const QStringList | m_wsNames |
Workspace names. More... | |
MDFLogValueFinder : Holds a collection of workspace names, and finds log values from them.
Definition at line 19 of file LogValueFinder.h.
|
explicit |
Constructor.
wsNames | :: [input] Workspace names |
Definition at line 24 of file LogValueFinder.cpp.
std::vector< std::string > MantidQt::MantidWidgets::LogValueFinder::getLogNames | ( | ) | const |
Get log names from workspaces.
Get names of all logs from the first workspace Note:
Definition at line 33 of file LogValueFinder.cpp.
References Mantid::Kernel::SingletonHolder< T >::Instance(), m_wsNames, Mantid::API::MatrixWorkspace::size(), and workspace.
double MantidQt::MantidWidgets::LogValueFinder::getLogValue | ( | const QString & | logName, |
const Mantid::Kernel::Math::StatisticType & | function, | ||
const QString & | wsName | ||
) | const |
Get log value from workspace name.
Get value of log from workspace with given name.
logName | :: [input] Name of log |
function | :: [input] Function to apply to log e.g. min, max, mean... |
wsName | :: [input] Name of workspace |
std::runtime_error | if log cannot be found or cast |
std::invalid_argument | if workspace not found |
Definition at line 80 of file LogValueFinder.cpp.
References Mantid::API::LogManager::getLogAsSingleValue(), Mantid::Kernel::SingletonHolder< T >::Instance(), Mantid::API::ExperimentInfo::run(), and workspace.
double MantidQt::MantidWidgets::LogValueFinder::getLogValue | ( | const QString & | logName, |
const Mantid::Kernel::Math::StatisticType & | function, | ||
int | index | ||
) | const |
Get log value from workspace position in list.
Get value of log from workspace at given index.
logName | :: [input] Name of log |
function | :: [input] Function to apply to log e.g. min, max, mean... |
index | :: [input] Index of workspace in list |
std::runtime_error | if log cannot be found or cast |
std::invalid_argument | if index is not in range |
Definition at line 60 of file LogValueFinder.cpp.
References getLogValue(), index, and m_wsNames.
Referenced by getLogValue().
|
private |
Workspace names.
Definition at line 33 of file LogValueFinder.h.
Referenced by getLogNames(), and getLogValue().