From 750309483d5fdb4bf10a9ef0d70b9314c39891ec Mon Sep 17 00:00:00 2001 From: Pete Peterson <petersonpf@ornl.gov> Date: Tue, 27 Oct 2015 09:53:24 -0400 Subject: [PATCH] Fixing minor logging isues --- .../src/AlignAndFocusPowder.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp b/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp index 8262153bd92..7b767a815da 100644 --- a/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp +++ b/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp @@ -494,11 +494,6 @@ void AlignAndFocusPowder::exec() { // turn off the low res stuff m_processLowResTOF = false; - g_log.information() << "running CropWorkspace(MinWavelength=" << minwl; - if (!isEmpty(maxwl)) - g_log.information() << ", MaxWavelength=" << maxwl; - g_log.information() << ")\n"; - EventWorkspace_sptr ews = boost::dynamic_pointer_cast<EventWorkspace>(m_outputW); if (ews) @@ -508,6 +503,11 @@ void AlignAndFocusPowder::exec() { m_outputW = convertUnits(m_outputW, "Wavelength"); + g_log.information() << "running CropWorkspace(WavelengthMin=" << minwl; + if (!isEmpty(maxwl)) + g_log.information() << ", WavelengthMax=" << maxwl; + g_log.information() << ")\n"; + API::IAlgorithm_sptr removeAlg = createChildAlgorithm("CropWorkspace"); removeAlg->setProperty("InputWorkspace", m_outputW); removeAlg->setProperty("OutputWorkspace", m_outputW); @@ -515,6 +515,9 @@ void AlignAndFocusPowder::exec() { removeAlg->setProperty("XMax", maxwl); removeAlg->executeAsChildAlg(); m_outputW = removeAlg->getProperty("OutputWorkspace"); + if (ews) + g_log.information() << "Number of events = " << ews->getNumberEvents() + << ". "; } else if (DIFCref > 0.) { g_log.information() << "running RemoveLowResTof(RefDIFC=" << DIFCref << ",K=3.22)\n"; @@ -729,7 +732,7 @@ AlignAndFocusPowder::diffractionFocus(API::MatrixWorkspace_sptr ws) { API::MatrixWorkspace_sptr AlignAndFocusPowder::convertUnits(API::MatrixWorkspace_sptr matrixws, std::string target) { - g_log.information() << "running ConvertUnits(Target=dSpacing)\n"; + g_log.information() << "running ConvertUnits(Target=" << target << ")\n"; API::IAlgorithm_sptr convert2Alg = createChildAlgorithm("ConvertUnits"); convert2Alg->setProperty("InputWorkspace", matrixws); -- GitLab