30 std::shared_ptr<MDAlgorithms::MDEventWSWrapper> inWSWrapper,
bool ignoreZeros) {
37 throw(std::runtime_error(
"Detector information has to be precalculated "
38 "before ConvToMDBase::initialize is deployed"));
68 size_t n_spectra =
m_InWS2D->getNumberHistograms();
78 auto nDThrheads = double(*(thrProperty));
84 "number of physical cores\n ";
107 m_ignoreZeros(false),
116 m_QConverter->setDisplayNormalization(mdWorkspace, underlyingWorkspace);
HeldType getPropertyValueAsType(const std::string &name) const
Get the value of a property as the given TYPE.
Exception for when an item is not found in a collection.
void information(const std::string &msg)
Logs at information level.
The concrete, templated class for properties.
Base class for properties.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
API::MatrixWorkspace_const_sptr m_InWS2D
std::vector< size_t > m_detIDMap
static Mantid::Kernel::Logger g_Log
std::vector< int32_t > m_detID
Mantid::Kernel::SpecialCoordinateSystem m_coordinateSystem
Any special coordinate system used.
virtual void setDisplayNormalization(Mantid::API::IMDEventWorkspace_sptr mdWorkspace, const Mantid::API::MatrixWorkspace_sptr &underlyingWorkspace)
Set the normalization options.
ConvToMDBase()
empty default constructor
MDTransf_sptr m_QConverter
std::vector< coord_t > m_Coord
virtual size_t initialize(const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros)
method which initiates all main class variables
size_t m_NDims
number of target ws dimensions
std::shared_ptr< MDEventWSWrapper > m_OutWSWrapper
UnitsConversionHelper m_UnitConversion
helper class describes the properties of target MD workspace, which should be obtained as the result ...
API::MatrixWorkspace_const_sptr getInWS() const
std::string AlgID
the string which describes ChildAlgorithm, used to convert source ws to target MD ws.
Mantid::Kernel::SpecialCoordinateSystem getCoordinateSystem() const
Kernel::DeltaEMode::Type getEMode() const
DataObjects::TableWorkspace_const_sptr m_PreprDetTable
void initialize(const MDWSDescription &targetWSDescr, const std::string &unitsTo, bool forceViaTOF=false)
Initialize unit conversion helper This method is interface to internal initialize method,...
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...