30 "Raw diffraction data workspace for associated correction to be "
31 "calculated for. Workspace must have instrument and sample data.");
34 "Workspace of fitted incident spectrum with it's first derivative. Must be in units of Wavelength.");
37 "Workspace with the Self scattering correction");
38 declareProperty(
"CrystalDensity",
EMPTY_DBL(),
"The crystalographic density of the sample material.");
47 const double crystalDensity =
getProperty(
"CrystalDensity");
50 alg->setProperty(
"IncidentSpectra", incidentWS);
51 alg->setProperty(
"InputWorkspace", inWS);
52 alg->setProperty(
"CrystalDensity", crystalDensity);
53 alg->setProperty(
"Order", 1);
56 if (!
bool(outputWS)) {
57 throw std::runtime_error(
"Failed to get the outputworkspace");
64 cvtalg->setProperty(
"InputWorkspace", outputWS);
65 cvtalg->setProperty(
"outputWorkspace", outputWS);
66 cvtalg->setProperty(
"Target",
"TOF");
68 outputWS = cvtalg->getProperty(
"OutputWorkspace");
#define DECLARE_ALGORITHM(classname)
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
virtual std::shared_ptr< Algorithm > createChildAlgorithm(const std::string &name, const double startProgress=-1., const double endProgress=-1., const bool enableLogging=true, const int &version=-1)
Create a Child Algorithm.
A property class for workspaces.
CalculatePlaczekSelfScattering2 : TODO: DESCRIPTION.
void exec() override
Execute the algorithm.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
constexpr double EMPTY_DBL() noexcept
Returns what we consider an "empty" double within a property.
@ Input
An input workspace.
@ Output
An output workspace.