38 "Input Peaks Workspace");
40 this->
declareProperty(
"OverWrite",
false,
"Overwrite existing miller indices as well as empty ones.");
43 "Gets set with the number of indexed peaks.");
51 const int n_peaks = ws->getNumberPeaks();
61 throw std::runtime_error(
"The UB is not valid");
65 for (
int i = 0; i < n_peaks; i++) {
66 IPeak &peak = ws->getPeak(i);
69 V3D hkl = UB_inverse * qlab / (2.0 * M_PI);
#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.
CalculatePeaksHKL : Calculate the HKL value for each peak without any rounding or optimization of the...
const std::string category() const override
Algorithm's category for identification.
void exec() override
Execute the algorithm.
void init() override
Initialize the algorithm's properties.
int version() const override
Algorithm's version for identification.
Structure describing a single-crystal peak.
virtual void setHKL(double H, double K, double L)=0
virtual Mantid::Kernel::V3D getQSampleFrame() const =0
virtual void setIntHKL(const Mantid::Kernel::V3D &HKL)=0
virtual Mantid::Kernel::V3D getHKL() const =0
static bool CheckUB(const Kernel::DblMatrix &UB)
Check that the specified UB is reasonable for an orientation matrix.
Class to implement UB matrix.
const Kernel::DblMatrix & getUB() const
Get the UB matrix.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
T Invert()
LU inversion routine.
The concrete, templated class for properties.
bool nullVector(const double tolerance=1e-3) const noexcept
Determine if the point is null.
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
@ InOut
Both an input & output workspace.
@ Output
An output workspace.