20#include "MantidCrystal/DllConfig.h"
38 std::string
name()
const override {
return std::string(
"PeakHKLErrors"); };
40 virtual int version()
const {
return 1; };
42 const std::string
category()
const override {
return "Calibration"; };
44 void function1D(
double *out,
const double *xValues,
const size_t nData)
const override;
68 double T0,
double L0);
70 static void cLone(std::shared_ptr<Geometry::ParameterMap> &
pmap,
71 const std::shared_ptr<const Geometry::IComponent> &component,
72 std::shared_ptr<const Geometry::ParameterMap> &pmapSv);
84 std::vector<std::string>
getAttributeNames()
const override {
return {
"OptRuns",
"PeakWorkspaceName"}; }
87 if (attName ==
"OptRuns")
90 if (attName ==
"PeakWorkspaceName")
93 throw std::invalid_argument(
"Not a valid attribute name");
97 if (attName ==
"OptRuns") {
98 OptRuns =
value.asString();
103 if (OptRuns.at(0) !=
'/')
104 OptRuns =
"/" + OptRuns;
106 if (OptRuns.at(OptRuns.size() - 1) !=
'/')
112 }
else if (initMode == 2)
113 throw std::invalid_argument(
"OptRuns can only be set once");
118 if (attName ==
"PeakWorkspaceName") {
119 PeakWorkspaceName =
value.asString();
123 throw std::invalid_argument(
"Not a valid attribute name");
127 if (attName ==
"OptRuns")
130 if (attName ==
"PeakWorkspaceName")
147 mutable bool hasParameterMap =
false;
149 mutable std::shared_ptr<const Geometry::ParameterMap>
pmapSv;
double value
The value of the point.
This is a specialization of IFunction for functions of one real argument.
Attribute is a non-fitting parameter.
Represents the Jacobian in IFitFunction::functionDeriv.
Implements the part of IFunction interface dealing with parameters.
size_t nAttributes() const override
Returns the number of attributes associated with the function.
std::string PeakWorkspaceName
std::vector< std::string > getAttributeNames() const override
Returns a list of attribute names.
std::shared_ptr< Geometry::Instrument > instChange
std::string name() const override
Returns the function's name.
IFunction::Attribute getAttribute(const std::string &attName) const override
Return a value of attribute attName.
virtual int version() const
bool hasAttribute(const std::string &attName) const override
Check if attribute attName exists.
const std::string category() const override
The categories the Fit function belong to.
void setAttribute(const std::string &attName, const IFunction::Attribute &value) override
Set a value to attribute attName.
std::shared_ptr< const Geometry::ParameterMap > pmapSv
Structure describing a single-crystal peak.
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
std::shared_ptr< Instrument > Instrument_sptr
Shared pointer to an instrument object.
Helper class which provides the Collimation Length for SANS instruments.
Generate a tableworkspace to store the calibration results.