Mantid
Loading...
Searching...
No Matches
IDynamicRebinning.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
9//
10namespace Mantid {
11namespace MDAlgorithms {
29
30public:
36 virtual size_t preselect_cells() = 0;
47 virtual bool rebin_data_chunk() = 0;
52 virtual bool rebin_data_chunk_keep_pixels() = 0;
56 virtual unsigned int getNumDataChunks() const = 0;
60 virtual uint64_t getNumPreselectedPixels() const = 0;
61
69 virtual uint64_t finalize_rebinning() = 0;
71 virtual ~IDynamicRebinning() = default;
72
73protected:
76}; // end IDynamicRebinning
77} // namespace MDAlgorithms
78} // namespace Mantid
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition: Logger.h:52
Class provides commont interface for various classes performing rebinning operations;.
virtual ~IDynamicRebinning()=default
destructor
virtual uint64_t getNumPreselectedPixels() const =0
function returns the number of pixels which can contribute into a cut (Number of pixels in selected c...
virtual unsigned int getNumDataChunks() const =0
returns the estimate for number of data chunks may be used to rebin the dataset Used by algorithms to...
virtual bool rebin_data_chunk()=0
function takes input multidimensional data points (pixels, events) stored in the source data buffer a...
virtual uint64_t finalize_rebinning()=0
Calculates signals and errors of the MD image, obtained as the result of one or more rebin_dataset op...
virtual size_t preselect_cells()=0
Function identifies the indexes of the sells of the source image that can contribute into the target ...
virtual bool rebin_data_chunk_keep_pixels()=0
The same as rebin_data_chunk but retains the datapoints (pixels) contributed in the image.
static Mantid::Kernel::Logger bin_log
logger -> to provide logging, for MD dataset file operations
Helper class which provides the Collimation Length for SANS instruments.