11#include "MantidAlgorithms/DllConfig.h"
29 const std::string
name()
const override;
30 int version()
const override;
31 const std::vector<std::string>
seeAlso()
const override {
return {
"CreateWorkspace"}; }
32 const std::string category()
const override;
34 const std::string
summary()
const override {
35 return "Creates sample workspaces for usage examples and other situations.";
43 double x0,
double binDelta,
45 const std::string &functionString,
bool isRandom);
48 const std::string &functionString,
bool isRandom);
51 const std::string &functionString,
bool isRandom,
54 int pixels,
double pixelDiameter,
double pixelHeight,
55 double pixelSpacing,
const double bankDistanceFromSample,
56 const double sourceSampleDistance,
57 const std::string &instrName);
61 std::vector<double> evalFunction(
const std::string &functionString, std::span<double const> xVal,
double noiseScale);
62 void replaceAll(std::string &str,
const std::string &from,
const std::string &to);
66 std::unique_ptr<Kernel::PseudoRandomNumberGenerator>
m_randGen;
Base class from which all concrete algorithm classes should be derived.
Helper class for reporting progress from algorithms.
CreateSampleWorkspace : This algorithm is intended for the creation of sample workspaces for usage ex...
std::unique_ptr< Kernel::PseudoRandomNumberGenerator > m_randGen
A pointer to the random number generator.
const std::string summary() const override
Algorithm's summary.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::map< std::string, std::string > m_preDefinedFunctionmap
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
std::shared_ptr< Instrument > Instrument_sptr
Shared pointer to an instrument object.
std::shared_ptr< IObject > IObject_sptr
Typdef for a shared pointer.
Helper class which provides the Collimation Length for SANS instruments.