Mantid
Loading...
Searching...
No Matches
WeightedMeanMD.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
12
13namespace Mantid {
14namespace MDAlgorithms {
15
20class MANTID_MDALGORITHMS_DLL WeightedMeanMD : public BinaryOperationMD {
21public:
23 const std::string name() const override { return "WeightedMeanMD"; };
25 const std::string summary() const override { return "Find weighted mean of two MDHistoWorkspaces."; }
26
28 int version() const override { return 1; };
29 const std::vector<std::string> seeAlso() const override { return {"WeightedMean"}; }
30
31private:
33 bool commutative() const override;
34
36 void checkInputs() override;
37
39 void execEvent() override;
40
42 void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out,
44
46 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
48};
49
50} // namespace MDAlgorithms
51} // namespace Mantid
Abstract base class for binary operations on IMDWorkspaces, e.g.
WeightedMeanMD : Find the weighted mean of two MDWorkspaces.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification.
std::shared_ptr< const WorkspaceSingleValue > WorkspaceSingleValue_const_sptr
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
std::shared_ptr< const MDHistoWorkspace > MDHistoWorkspace_const_sptr
A shared pointer to a const MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.