Mantid
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
Mantid::Algorithms::SofQW Class Reference

#include <SofQW.h>

Inheritance diagram for Mantid::Algorithms::SofQW:
Mantid::API::GenericDataProcessorAlgorithm< Base >

Public Member Functions

const std::string category () const override
 Algorithm's category for identification. More...
 
const std::string name () const override
 Algorithm's name. More...
 
const std::vector< std::string > seeAlso () const override
 
const std::string summary () const override
 Summary of algorithms purpose. More...
 
int version () const override
 Algorithm's version. More...
 
- Public Member Functions inherited from Mantid::API::GenericDataProcessorAlgorithm< Base >
 GenericDataProcessorAlgorithm ()
 Constructor. More...
 
Kernel::IPropertyManager::TypedValue getProperty (const std::string &name) const override
 Get the property held by this object. More...
 
std::string getPropertyValue (const std::string &name) const override
 Get the property held by this object. More...
 

Static Public Member Functions

static void createCommonInputProperties (API::Algorithm &alg)
 Create the input properties on the given algorithm object. More...
 
template<typename Workspace >
static std::unique_ptr< WorkspacesetUpOutputWorkspace (const API::MatrixWorkspace &inputWorkspace, const std::vector< double > &qbinParams, std::vector< double > &qAxis, const std::vector< double > &ebinParams, const SofQCommon &emodeProperties)
 Create the output workspace. More...
 

Private Member Functions

void exec () override
 Execution code. More...
 
void init () override
 Initialization code. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Mantid::API::GenericDataProcessorAlgorithm< Base >
Workspace_sptr assemble (const std::string &partialWSName, const std::string &outputWSName)
 Assemble the partial workspaces from all MPI processes. More...
 
Workspace_sptr assemble (Workspace_sptr partialWS)
 Assemble the partial workspaces from all MPI processes. More...
 
void copyProperty (const API::Algorithm_sptr &alg, const std::string &name)
 Copy a property from an existing algorithm. More...
 
std::shared_ptr< AlgorithmcreateChildAlgorithm (const std::string &name, const double startProgress=-1., const double endProgress=-1., const bool enableLogging=true, const int &version=-1) override
 Create a Child Algorithm. More...
 
virtual ITableWorkspace_sptr determineChunk (const std::string &filename)
 
MatrixWorkspace_sptr divide (const MatrixWorkspace_sptr lhs, const double &rhsValue)
 Divide a matrix workspace by a single value. More...
 
MatrixWorkspace_sptr divide (const MatrixWorkspace_sptr lhs, const MatrixWorkspace_sptr rhs)
 Divide a matrix workspace by another matrix workspace. More...
 
void forwardProperties ()
 
int getNThreads ()
 Return the number of MPI processes running. More...
 
std::shared_ptr< Kernel::PropertyManagergetProcessProperties (const std::string &propertyManager=std::string()) const
 Get the property manager object of a given name from the property manager data service, or create a new one. More...
 
bool isMainThread ()
 Return true if we are running on the main thread. More...
 
Workspace_sptr load (const std::string &inputData, const bool loadQuiet=false)
 Determine what kind of input data we have and load it. More...
 
virtual MatrixWorkspace_sptr loadChunk (const size_t rowIndex)
 
void mapPropertyName (const std::string &nameInProp, const std::string &nameInPropManager)
 Declare mapping of property name to name in the PropertyManager. More...
 
MatrixWorkspace_sptr minus (const MatrixWorkspace_sptr lhs, const double &rhsValue)
 Subract a single value from a matrix workspace. More...
 
MatrixWorkspace_sptr minus (const MatrixWorkspace_sptr lhs, const MatrixWorkspace_sptr rhs)
 Subract a matrix workspace by another matrix workspace. More...
 
MatrixWorkspace_sptr multiply (const MatrixWorkspace_sptr lhs, const double &rhsValue)
 Multiply a matrix workspace by a single value. More...
 
MatrixWorkspace_sptr multiply (const MatrixWorkspace_sptr lhs, const MatrixWorkspace_sptr rhs)
 Multiply a matrix workspace by another matrix workspace. More...
 
MatrixWorkspace_sptr plus (const MatrixWorkspace_sptr lhs, const double &rhsValue)
 Add a single value to a matrix workspace. More...
 
MatrixWorkspace_sptr plus (const MatrixWorkspace_sptr lhs, const MatrixWorkspace_sptr rhs)
 Add a matrix workspace to another matrix workspace. More...
 
void saveNexus (const std::string &outputWSName, const std::string &outputFile)
 Save a workspace as a nexus file, with check for which thread we are executing in. More...
 
void setAccumAlg (const std::string &alg)
 
void setLoadAlg (const std::string &alg)
 
void setLoadAlgFileProp (const std::string &filePropName)
 
void setPropManagerPropName (const std::string &propName)
 
std::vector< std::string > splitInput (const std::string &input)
 
- Protected Attributes inherited from Mantid::API::GenericDataProcessorAlgorithm< Base >
bool m_useMPI
 MPI option. If false, we will use one job event if MPI is available. More...
 

Detailed Description

Definition at line 44 of file SofQW.h.

Member Function Documentation

◆ category()

const std::string Mantid::Algorithms::SofQW::category ( ) const
inlineoverride

Algorithm's category for identification.

Definition at line 57 of file SofQW.h.

◆ createCommonInputProperties()

void Mantid::Algorithms::SofQW::createCommonInputProperties ( API::Algorithm alg)
static

Create the input properties on the given algorithm object.

Create the common set of input properties for the given algorithm.

Parameters
algAn algorithm object

Definition at line 69 of file SofQW.cpp.

References Mantid::API::Algorithm::declareProperty(), Mantid::Kernel::Direction::Input, Mantid::API::PropertyMode::Optional, and Mantid::Kernel::Direction::Output.

Referenced by init(), Mantid::Algorithms::SofQWCentre::init(), Mantid::Algorithms::SofQWNormalisedPolygon::init(), and Mantid::Algorithms::SofQWPolygon::init().

◆ exec()

void Mantid::Algorithms::SofQW::exec ( )
overrideprivate

◆ init()

void Mantid::Algorithms::SofQW::init ( )
overrideprivate

Initialization code.

Create the input properties.

Definition at line 54 of file SofQW.cpp.

References createCommonInputProperties().

◆ name()

const std::string Mantid::Algorithms::SofQW::name ( ) const
inlineoverride

Algorithm's name.

Definition at line 47 of file SofQW.h.

◆ seeAlso()

const std::vector< std::string > Mantid::Algorithms::SofQW::seeAlso ( ) const
inlineoverride

Definition at line 53 of file SofQW.h.

◆ setUpOutputWorkspace()

template<typename Workspace >
std::unique_ptr< Workspace > Mantid::Algorithms::SofQW::setUpOutputWorkspace ( const API::MatrixWorkspace inputWorkspace,
const std::vector< double > &  qbinParams,
std::vector< double > &  qAxis,
const std::vector< double > &  ebinParams,
const SofQCommon emodeProperties 
)
static

Create the output workspace.

Creates the output workspace, setting the axes according to the input binning parameters.

Template Parameters
WorkspaceThe type of the workspace to create
Parameters
[in]inputWorkspaceThe input workspace
[in]qbinParamsThe q-bin parameters from the user
[out]qAxisThe 'vertical' (q) axis defined by the given parameters
[out]ebinParamsThe 'horizontal' (energy) axis parameters (optional)
[in]emodePropertiesThe initialized SofQCommon object corresponding to the input workspace and calling algorithm
Returns
A pointer to the newly-created workspace

Definition at line 87 of file SofQW.h.

References Mantid::API::MatrixWorkspace::binEdges(), Mantid::Kernel::VectorHelper::createAxisFromRebinParams(), Mantid::API::MatrixWorkspace::getXMinMax(), Mantid::Kernel::SingletonHolder< T >::Instance(), and Mantid::Algorithms::SofQCommon::qBinHints().

◆ summary()

const std::string Mantid::Algorithms::SofQW::summary ( ) const
override

Summary of algorithms purpose.

Returns
A summary of the algorithm

Definition at line 37 of file SofQW.cpp.

◆ version()

int Mantid::Algorithms::SofQW::version ( ) const
inlineoverride

Algorithm's version.

Definition at line 52 of file SofQW.h.


The documentation for this class was generated from the following files: