Skip to content
Snippets Groups Projects
Commit 313ac056 authored by Matt King's avatar Matt King
Browse files

Changes to help doc and variable descriptions

Refs #13758
parent af4f84e0
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,8 @@ const std::string CalculateSlits::category() const { ...@@ -38,7 +38,8 @@ const std::string CalculateSlits::category() const {
/// Algorithm's summary for use in the GUI and help. @see Algorithm::summary /// Algorithm's summary for use in the GUI and help. @see Algorithm::summary
const std::string CalculateSlits::summary() const { const std::string CalculateSlits::summary() const {
return "Calculates appropriate slit widths for reflectometry instruments."; return "Calculates appropriate slit widths for reflectometry instruments "
"based on the instrument setup and desired resolution and footprint of the experiment.";
} }
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
...@@ -46,16 +47,19 @@ const std::string CalculateSlits::summary() const { ...@@ -46,16 +47,19 @@ const std::string CalculateSlits::summary() const {
*/ */
void CalculateSlits::init() { void CalculateSlits::init() {
declareProperty("Slit1Slit2", Mantid::EMPTY_DBL(), declareProperty("Slit1Slit2", Mantid::EMPTY_DBL(),
"Distance between slit 1 and slit 2 in mm"); "Distance between Slit 1 and Slit 2 in mm. Where Slit 1 and "
"Slit 2 are the two slits before the sample holder.");
declareProperty("Slit2SA", Mantid::EMPTY_DBL(), declareProperty("Slit2SA", Mantid::EMPTY_DBL(),
"Offset in the beam direction in mm"); "Offset in the beam direction in mm. (Due to Slit 2 being "
declareProperty("Resolution", Mantid::EMPTY_DBL(), "Resolution"); "translatable in the vertical axis)");
declareProperty("Footprint", Mantid::EMPTY_DBL(), "Footprint in mm"); declareProperty("Resolution", Mantid::EMPTY_DBL(),
declareProperty("Angle", Mantid::EMPTY_DBL(), "Angle in degrees"); "The Resolution that you desire to obtain in the experiment");
declareProperty("Footprint", Mantid::EMPTY_DBL(), "The Footprint you wish to achieve for the experiment, in mm");
declareProperty("Slit1", Mantid::EMPTY_DBL(), "Slit 1 width in mm", declareProperty("Angle", Mantid::EMPTY_DBL(), "Incident angle in degrees.");
declareProperty("Slit1", Mantid::EMPTY_DBL(), "Calculated Slit 1 width in mm",
Direction::Output); Direction::Output);
declareProperty("Slit2", Mantid::EMPTY_DBL(), "Slit 2 width in mm", declareProperty("Slit2", Mantid::EMPTY_DBL(), "Calculated Slit 2 width in mm",
Direction::Output); Direction::Output);
} }
......
...@@ -20,7 +20,15 @@ CalculateSlits uses nothing but the input properties to calculate the output, sp ...@@ -20,7 +20,15 @@ CalculateSlits uses nothing but the input properties to calculate the output, sp
Slit1 = (2 \times Slit1Slit2 \times tan(\alpha \times Resolution)) - Slit2 Slit1 = (2 \times Slit1Slit2 \times tan(\alpha \times Resolution)) - Slit2
where :math:`\alpha` is the angle in radians. where :math:`\alpha` is the angle in radians (conversion between degrees and radians is implemented by the algorithm).
Footprint
---------
The footprint of the experiment is not necessarily instrument specific and can be thought of as the area of the sample
that is reach by the beam during the experiment. When providing the value of the footprint to the algorithm it should be
based on the footprint that you would wish to use for the experiment as this information cannot be taken directly from
the instrument definition and is experiment-dependant.
Usage Usage
----- -----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment