Mantid
Loading...
Searching...
No Matches
MaskDetectorsInShape.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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 "MantidDataHandling/DllConfig.h"
11
12namespace Mantid {
13namespace DataHandling {
40class MANTID_DATAHANDLING_DLL MaskDetectorsInShape : public API::DistributedAlgorithm {
41public:
43 const std::string name() const override { return "MaskDetectorsInShape"; };
45 int version() const override { return 1; };
46 const std::vector<std::string> seeAlso() const override { return {"MaskDetectors", "FindDetectorsInShape"}; }
48 const std::string category() const override { return "Transforms\\Masking"; }
50 const std::string summary() const override { return "Masks detectors whose centres fall within the given 3D shape."; }
51
52private:
53 // Implement abstract Algorithm methods
54 void init() override;
55 void exec() override;
56
57 // internal functions
58 std::vector<int> runFindDetectorsInShape(const API::MatrixWorkspace_sptr &workspace, const std::string &shapeXML,
59 const bool includeMonitors);
61 void runMaskDetectors(const API::MatrixWorkspace_sptr &workspace, const std::vector<int> &detectorIds);
62};
63
64} // namespace DataHandling
65} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
An algorithm for finding masking detectors that are contained within a user defined shape within the ...
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 summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.