Mantid
Loading...
Searching...
No Matches
AddLogDerivative.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
10#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
15
22class MANTID_ALGORITHMS_DLL AddLogDerivative final : public API::Algorithm {
23public:
25 const std::string name() const override { return "AddLogDerivative"; };
27 const std::string summary() const override {
28 return "Add a sample log that is the first or second derivative of an "
29 "existing sample log.";
30 }
31
33 int version() const override { return 1; };
34 const std::vector<std::string> seeAlso() const override { return {"AddSampleLog"}; }
36 const std::string category() const override { return "DataHandling\\Logs"; }
37
38 static Mantid::Kernel::TimeSeriesProperty<double> *makeDerivative(API::Progress &progress,
40 const std::string &name, int numDerivatives);
41
42private:
44 void init() override;
46 void exec() override;
47};
48
49} // namespace Algorithms
50} // 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
Takes an existing sample log, and calculates its first or second derivative, and adds it as a new log...
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
A specialised Property class for holding a series of time-value pairs.
Helper class which provides the Collimation Length for SANS instruments.