Mantid
Loading...
Searching...
No Matches
RebinByTimeBase.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
8
12#include "MantidAPI/Progress.h"
13#include "MantidAlgorithms/DllConfig.h"
15
16namespace Mantid {
17namespace Algorithms {
18
22class MANTID_ALGORITHMS_DLL RebinByTimeBase : public API::Algorithm {
23protected:
24 ~RebinByTimeBase() = default;
25
26private:
28 void init() override;
30 void exec() override;
33 Mantid::MantidVecPtr &XValues_new, Mantid::MantidVec &OutXValues_scaled,
34 Mantid::API::Progress &prog) = 0;
35
37 virtual uint64_t getMaxX(Mantid::API::IEventWorkspace_sptr ws) const = 0;
39 virtual uint64_t getMinX(Mantid::API::IEventWorkspace_sptr ws) const = 0;
40};
41
42} // namespace Algorithms
43} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Helper class for reporting progress from algorithms.
Definition: Progress.h:25
RebinByTimeBase : Algorithm base class for algorithms performing rebinning by an absolute time axis.
virtual void doHistogramming(Mantid::API::IEventWorkspace_sptr inWS, Mantid::API::MatrixWorkspace_sptr outputWS, Mantid::MantidVecPtr &XValues_new, Mantid::MantidVec &OutXValues_scaled, Mantid::API::Progress &prog)=0
Do the algorithm specific histogramming.
virtual uint64_t getMinX(Mantid::API::IEventWorkspace_sptr ws) const =0
Get the maximum x across all spectra in workspace.
virtual uint64_t getMaxX(Mantid::API::IEventWorkspace_sptr ws) const =0
Get the minimum x across all spectra in workspace.
Implements a copy on write data template.
Definition: cow_ptr.h:41
std::shared_ptr< IEventWorkspace > IEventWorkspace_sptr
shared pointer to Mantid::API::IEventWorkspace
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces
Definition: cow_ptr.h:172