Skip to content
Snippets Groups Projects
Commit 3aa7e69e authored by Sullivan, Brendan T's avatar Sullivan, Brendan T
Browse files

Re #24329 make reviewer suggested changes

parent 2ff4c1a0
No related branches found
No related tags found
No related merge requests found
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2012 ISIS Rutherford Appleton Laboratory UKRI,
// Copyright © 2018 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; };
......
......@@ -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();
......
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