Skip to content
Snippets Groups Projects
OrMD.cpp 1.21 KiB
Newer Older
#include "MantidMDAlgorithms/OrMD.h"
#include "MantidKernel/System.h"

using namespace Mantid::Kernel;
using namespace Mantid::API;

namespace Mantid {
namespace MDAlgorithms {
// Register the algorithm into the AlgorithmFactory
DECLARE_ALGORITHM(OrMD)

//----------------------------------------------------------------------------------------------
/** Constructor
 */
OrMD::OrMD() {}

//----------------------------------------------------------------------------------------------
/** Destructor
 */
OrMD::~OrMD() {}

//----------------------------------------------------------------------------------------------
/// Algorithm's name for identification. @see Algorithm::name
const std::string OrMD::name() const { return "OrMD"; }

/// Algorithm's version for identification. @see Algorithm::version
int OrMD::version() const { return 1; }

//----------------------------------------------------------------------------------------------
/// Run the algorithm with a MDHisotWorkspace as output and operand
void OrMD::execHistoHisto(
    Mantid::DataObjects::MDHistoWorkspace_sptr out,
    Mantid::DataObjects::MDHistoWorkspace_const_sptr operand) {
  out->operator|=(*operand);
}

} // namespace Mantid
} // namespace MDAlgorithms