From 487b67eb83f8afd17a2fbfbd0dfe72ca2d3fac08 Mon Sep 17 00:00:00 2001 From: Gemma Guest <gemma.guest@stfc.ac.uk> Date: Fri, 19 May 2017 12:53:11 +0100 Subject: [PATCH] Re #18829 Only do summation if input is not already in wavelength This maintains the previous behaviour: we assume that if the input is in wavelength then the reduction has already been done. --- Framework/Algorithms/src/ReflectometryReductionOne2.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Framework/Algorithms/src/ReflectometryReductionOne2.cpp b/Framework/Algorithms/src/ReflectometryReductionOne2.cpp index da50de42086..4f278294d67 100644 --- a/Framework/Algorithms/src/ReflectometryReductionOne2.cpp +++ b/Framework/Algorithms/src/ReflectometryReductionOne2.cpp @@ -443,14 +443,9 @@ void ReflectometryReductionOne2::exec() { if (xUnitID == "Wavelength") { // Already converted converted to wavelength m_convertUnits = false; - // Assume it's also already been normalised by monitors + // Assume it's also already been normalised by monitors and summed m_normaliseMonitors = false; - // Assume summation is already done if the number of histograms in the input - // is the same as the number of detector groups (which will define the - // number of histograms in the output) - if (m_runWS->getNumberHistograms() == detectorGroups().size()) { - m_sum = false; - } + m_sum = false; } // Create the output workspace in wavelength -- GitLab