15#include "MantidMDAlgorithms/DllConfig.h"
17#include <boost/optional.hpp>
18#include <boost/scoped_ptr.hpp>
21namespace MDAlgorithms {
33 const std::string
name()
const override {
return "LoadMD"; };
35 const std::string
summary()
const override {
return "Load a MDEventWorkspace in .nxs format."; }
38 int version()
const override {
return 1; };
39 const std::vector<std::string>
seeAlso()
const override {
return {
"SaveMD"}; }
41 const std::string
category()
const override {
return "MDAlgorithms\\DataHandling"; }
50 void execLoader()
override;
61 ::NeXus::NXnumtype dataType);
64 void loadDimensions();
66 void loadDimensions2();
68 void loadCoordinateSystem();
70 void loadQConvention();
72 void loadVisualNormalization(
const std::string &key, boost::optional<Mantid::API::MDNormalization> &normalization);
90 boost::scoped_ptr< ::NeXus::File>
m_file;
100 std::vector<Mantid::Geometry::IMDDimension_sptr>
m_dims;
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Load a .nxs file into a MDEventWorkspace.
const std::string summary() const override
Summary of algorithms purpose.
std::vector< Mantid::Geometry::IMDDimension_sptr > m_dims
Each dimension object loaded.
Kernel::SpecialCoordinateSystem m_coordSystem
Coordinate system.
boost::optional< Mantid::API::MDNormalization > m_visualNormalizationHisto
int version() const override
Algorithm's version for identification.
bool m_requiresMDFrameCorrection
MDFrame correction flag.
void loadExperimentInfos(std::shared_ptr< Mantid::API::MultipleExperimentInfos > ws)
boost::scoped_ptr< ::NeXus::File > m_file
Open file handle.
std::string m_QConvention
QConvention.
std::string m_filename
Name of that file.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int m_saveMDVersion
Version of SaveMD used to save the file.
bool m_BoxStructureAndMethadata
load only the box structure with empty boxes but do not tload boxes events
static const std::string VISUAL_NORMALIZATION_KEY_HISTO
const std::string category() const override
Algorithm's category for identification.
static const std::string VISUAL_NORMALIZATION_KEY
Named entry.
boost::optional< Mantid::API::MDNormalization > m_visualNormalization
Visual normalization.
const std::string name() const override
Algorithm's name for identification.
size_t m_numDims
Number of dimensions in loaded file.
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
SpecialCoordinateSystem
Special coordinate systems for Q3D.
Helper class which provides the Collimation Length for SANS instruments.