13#include "MantidAlgorithms/DllConfig.h"
15#include <boost/function.hpp>
19#include <unordered_map>
35 const std::string
name()
const override {
return "MaskDetectorsIf"; }
37 const std::string
summary()
const override {
38 return "Masks detectors depending on the values in the input workspace.";
42 int version()
const override {
return 1; }
43 const std::vector<std::string>
seeAlso()
const override {
return {
"MaskDetectors"}; }
45 const std::string
category()
const override {
return "Diffraction\\Masking;Transforms\\Masking"; }
53 bool m_select_on =
false;
60 void outputToWorkspace();
61 void retrieveProperties();
62 void createNewCalFile();
65 std::map<std::string, std::string> validateInputs()
override;
const std::string & m_value
Base class from which all concrete algorithm classes should be derived.
This algorithm is used to select/deselect detectors in a *.cal file.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
boost::function< bool(double, double)> m_compar_f
A comparator function.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
API::MatrixWorkspace_const_sptr m_inputW
The input workspace.
std::unordered_map< detid_t, bool > udet2valuem
Typedef for det to value map.
const std::string summary() const override
Summary of algorithms purpose.
udet2valuem m_umap
A map from detid to selection.
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.