Commit d4f37007 authored by Raquel Alvarez Banos's avatar Raquel Alvarez Banos
Browse files

Re #11825 Applying naming conventions

parent e3201031
...@@ -77,16 +77,16 @@ private: ...@@ -77,16 +77,16 @@ private:
bool m_makeNexusCopy; bool m_makeNexusCopy;
/// Algorithm progress keeper /// Algorithm progress keeper
API::Progress *progress; API::Progress *m_progress;
/// The workspace to load instrument and logs /// The workspace to load instrument and logs
API::MatrixWorkspace_sptr ws; API::MatrixWorkspace_sptr ws;
/// Was the instrument loaded? /// Was the instrument loaded?
bool instrument_loaded_correctly; bool m_instrumentLoadedCorrectly;
/// Were the logs loaded? /// Were the logs loaded?
bool logs_loaded_correctly; bool m_logsLoadedCorrectly;
}; };
} // namespace DataHandling } // namespace DataHandling
......
...@@ -24,8 +24,8 @@ DECLARE_ALGORITHM(AppendGeometryToSNSNexus) ...@@ -24,8 +24,8 @@ DECLARE_ALGORITHM(AppendGeometryToSNSNexus)
/** Constructor /** Constructor
*/ */
AppendGeometryToSNSNexus::AppendGeometryToSNSNexus() AppendGeometryToSNSNexus::AppendGeometryToSNSNexus()
: m_makeNexusCopy(false), progress(), instrument_loaded_correctly(false), : m_makeNexusCopy(false), m_progress(), m_instrumentLoadedCorrectly(false),
logs_loaded_correctly(false) {} m_logsLoadedCorrectly(false) {}
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Destructor /** Destructor
...@@ -146,23 +146,23 @@ void AppendGeometryToSNSNexus::exec() { ...@@ -146,23 +146,23 @@ void AppendGeometryToSNSNexus::exec() {
if (m_instrument == "HYSPEC" || m_instrument == "HYSPECA" || if (m_instrument == "HYSPEC" || m_instrument == "HYSPECA" ||
m_instrument == "SNAP") { m_instrument == "SNAP") {
g_log.debug() << "Run LoadNexusLogs Child Algorithm." << std::endl; g_log.debug() << "Run LoadNexusLogs Child Algorithm." << std::endl;
logs_loaded_correctly = runLoadNexusLogs(m_filename, ws, this); m_logsLoadedCorrectly = runLoadNexusLogs(m_filename, ws, this);
if (!logs_loaded_correctly) if (!m_logsLoadedCorrectly)
throw std::runtime_error("Failed to run LoadNexusLogs Child Algorithm."); throw std::runtime_error("Failed to run LoadNexusLogs Child Algorithm.");
} }
g_log.debug() << "Run LoadInstrument Child Algorithm." << std::endl; g_log.debug() << "Run LoadInstrument Child Algorithm." << std::endl;
instrument_loaded_correctly = runLoadInstrument(m_idf_filename, ws, this); m_instrumentLoadedCorrectly = runLoadInstrument(m_idf_filename, ws, this);
if (!instrument_loaded_correctly) if (!m_instrumentLoadedCorrectly)
throw std::runtime_error("Failed to run LoadInstrument Child Algorithm."); throw std::runtime_error("Failed to run LoadInstrument Child Algorithm.");
// Get the number of detectors (just for progress reporting) // Get the number of detectors (just for progress reporting)
// Get the number of histograms/detectors // Get the number of histograms/detectors
const size_t numDetectors = ws->getInstrument()->getDetectorIDs().size(); const size_t numDetectors = ws->getInstrument()->getDetectorIDs().size();
this->progress = new API::Progress(this, 0.0, 1.0, numDetectors); this->m_progress = new API::Progress(this, 0.0, 1.0, numDetectors);
// Get the instrument // Get the instrument
Geometry::Instrument_const_sptr instrument = ws->getInstrument(); Geometry::Instrument_const_sptr instrument = ws->getInstrument();
...@@ -252,7 +252,7 @@ void AppendGeometryToSNSNexus::exec() { ...@@ -252,7 +252,7 @@ void AppendGeometryToSNSNexus::exec() {
nxfile.closeGroup(); // close NXdetector nxfile.closeGroup(); // close NXdetector
this->progress->report(dets.size()); this->m_progress->report(dets.size());
} else { } else {
throw std::runtime_error( throw std::runtime_error(
"Could not find any detectors for the bank named " + "Could not find any detectors for the bank named " +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment