From 3293b2f510697774cd8fb0fc720045b21e4afcee Mon Sep 17 00:00:00 2001 From: Alex Buts Date: Tue, 8 Apr 2014 15:48:44 +0100 Subject: [PATCH] refs #9135 Moved monitors in separate workspace together with data WS --- Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py b/Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py index a4ddf27af56f..e7e29f54e3fd 100644 --- a/Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py +++ b/Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py @@ -628,6 +628,11 @@ def get_ei(self, input_ws, resultws_name, ei_guess): # copy incident energy obtained on monitor workspace to detectors workspace if monitors_from_separate_ws: AddSampleLog(Workspace=input_ws,LogName='Ei',LogText=str(ei),LogType='Number') + # if monitors are separated from the input workspace, we need to move them too as this is what happening when monitors are integrated into workspace + result_mon_name=resultws_name+'_monitors'; + ScaleX(InputWorkspace=mon_ws,OutputWorkspace=result_mon_name,Operation="Add",Factor=-mon1_peak, + InstrumentParameter="DelayTime",Combine=True) + # Adjust the TOF such that the first monitor peak is at t=0 ScaleX(InputWorkspace=input_ws,OutputWorkspace=resultws_name,Operation="Add",Factor=-mon1_peak,