Mantid
Loading...
Searching...
No Matches
DetectorEfficiencyVariation.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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace Algorithms {
44class MANTID_ALGORITHMS_DLL DetectorEfficiencyVariation : public DetectorDiagnostic {
45public:
47 const std::string name() const override { return "DetectorEfficiencyVariation"; }
49 const std::string summary() const override {
50 return "Compares two white beam vanadium workspaces from the same "
51 "instrument to find detectors whose efficiencies have changed "
52 "beyond a threshold.";
53 }
54
55 const std::string category() const override;
57 int version() const override { return (1); }
58 const std::vector<std::string> seeAlso() const override { return {"DetectorDiagnostic"}; }
59
60protected:
61 // Overridden Algorithm methods
62 void init() override;
63 void exec() override;
64
66 void retrieveProperties(API::MatrixWorkspace_sptr &whiteBeam1, API::MatrixWorkspace_sptr &whiteBeam2,
67 double &variation, int &minSpec, int &maxSpec);
69 int doDetectorTests(const API::MatrixWorkspace_const_sptr &counts1, const API::MatrixWorkspace_const_sptr &counts2,
70 const double average, double variation);
71
72private:
73};
74
75} // namespace Algorithms
76} // namespace Mantid
A base class for a detector diagnostic algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this 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.