42 "An input workspace.");
53 const std::vector<double> hklValue = this->
getProperty(
"HKL");
55 std::unique_ptr<Mantid::Geometry::IPeak>(peakWS->createPeakHKL(
V3D(hklValue[0], hklValue[1], hklValue[2])));
56 peakWS->addPeak(*peak);
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
A property class for workspaces.
AddPeakHKL : Algorithm to add a peaks to a PeaksWorkspace in the HKL frame.
const std::string summary() const override
Algorithm's summary for use in the GUI and help.
int version() const override
Algorithm's version for identification.
void exec() override
Execute the algorithm.
void init() override
Initialize the algorithm's properties.
const std::string category() const override
Algorithm's category for identification.
ArrayLenghtValidator : Validate length of an array property.
Support for a property that holds an array of values.
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
@ InOut
Both an input & output workspace.