Skip to content

Commit

Permalink
DiffractionFocussing. Refs #3801.
Browse files Browse the repository at this point in the history
Sidestepping the differences between event and histogram branches.
  • Loading branch information
peterfpeterson committed Nov 14, 2011
1 parent 532c74f commit f09644e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,11 @@ def _focus(self, wksp, calib, info, filterLogs=None, preserveEvents=True,
Rebin(InputWorkspace=wksp, OutputWorkspace=wksp, Params=binning)
if not "histo" in self.getProperty("Extension"):
SortEvents(InputWorkspace=wksp)
DiffractionFocussing(InputWorkspace=wksp, OutputWorkspace=wksp, GroupingWorkspace=self._instrument + "_group",
PreserveEvents=preserveEvents)
DiffractionFocussing(InputWorkspace=wksp, OutputWorkspace=wksp, GroupingWorkspace=self._instrument + "_group")
if not "histo" in self.getProperty("Extension"):
SortEvents(InputWorkspace=wksp)
if not preserveEvents:
ConvertToMatrixWorkspace(InputWorkspace=wksp, OutputWorkspace=wksp)
ConvertUnits(InputWorkspace=wksp, OutputWorkspace=wksp, Target="TOF")
if preserveEvents and not "histo" in self.getProperty("Extension"):
CompressEvents(InputWorkspace=wksp, OutputWorkspace=wksp, Tolerance=COMPRESS_TOL_TOF) # 100ns
Expand Down

0 comments on commit f09644e

Please sign in to comment.