Mantid
|
small class to select proper solver as function of the workspace kind and (possibly, in a future) other workspace parameters. More...
#include <ConvToMDSelector.h>
Public Types | |
enum | ConverterType { DEFAULT , INDEXED } |
Public Member Functions | |
std::shared_ptr< ConvToMDBase > | convSelector (const API::MatrixWorkspace_sptr &inputWS, std::shared_ptr< ConvToMDBase > ¤tSolver) const |
function which selects the convertor depending on workspace type and (possibly, in a future) some workspace properties More... | |
ConvToMDSelector (ConverterType tp=DEFAULT) | |
Private Attributes | |
ConverterType | converterType |
small class to select proper solver as function of the workspace kind and (possibly, in a future) other workspace parameters.
may be replaced by usual mantid factory in a future;
See http://www.mantidproject.org/Writing_custom_ConvertTo_MD_transformation for detailed description of this class place in the algorithms hierarchy.
Definition at line 25 of file ConvToMDSelector.h.
Enumerator | |
---|---|
DEFAULT | |
INDEXED |
Definition at line 27 of file ConvToMDSelector.h.
Mantid::MDAlgorithms::ConvToMDSelector::ConvToMDSelector | ( | ConvToMDSelector::ConverterType | tp = DEFAULT | ) |
tp | :: type of converter (indexed or default) |
Definition at line 23 of file ConvToMDSelector.cpp.
std::shared_ptr< ConvToMDBase > Mantid::MDAlgorithms::ConvToMDSelector::convSelector | ( | const API::MatrixWorkspace_sptr & | inputWS, |
std::shared_ptr< ConvToMDBase > & | currentSolver | ||
) | const |
function which selects the convertor depending on workspace type and (possibly, in a future) some workspace properties
inputWS | – the sp to workspace which has to be processed |
currentSolver | – the sp to the existing solver (may be undef if not initiated) |
Definition at line 33 of file ConvToMDSelector.cpp.
References converterType, DEFAULT, Mantid::MDAlgorithms::EventWS, Mantid::MDAlgorithms::Matrix2DWS, and Mantid::MDAlgorithms::Undefined.
Referenced by Mantid::MDAlgorithms::ConvertToMD::exec().
|
private |
Definition at line 39 of file ConvToMDSelector.h.
Referenced by convSelector().