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
1c82c652
Commit
1c82c652
authored
9 years ago
by
Zhou, Wenduo
Browse files
Options
Downloads
Patches
Plain Diff
Refs #12122. Fixed some issues with sphinx doc.
parent
dad18dce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/algorithms/ConvertCWSDExpToMomentum-v1.rst
+10
-8
10 additions, 8 deletions
docs/source/algorithms/ConvertCWSDExpToMomentum-v1.rst
with
10 additions
and
8 deletions
docs/source/algorithms/ConvertCWSDExpToMomentum-v1.rst
+
10
−
8
View file @
1c82c652
...
@@ -19,18 +19,22 @@ In this algorithm's name, ConvertCWSDToMomentum, *CW* stands for constant wave
...
@@ -19,18 +19,22 @@ In this algorithm's name, ConvertCWSDToMomentum, *CW* stands for constant wave
This algorithm takes ??? as inputs.
This algorithm takes ??? as inputs.
Futhermore, the unit of the output matrix workspace can be converted to
Futhermore, the unit of the output matrix workspace can be converted to
momentum transfer (
:math:`Q`
).
momentum transfer (
Q
).
Outline of algorithm
Outline of algorithm
####################
####################
1. Create output workspace.
1. Create output workspace
* Build a virtual instrument, requiring
* Build a virtual instrument, requiring
- position of source
- position of source
- position of sample
- position of sample
- detector ID, position, detector size of pixels
- detector ID, position, detector size of pixels
2. Read in data via table workspace
2. Read in data via table workspace
* From each row, (1) file name and (2) starting detector ID are read in.
* From each row, (1) file name and (2) starting detector ID are read in.
* Detector position in (virtual) instrument of MDEventWorkspace is compared with the position in MatrixWorkspace
* Detector position in (virtual) instrument of MDEventWorkspace is compared with the position in MatrixWorkspace
* Momentum is calcualted by goniometry values
* Momentum is calcualted by goniometry values
...
@@ -75,8 +79,6 @@ Each MDEvent in output MDEventWorkspace contain
...
@@ -75,8 +79,6 @@ Each MDEvent in output MDEventWorkspace contain
* Detector ID
* Detector ID
* Run Number
* Run Number
Combine Experiment Into One MDEventWorkspace
Combine Experiment Into One MDEventWorkspace
--------------------------------------------
--------------------------------------------
...
@@ -90,7 +92,7 @@ In order to integrate them into an organized data structure, i.e., *MDEventWorks
...
@@ -90,7 +92,7 @@ In order to integrate them into an organized data structure, i.e., *MDEventWorks
a virtual instrument is built in the algorithm.
a virtual instrument is built in the algorithm.
Virtual instrument
Virtual instrument
==================
##################
A virtual instrument is built in the algorithm.
A virtual instrument is built in the algorithm.
In this virtual instrument, the number of detectors and their position are determined
In this virtual instrument, the number of detectors and their position are determined
...
@@ -98,13 +100,13 @@ by the number of individual detector's positions in the *experiment*.
...
@@ -98,13 +100,13 @@ by the number of individual detector's positions in the *experiment*.
MDEventWorkspace
MDEventWorkspace
================
################
There is only one *virtual* instrument and *N* ExperimentInfo.
There is only one *virtual* instrument and *N* ExperimentInfo.
*N* is the total number of experiment points in the *experiment*.
*N* is the total number of experiment points in the *experiment*.
Inconsistency between using virtual instrument and copying instrument
Inconsistency between using virtual instrument and copying instrument
=====================================================================
#####################################################################
It is found that the results, i.e., the peak's position in sample-momentum
It is found that the results, i.e., the peak's position in sample-momentum
space, by FindPeaksMD, are different betweent the MDEventWorkspaces
space, by FindPeaksMD, are different betweent the MDEventWorkspaces
...
@@ -145,7 +147,7 @@ with 2D angular detector.
...
@@ -145,7 +147,7 @@ with 2D angular detector.
Usage
Usage
-----
-----
**Example - convert an HB3A's experiment to MDWorkspace in sample momentum workspae and creating virtual instrument
.:
**
**Example - convert an HB3A's experiment to MDWorkspace in sample momentum workspae and creating virtual instrument**
.. testcode:: ExConvertHB3AToMDVirtualInstrument
.. testcode:: ExConvertHB3AToMDVirtualInstrument
...
...
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