Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Mantid::MDAlgorithms::ConvToMDEventsWS Class Reference

The class specializes ConvToDataObjectsBase for the case when the conversion occurs from Events WS to the MD events WS. More...

#include <ConvToMDEventsWS.h>

Inheritance diagram for Mantid::MDAlgorithms::ConvToMDEventsWS:
Mantid::MDAlgorithms::ConvToMDBase Mantid::MDAlgorithms::ConvToMDEventsWSIndexing

Public Member Functions

size_t initialize (const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros) override
 method sets up all internal variables necessary to convert from Event Workspace to MDEvent workspace More...
 
void runConversion (API::Progress *pProgress) override
 method which starts the conversion procedure More...
 
- Public Member Functions inherited from Mantid::MDAlgorithms::ConvToMDBase
 ConvToMDBase ()
 empty default constructor More...
 
UnitsConversionHelpergetUnitConversionHelper ()
 method returns unit conversion helper, used to convert input workspace units to the units, used by appropriate MD transformation (if such conversion is necessary) More...
 
virtual size_t initialize (const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros)
 method which initiates all main class variables More...
 
virtual void runConversion (API::Progress *)=0
 method which starts the conversion procedure More...
 
virtual void setDisplayNormalization (Mantid::API::IMDEventWorkspace_sptr mdWorkspace, const Mantid::API::MatrixWorkspace_sptr &underlyingWorkspace)
 Set the normalization options. More...
 
virtual ~ConvToMDBase ()=default
 virtual destructor More...
 

Protected Attributes

DataObjects::EventWorkspace_const_sptr m_EventWS
 
- Protected Attributes inherited from Mantid::MDAlgorithms::ConvToMDBase
std::vector< coord_tm_Coord
 
Mantid::Kernel::SpecialCoordinateSystem m_coordinateSystem
 Any special coordinate system used. More...
 
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 More...
 
uint32_t m_NSpectra
 
int m_NumThreads
 
std::shared_ptr< MDEventWSWrapperm_OutWSWrapper
 
MDTransf_sptr m_QConverter
 
UnitsConversionHelper m_UnitConversion
 

Private Member Functions

virtual void appendEventsFromInputWS (API::Progress *pProgress, const API::BoxController_sptr &bc)
 
size_t conversionChunk (size_t workspaceIndex) override
 The method runs conversion for a single event list, corresponding to a particular workspace index. More...
 
template<class T >
size_t convertEventList (size_t workspaceIndex)
 function converts particular type of events into MD space and add these events to the workspace itself
More...
 

Additional Inherited Members

- Static Protected Attributes inherited from Mantid::MDAlgorithms::ConvToMDBase
static Mantid::Kernel::Logger g_Log
 

Detailed Description

The class specializes ConvToDataObjectsBase for the case when the conversion occurs from Events WS to the MD events WS.

See http://www.mantidproject.org/Writing_custom_ConvertTo_MD_transformation for detailed description of this class place in the algorithms hierarchy.

Date
11-10-2011

Definition at line 38 of file ConvToMDEventsWS.h.

Member Function Documentation

◆ appendEventsFromInputWS()

void Mantid::MDAlgorithms::ConvToMDEventsWS::appendEventsFromInputWS ( API::Progress pProgress,
const API::BoxController_sptr bc 
)
privatevirtual

◆ conversionChunk()

size_t Mantid::MDAlgorithms::ConvToMDEventsWS::conversionChunk ( size_t  workspaceIndex)
overrideprivatevirtual

The method runs conversion for a single event list, corresponding to a particular workspace index.

Implements Mantid::MDAlgorithms::ConvToMDBase.

Definition at line 78 of file ConvToMDEventsWS.cpp.

References m_EventWS, Mantid::API::TOF, Mantid::API::WEIGHTED, and Mantid::API::WEIGHTED_NOTIME.

Referenced by appendEventsFromInputWS().

◆ convertEventList()

template<class T >
size_t Mantid::MDAlgorithms::ConvToMDEventsWS::convertEventList ( size_t  workspaceIndex)
private

◆ initialize()

size_t Mantid::MDAlgorithms::ConvToMDEventsWS::initialize ( const MDWSDescription WSD,
std::shared_ptr< MDEventWSWrapper inWSWrapper,
bool  ignoreZeros 
)
overridevirtual

method sets up all internal variables necessary to convert from Event Workspace to MDEvent workspace

Parameters
WSD– the class describing the target MD workspace, sorurce Event workspace and the transformations, necessary to perform on these workspaces
inWSWrapper– the class wrapping the target MD workspace
ignoreZeros– if zero value signals should be rejected

Reimplemented from Mantid::MDAlgorithms::ConvToMDBase.

Reimplemented in Mantid::MDAlgorithms::ConvToMDEventsWSIndexing.

Definition at line 100 of file ConvToMDEventsWS.cpp.

References Mantid::MDAlgorithms::MDWSDescription::getCoordinateSystem(), Mantid::MDAlgorithms::ConvToMDBase::initialize(), Mantid::MDAlgorithms::ConvToMDBase::m_coordinateSystem, m_EventWS, and Mantid::MDAlgorithms::ConvToMDBase::m_InWS2D.

Referenced by Mantid::MDAlgorithms::ConvToMDEventsWSIndexing::initialize().

◆ runConversion()

void Mantid::MDAlgorithms::ConvToMDEventsWS::runConversion ( API::Progress )
overridevirtual

Member Data Documentation

◆ m_EventWS

DataObjects::EventWorkspace_const_sptr Mantid::MDAlgorithms::ConvToMDEventsWS::m_EventWS
protected

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