Mantid
Loading...
Searching...
No Matches
SliceMD.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
12
13namespace Mantid {
14namespace MDAlgorithms {
15
22class MANTID_MDALGORITHMS_DLL SliceMD : public SlicingAlgorithm {
23public:
25 // enum BoxState
26 //{
27 // boxTooSmall, // too few events in the box worth considering its vertices
28 // boxOutside, // box is not small but is completely out of slice
29 // boxWorthConsidering // box belongs to slice and its events worth
30 // considering for slicing
31 //};
32
34 const std::string name() const override { return "SliceMD"; };
36 const std::string summary() const override {
37 return "Make a MDEventWorkspace containing the events in a slice of an "
38 "input MDEventWorkspace.";
39 }
40
42 int version() const override { return 1; };
43 const std::vector<std::string> seeAlso() const override { return {"SliceMDHisto", "ProjectMD", "CutMD", "BinMD"}; }
45 const std::string category() const override { return "MDAlgorithms\\Slicing"; }
46
47private:
49 void init() override;
51 void exec() override;
52
54 template <typename MDE, size_t nd> void doExec(typename DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
55
57 template <typename MDE, size_t nd, typename OMDE, size_t ond>
59
60protected: // for testing
61 /* /// Method to slice box's events if the box itself belongs to the slice
62 template<typename MDE, size_t nd, typename OMDE, size_t ond>
63 void sliceMDBox(MDBox<MDE, nd> * box, size_t * chunkMin, size_t * chunkMax);
64
65 template<typename MDE, size_t nd, typename OMDE, size_t ond>
66 BoxState foundBoxState(MDBox<MDE, nd> * box, size_t * chunkMin, size_t *
67 chunkMax);*/
68};
69
70} // namespace MDAlgorithms
71} // namespace Mantid
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Algorithm that can take a slice out of an original MDEventWorkspace while preserving all the events c...
Definition: SliceMD.h:22
const std::string category() const override
Algorithm's category for identification.
Definition: SliceMD.h:45
const std::string name() const override
Algorithm's name for identification.
Definition: SliceMD.h:34
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: SliceMD.h:43
int version() const override
Algorithm's version for identification.
Definition: SliceMD.h:42
const std::string summary() const override
Summary of algorithms purpose.
Definition: SliceMD.h:36
Abstract Algorithm class that will be used by: BinMD and SliceMD and shares code for getting a slice ...
Helper class which provides the Collimation Length for SANS instruments.