Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
313ac056
Commit
313ac056
authored
9 years ago
by
Matt King
Browse files
Options
Downloads
Patches
Plain Diff
Changes to help doc and variable descriptions
Refs #13758
parent
af4f84e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/Algorithms/src/CalculateSlits.cpp
+13
-9
13 additions, 9 deletions
Framework/Algorithms/src/CalculateSlits.cpp
docs/source/algorithms/CalculateSlits-v1.rst
+9
-1
9 additions, 1 deletion
docs/source/algorithms/CalculateSlits-v1.rst
with
22 additions
and
10 deletions
Framework/Algorithms/src/CalculateSlits.cpp
+
13
−
9
View file @
313ac056
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
docs/source/algorithms/CalculateSlits-v1.rst
+
9
−
1
View file @
313ac056
...
@@ -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
-----
-----
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment