32 std::string getPropertyValue(
const std::string &name)
const override;
36 std::shared_ptr<Algorithm> createChildAlgorithm(
const std::string &name,
const double startProgress = -1.,
37 const double endProgress = -1.,
const bool enableLogging =
true,
38 const int &version = -1)
override;
39 void setLoadAlg(
const std::string &alg);
40 void setLoadAlgFileProp(
const std::string &filePropName);
41 void setAccumAlg(
const std::string &alg);
42 void setPropManagerPropName(
const std::string &propName);
43 void mapPropertyName(
const std::string &nameInProp,
const std::string &nameInPropManager);
47 Workspace_sptr load(
const std::string &inputData,
const bool loadQuiet =
false);
48 std::vector<std::string> splitInput(
const std::string &input);
49 void forwardProperties();
50 std::shared_ptr<Kernel::PropertyManager>
51 getProcessProperties(
const std::string &propertyManager = std::string())
const;
55 Workspace_sptr assemble(
const std::string &partialWSName, [[maybe_unused]]
const std::string &outputWSName);
56 void saveNexus(
const std::string &outputWSName,
const std::string &outputFile);
81 template <
typename LHSType,
typename RHSType,
typename ResultType>
83 auto alg = createChildAlgorithm(algorithmName);
86 alg->template setProperty<LHSType>(
"LHSWorkspace", lhs);
87 alg->template setProperty<RHSType>(
"RHSWorkspace",
rhs);
90 if (alg->isExecuted()) {
92 return alg->getProperty(
"OutputWorkspace");
94 std::string message =
"Error while executing operation: " + algorithmName;
95 throw std::runtime_error(message);
120 void visualStudioC4661Workaround();
const std::vector< double > & rhs
Data processor algorithm to be used as a parent to workflow algorithms.
std::string m_loadAlgFileProp
An alternate filename property for the load algorithm.
std::string m_propertyManagerPropertyName
The name of the parameter that names the property manager.
std::map< std::string, std::string > m_nameToPMName
Map property names to names in supplied properties manager.
std::string m_accumulateAlg
The name of the algorithm to invoke when accumulating data chunks.
void visualStudioC4661Workaround()
std::string m_loadAlg
The name of the algorithm to invoke when loading data.
ResultType executeBinaryAlgorithm(const std::string &algorithmName, const LHSType lhs, const RHSType rhs)
bool m_useMPI
MPI option. If false, we will use one job event if MPI is available.
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< Algorithm > Algorithm_sptr
Typedef for a shared pointer to an Algorithm.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
Utility class that enables the getProperty() method to effectively be templated on the return type.