18 const auto &split_into =
m_OutWSWrapper->pWorkspace()->getBoxController()->getSplitIntoAll();
21 std::string arg = std::accumulate(split_into.cbegin(), split_into.cend(), std::string(),
22 [](
const auto &lhs,
const auto &i) { return lhs + std::to_string(i) +
" "; });
23 throw std::invalid_argument(
"SplitInto can't be [" + arg +
"]" +
24 " ,all splits have to be the same and equal the power of 2.");
32 appendEvents<2>(pProgress, bc);
36 appendEventsFromInputWS<8>(pProgress, bc);
Helper class for reporting progress from algorithms.
std::shared_ptr< MDEventWSWrapper > m_OutWSWrapper
size_t initialize(const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros) override
method sets up all internal variables necessary to convert from Event Workspace to MDEvent workspace
void appendEventsFromInputWS(API::Progress *pProgress, const API::BoxController_sptr &bc) override
static bool isSplitValid(const std::vector< T > &split_into)
size_t initialize(const MDWSDescription &WSD, std::shared_ptr< MDEventWSWrapper > inWSWrapper, bool ignoreZeros) override
method sets up all internal variables necessary to convert from Event Workspace to MDEvent workspace
helper class describes the properties of target MD workspace, which should be obtained as the result ...
std::shared_ptr< BoxController > BoxController_sptr
Shared ptr to BoxController.