46 "Original event workspace");
48 "Output event workspace with a modified sample position");
49 declareProperty(
"NewX", 0.0,
"New Absolute X position of crystal.");
50 declareProperty(
"NewY", 0.0,
"New Absolute Y position of crystal.");
51 declareProperty(
"NewZ", 0.0,
"New Absolute Z position of crystal.");
62 V3D newSamplePos =
V3D(newX, newY, newZ);
63 if (events != outEvents) {
64 outEvents = events->clone();
67 auto &componentInfo = outEvents->mutableComponentInfo();
#define DECLARE_ALGORITHM(classname)
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
A property class for workspaces.
void exec() override
Virtual method - must be overridden by concrete algorithm.
This class contains static utility methods for indexing peaks and finding the UB matrix.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
MANTID_CRYSTAL_DLL void adjustUpSampleAndSourcePositions(double const L0, const Kernel::V3D &newSampPos, Geometry::ComponentInfo &componentInfo)
Updates the ComponentInfo for the workspace containing newInstrument to reflect the position of the s...
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
@ Input
An input workspace.
@ Output
An output workspace.