Skip to content

Commit

Permalink
Refs #9789 wrote equation for doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lottie Greenwood committed Dec 3, 2014
1 parent e07a282 commit 6f78216
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def summary(self):
return "Calibrates every pixel position by performing single peak fitting."

def PyInit(self):
self.declareProperty(FileProperty("Filename", "", FileAction.Load),
self.declareProperty(FileProperty("InputWorkspace", "", FileAction.Load),
"Calibration run to use")

self.declareProperty(ITableWorkspaceProperty("DetectorPositions", "", Direction.Output),
"A table with calibrated detector positions as accepted by ApplyCalibration algorithm.")
"A table with the detector IDs and calibrated detector positions in V3P format.")

self.declareProperty(FloatArrayProperty("ExpectedPeaks", ""),
"A list of dSpacing values where peaks are expected.")
Expand Down
11 changes: 11 additions & 0 deletions Code/Mantid/docs/source/algorithms/EnginXCalibrateFull-v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ The result of the calibration is accepted by both :ref:`algm-EnginXCalibrate` an

Expects the *long* calibration run, which provides a decent pattern for every pixel.

After receiving the bank's indicies, it goes through each one fitting the peak (using :ref:`algm-EnginXFitPeak`) and using the resulting difc value to calibrate the detector position. The calibrated detector position is produced as shown below:

#test12



.. math:: L2 = \left(\frac{Difc} { 252.816 * 2 * sin \left(\frac{det2\theta} {2.0}\right)}\right) - 50



the cartesian2d vector is then returned for the given spherical co ordinates

.. categories::

Expand Down

0 comments on commit 6f78216

Please sign in to comment.