Mantid
|
Defines a class to aid in creating ISIS specific run logs for periods, status etc. More...
#include <ISISRunLogs.h>
Public Member Functions | |
void | addPeriodLog (const int period, API::Run &exptRun) |
Add 'period i' log. More... | |
void | addPeriodLogs (const int period, API::Run &exptRun) |
Adds period related logs. More... | |
void | addStatusLog (API::Run &exptRun) |
Adds the status log to the this run. More... | |
ISISRunLogs (const API::Run &icpRun) | |
Construct this object using a run that has the required ICP event log and the number of periods. More... | |
Static Public Member Functions | |
static void | applyLogFiltering (Mantid::API::Run &exptRun) |
applies log filtering for a run More... | |
static std::vector< std::string > | getLogNamesExcludedFromFiltering (const API::Run &run) |
gets the list of log names that should not be filtered More... | |
Private Attributes | |
std::unique_ptr< Kernel::LogParser > | m_logParser |
A LogParser object. More... | |
Defines a class to aid in creating ISIS specific run logs for periods, status etc.
This adds:
Definition at line 28 of file ISISRunLogs.h.
Mantid::DataHandling::ISISRunLogs::ISISRunLogs | ( | const API::Run & | icpRun | ) |
Construct this object using a run that has the required ICP event log and the number of periods.
Construct using a run that has the required ICP event log Throws if no icp event log exists.
icpRun | :: A run containing the ICP event log to parse |
Definition at line 28 of file ISISRunLogs.cpp.
References Mantid::API::LogManager::getLogData(), and m_logParser.
void Mantid::DataHandling::ISISRunLogs::addPeriodLog | ( | const int | period, |
API::Run & | exptRun | ||
) |
Add 'period i' log.
Add the period log to a run.
period | :: A period number. |
exptRun | :: The run to add the log to. |
Definition at line 122 of file ISISRunLogs.cpp.
References Mantid::API::LogManager::addLogData(), and m_logParser.
Referenced by Mantid::DataHandling::LoadMuonNexus1::addPeriodLog().
void Mantid::DataHandling::ISISRunLogs::addPeriodLogs | ( | const int | period, |
API::Run & | exptRun | ||
) |
Adds period related logs.
Adds period related logs, and applies log filtering.
period | :: The period that we are adding to |
exptRun | :: The run for this period |
Definition at line 54 of file ISISRunLogs.cpp.
References Mantid::API::LogManager::addLogData(), Mantid::API::LogManager::addProperty(), applyLogFiltering(), and m_logParser.
Referenced by Mantid::DataHandling::LoadMuonNexus1::addPeriodLog(), Mantid::DataHandling::LoadISISNexus2::exec(), and Mantid::DataHandling::LoadNexusMonitors2::splitMutiPeriodHistrogramData().
void Mantid::DataHandling::ISISRunLogs::addStatusLog | ( | API::Run & | exptRun | ) |
Adds the status log to the this run.
exptRun | :: The run that |
Definition at line 47 of file ISISRunLogs.cpp.
References Mantid::API::LogManager::addLogData(), and m_logParser.
Referenced by Mantid::DataHandling::LoadMuonNexus1::runLoadLog(), and Mantid::DataHandling::LoadNexusMonitors2::splitMutiPeriodHistrogramData().
|
static |
applies log filtering for a run
Applies log filtering buy run staus and period if available.
exptRun | :: The run for this period |
Definition at line 72 of file ISISRunLogs.cpp.
References Mantid::Kernel::LogParser::currentPeriodLogName(), Mantid::API::LogManager::filterByLog(), Mantid::API::g_log, getLogNamesExcludedFromFiltering(), Mantid::API::LogManager::getPropertyAsIntegerValue(), Mantid::API::LogManager::getTimeSeriesProperty(), Mantid::Kernel::LogParser::periodsLogName(), Mantid::Kernel::LogParser::statusLogName(), and Mantid::Kernel::Logger::warning().
Referenced by addPeriodLogs(), and Mantid::DataHandling::LoadNexusProcessed::applyLogFiltering().
|
static |
gets the list of log names that should not be filtered
Definition at line 126 of file ISISRunLogs.cpp.
References Mantid::API::LogManager::getProperties(), Mantid::API::LogManager::hasProperty(), Mantid::Kernel::LogParser::periodsLogName(), and Mantid::Kernel::LogParser::statusLogName().
Referenced by applyLogFiltering().
|
private |
A LogParser object.
Definition at line 48 of file ISISRunLogs.h.
Referenced by addPeriodLog(), addPeriodLogs(), addStatusLog(), and ISISRunLogs().