-
Notifications
You must be signed in to change notification settings - Fork 122
/
OrMD.cpp
29 lines (22 loc) · 970 Bytes
/
OrMD.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#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)
//----------------------------------------------------------------------------------------------
/// 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