Mantid
Loading...
Searching...
No Matches
CreatePSDBleedMask.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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace Algorithms {
33class MANTID_ALGORITHMS_DLL CreatePSDBleedMask : public DetectorDiagnostic {
34public:
38 const std::string name() const override { return "CreatePSDBleedMask"; }
40 const std::string summary() const override {
41 return "Runs a diagnostic test for saturation of PSD tubes and creates a "
42 "MaskWorkspace marking the failed tube spectra.";
43 }
44 const std::vector<std::string> seeAlso() const override { return {"IdentifyNoisyDetectors"}; }
45 const std::string category() const override;
46
47private:
48 // Overridden Algorithm methods
49 void init() override;
50 void exec() override;
51
53 bool performBleedTest(const std::vector<int> &tubeIndices, const API::MatrixWorkspace_const_sptr &inputWS,
54 double maxRate, int numIgnoredPixels);
56 void maskTube(const std::vector<int> &tubeIndices, const API::MatrixWorkspace_sptr &workspace);
57};
58
59} // namespace Algorithms
60} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
This algorithm implements a "bleed" diagnostic for PSD detectors (i.e.
const std::string summary() const override
Summary of algorithms purpose.
CreatePSDBleedMask()
Default constructor.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
A base class for a detector diagnostic algorithm.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.