13#include "MantidMDAlgorithms/DllConfig.h"
15#include <nexus/NeXusFile.hpp>
18namespace MDAlgorithms {
32 const std::string
name()
const override {
return "MergeMDFiles"; };
34 const std::string
summary()
const override {
35 return "Merge multiple MDEventWorkspaces from files that obey a common box "
40 int version()
const override {
return 1; };
41 const std::vector<std::string>
seeAlso()
const override {
return {
"MergeMD"}; }
43 const std::string
category()
const override {
return "MDAlgorithms\\Creation"; }
55 void finalizeOutput(
const std::string &outputFile);
57 uint64_t loadEventsFromSubBoxes(
API::IMDNode *TargetBox);
67 void clearEventLoaders();
98 std::unique_ptr<Mantid::API::Progress> m_progress =
nullptr;
Base class from which all concrete algorithm classes should be derived.
The class responsible for saving/loading MD boxes structure to/from HDD and for flattening/restoring ...
Algorithm to merge multiple MDEventWorkspaces from files that obey a common box format.
std::mutex m_fileMutex
Mutex for file access.
std::string m_MDEventType
string describes type of the event, stored in the workspaces.
int version() const override
Algorithm's version for identification.
std::vector< std::string > m_Filenames
Files to load.
std::vector< API::IBoxControllerIO * > m_EventLoader
Vector of file handles to each input file //TODO unique?
int m_nDims
number of workspace dimensions
bool m_fileBasedTargetWS
if the workspace is indeed file-based
DataObjects::MDBoxFlatTree m_BoxStruct
std::vector< DataObjects::MDBoxFlatTree > m_fileComponentsStructure
const std::string category() const override
Algorithm's category for identification.
Mantid::API::IMDEventWorkspace_sptr m_OutIWS
Output IMDEventWorkspace.
std::mutex m_statsMutex
Mutex for modifying stats.
const std::string name() const override
Algorithm's name for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Helper class which provides the Collimation Length for SANS instruments.