Skip to content

Commit

Permalink
refs #9135 Moved monitors in separate workspace together with data WS
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 8, 2014
1 parent 11334d8 commit 3293b2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/scripts/Inelastic/DirectEnergyConversion.py
Expand Up @@ -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,
Expand Down

0 comments on commit 3293b2f

Please sign in to comment.