Mantid
Loading...
Searching...
No Matches
RemovePromptPulse.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11#include "MantidAPI/Run.h"
12#include "MantidAlgorithms/DllConfig.h"
13
14namespace Mantid {
15namespace Algorithms {
16
22class MANTID_ALGORITHMS_DLL RemovePromptPulse : public API::Algorithm {
23public:
25 const std::string name() const override;
26
28 int version() const override;
29
31 const std::string category() const override;
32
34 const std::string summary() const override { return "Remove the prompt pulse for a time of flight measurement."; }
35
36private:
38
40 void init() override;
42 void exec() override;
44 double getFrequency(const API::Run &run);
45 void getTofRange(const API::MatrixWorkspace_const_sptr &wksp, double &tmin, double &tmax);
46 std::vector<double> calculatePulseTimes(const double tmin, const double tmax, const double period,
47 const double width);
48};
49
50} // namespace Algorithms
51} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
This class stores information regarding an experimental run as a series of log entries.
Definition Run.h:35
RemovePromptPulse : TODO: DESCRIPTION.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.