|
Mantid
|
Class describes the interface to the methods, which perform conversion from usual workspaces to MDEventWorkspace. More...
#include <ConvToMDBase.h>
Public Member Functions | |
| ConvToMDBase () | |
| empty default constructor | |
| UnitsConversionHelper & | getUnitConversionHelper () |
| method returns unit conversion helper, used to convert input workspace units to the units, used by appropriate MD transformation (if such conversion is necessary) | |
| virtual size_t | initialize (const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros) |
| method which initiates all main class variables | |
| virtual void | runConversion (API::Progress *)=0 |
| method which starts the conversion procedure | |
| virtual void | setDisplayNormalization (Mantid::API::IMDEventWorkspace_sptr mdWorkspace, const Mantid::API::MatrixWorkspace_sptr &underlyingWorkspace) |
| Set the normalization options. | |
| virtual | ~ConvToMDBase ()=default |
| virtual destructor | |
Protected Attributes | |
| std::vector< coord_t > | m_Coord |
| Mantid::Kernel::SpecialCoordinateSystem | m_coordinateSystem |
| Any special coordinate system used. | |
| std::vector< int32_t > | m_detID |
| std::vector< size_t > | m_detIDMap |
| uint16_t | m_ExpInfoIndex |
| bool | m_ignoreZeros |
| API::MatrixWorkspace_const_sptr | m_InWS2D |
| size_t | m_NDims |
| number of target ws dimensions | |
| uint32_t | m_NSpectra |
| int | m_NumThreads |
| std::shared_ptr< MDEventWSWrapper > | m_OutWSWrapper |
| MDTransf_sptr | m_QConverter |
| UnitsConversionHelper | m_UnitConversion |
Static Protected Attributes | |
| static Mantid::Kernel::Logger | g_Log |
Private Member Functions | |
| virtual size_t | conversionChunk (size_t job_ID)=0 |
| internal function which do one peace of work, which should be performed by one thread | |
Class describes the interface to the methods, which perform conversion from usual workspaces to MDEventWorkspace.
See dev-docs/source/WritingCustomConvertToMDTransformation.rst for detailed description of this class place in the algorithms hierarchy.
Definition at line 30 of file ConvToMDBase.h.
| Mantid::MDAlgorithms::ConvToMDBase::ConvToMDBase | ( | ) |
empty default constructor
Definition at line 102 of file ConvToMDBase.cpp.
|
virtualdefault |
virtual destructor
|
privatepure virtual |
internal function which do one peace of work, which should be performed by one thread
| job_ID | – the identifier which specifies, what part of the work on the workspace this job has to do. Often it is a spectra number |
Implemented in Mantid::MDAlgorithms::ConvToMDHistoWS, and Mantid::MDAlgorithms::ConvToMDEventsWS.
|
inline |
method returns unit conversion helper, used to convert input workspace units to the units, used by appropriate MD transformation (if such conversion is necessary)
Definition at line 49 of file ConvToMDBase.h.
|
virtual |
method which initiates all main class variables
method which initates all main class variables
| WSD | – class describing the target workspace. the algorithm uses target workspace limints, transformation matix from source to the target workspace and the parameters, needed for unit conversion (if any) |
| inWSWrapper | – shared pointer to target MD Event workspace to add converted events to. |
| ignoreZeros | – if true, 0 values on input histograms do not copied as events into resulting MD workspace. By false(default), they do. |
Reimplemented in Mantid::MDAlgorithms::ConvToMDEventsWS, Mantid::MDAlgorithms::ConvToMDEventsWSIndexing, and Mantid::MDAlgorithms::ConvToMDHistoWS.
Definition at line 29 of file ConvToMDBase.cpp.
References Mantid::MDAlgorithms::MDWSDescription::AlgID, g_Log, Mantid::MDAlgorithms::MDWSDescription::getCoordinateSystem(), Mantid::MDAlgorithms::MDWSDescription::getEMode(), Mantid::MDAlgorithms::MDWSDescription::getInWS(), Mantid::API::LogManager::getPropertyValueAsType(), Mantid::Kernel::Logger::information(), Mantid::MDAlgorithms::UnitsConversionHelper::initialize(), m_Coord, m_coordinateSystem, m_detID, m_detIDMap, m_ExpInfoIndex, m_ignoreZeros, m_InWS2D, m_NDims, m_NSpectra, m_NumThreads, m_OutWSWrapper, Mantid::MDAlgorithms::MDWSDescription::m_PreprDetTable, m_QConverter, and m_UnitConversion.
Referenced by Mantid::MDAlgorithms::ConvToMDEventsWS::initialize(), and Mantid::MDAlgorithms::ConvToMDHistoWS::initialize().
|
pure virtual |
method which starts the conversion procedure
Implemented in Mantid::MDAlgorithms::ConvToMDEventsWS, and Mantid::MDAlgorithms::ConvToMDHistoWS.
|
virtual |
Set the normalization options.
Definition at line 113 of file ConvToMDBase.cpp.
References m_QConverter.
|
staticprotected |
Definition at line 72 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::appendEvents(), and initialize().
|
protected |
Definition at line 74 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), initialize(), Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Any special coordinate system used.
Definition at line 86 of file ConvToMDBase.h.
Referenced by initialize(), Mantid::MDAlgorithms::ConvToMDEventsWS::initialize(), Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Definition at line 68 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), and initialize().
|
protected |
Definition at line 67 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), and initialize().
|
protected |
Definition at line 63 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), and initialize().
|
protected |
Definition at line 84 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), and initialize().
|
protected |
|
protected |
number of target ws dimensions
Definition at line 61 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), initialize(), Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Definition at line 66 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDEventsWS::appendEventsFromInputWS(), Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), initialize(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Definition at line 82 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDEventsWS::appendEventsFromInputWS(), initialize(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::numWorkers(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Definition at line 56 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::appendEvents(), Mantid::MDAlgorithms::ConvToMDEventsWS::appendEventsFromInputWS(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::appendEventsFromInputWS(), Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), initialize(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::initialize(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::mdEventType(), Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion(), and Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion().
|
protected |
Definition at line 59 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), initialize(), Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion(), Mantid::MDAlgorithms::ConvToMDHistoWS::runConversion(), and setDisplayNormalization().
|
protected |
Definition at line 76 of file ConvToMDBase.h.
Referenced by Mantid::MDAlgorithms::ConvToMDHistoWS::conversionChunk(), Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList(), Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::convertEvents(), and initialize().