Mantid
Loading...
Searching...
No Matches
RebinByPulseTimes.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
9#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
14
18class MANTID_ALGORITHMS_DLL RebinByPulseTimes : public RebinByTimeBase {
19public:
20 const std::string name() const override;
22 const std::string summary() const override {
23 return "Bins events according to pulse time. Binning parameters are "
24 "specified relative to the start of the run.";
25 }
26
27 int version() const override;
28
29 const std::string category() const override;
31 const std::vector<std::string> seeAlso() const override { return {"Rebin", "RebinByTimeAtSample"}; }
32
33private:
36 Mantid::MantidVecPtr &XValues_new, Mantid::MantidVec &OutXValues_scaled,
37 Mantid::API::Progress &prog) override;
38
40 uint64_t getMaxX(Mantid::API::IEventWorkspace_sptr) const override;
42 uint64_t getMinX(Mantid::API::IEventWorkspace_sptr) const override;
43};
44
45} // namespace Algorithms
46} // namespace Mantid
Helper class for reporting progress from algorithms.
Definition: Progress.h:25
RebinByPulseTimes : Rebin an input EventWorkspace according to the pulse times of the events.
const std::vector< std::string > seeAlso() const override
Algorithm's seeAlso.
const std::string summary() const override
Summary of algorithms purpose.
RebinByTimeBase : Algorithm base class for algorithms performing rebinning by an absolute time axis.
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