43 std::vector<double> extents = {-50.0, 50.0};
45 "A comma separated list of min, max for each dimension,\n"
46 "specifying the extents of each dimension. Optional, default "
47 "+- 50 in each dimension.");
48 setPropertyGroup(
"Extents", getBoxSettingsGroupName());
62 std::vector<double> &maxVal) {
65 if (Extents.size() == 2) {
66 for (
size_t d = 0;
d < 3;
d++) {
67 minVal[
d] = Extents[0];
68 maxVal[
d] = Extents[1];
70 }
else if (Extents.size() == 6) {
71 for (
size_t d = 0;
d < 3;
d++) {
72 minVal[
d] = Extents[2 *
d + 0];
73 maxVal[
d] = Extents[2 *
d + 1];
76 throw std::invalid_argument(
"You must specify either 2 or 6 extents (min,max).");
#define DECLARE_ALGORITHM(classname)
Support for a property that holds an array of values.
void init() override
Initialize the algorithm's properties.
ConvertToDiffractionMDWorkspace2 : Create a MDEventWorkspace with events in reciprocal space (Qx,...
void convertExtents(const std::vector< double > &Extents, std::vector< double > &minVal, std::vector< double > &maxVal) override
Splits extents accepted by convertToDiffreactionMD workspace in the form min1,max1 or min1,...