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
3aa7e69e
Commit
3aa7e69e
authored
6 years ago
by
Sullivan, Brendan T
Browse files
Options
Downloads
Patches
Plain Diff
Re #24329 make reviewer suggested changes
parent
2ff4c1a0
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/Crystal/inc/MantidCrystal/SetCrystalLocation.h
+8
-8
8 additions, 8 deletions
Framework/Crystal/inc/MantidCrystal/SetCrystalLocation.h
Framework/Crystal/src/SetCrystalLocation.cpp
+3
-3
3 additions, 3 deletions
Framework/Crystal/src/SetCrystalLocation.cpp
with
11 additions
and
11 deletions
Framework/Crystal/inc/MantidCrystal/SetCrystalLocation.h
+
8
−
8
View file @
3aa7e69e
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 201
2
ISIS Rutherford Appleton Laboratory UKRI,
// Copyright © 201
8
ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
...
...
@@ -23,13 +23,10 @@ namespace Crystal {
/** SetCrystalLocation
Description:
This algorithm basically indexes peaks with the crystal orientation matrix
stored in the peaks workspace.
The optimization is on the goniometer settings for the runs in the peaks
workspace and also the sample
orientation .
@author Ruth Mikkelson, SNS,ORNL
@date 01/26/2013
This algorithm provides a convenient interface to sets the
sample position of an events workspace.
@author Brendan Sullivan, SNS,ORNL
@date Dec 20 2018
*/
class
DLLExport
SetCrystalLocation
:
public
API
::
Algorithm
{
public:
...
...
@@ -39,6 +36,9 @@ public:
return
"This algorithm sets the sample location of the "
"input event workspace."
;
}
const
std
::
vector
<
std
::
string
>
seeAlso
()
const
override
{
return
{
"OptimizeCrystalPlacement"
};
}
int
version
()
const
override
{
return
1
;
};
...
...
This diff is collapsed.
Click to expand it.
Framework/Crystal/src/SetCrystalLocation.cpp
+
3
−
3
View file @
3aa7e69e
...
...
@@ -60,9 +60,9 @@ void SetCrystalLocation::init() {
void
SetCrystalLocation
::
exec
()
{
EventWorkspace_sptr
events
=
getProperty
(
"InputWorkspace"
);
EventWorkspace_sptr
outEvents
=
getProperty
(
"OutputWorkspace"
);
double
newX
=
getProperty
(
"NewX"
);
double
newY
=
getProperty
(
"NewY"
);
double
newZ
=
getProperty
(
"NewZ"
);
const
double
newX
=
getProperty
(
"NewX"
);
const
double
newY
=
getProperty
(
"NewY"
);
const
double
newZ
=
getProperty
(
"NewZ"
);
V3D
newSamplePos
=
V3D
(
newX
,
newY
,
newZ
);
if
(
events
!=
outEvents
)
{
outEvents
=
events
->
clone
();
...
...
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