11#include "MantidAlgorithms/DllConfig.h"
27 const std::string name()
const override;
28 int version()
const override;
29 const std::vector<std::string>
seeAlso()
const override {
return {
"CreateWorkspace"}; }
30 const std::string category()
const override;
32 const std::string
summary()
const override {
33 return "Creates sample workspaces for usage examples and other situations.";
41 double x0,
double binDelta,
43 const std::string &functionString,
bool isRandom);
46 const std::string &functionString,
bool isRandom);
49 const std::string &functionString,
bool isRandom,
52 int pixels,
double pixelDiameter,
double pixelHeight,
53 double pixelSpacing,
const double bankDistanceFromSample,
54 const double sourceSampleDistance,
55 const std::string &instrName);
59 std::vector<double> evalFunction(
const std::string &functionString,
const std::vector<double> &xVal,
61 void replaceAll(std::string &str,
const std::string &from,
const std::string &to);
65 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.