-
Notifications
You must be signed in to change notification settings - Fork 122
/
IdentifyNoisyDetectors.h
47 lines (41 loc) · 1.86 KB
/
IdentifyNoisyDetectors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2010 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace Algorithms {
/**
Identifies "bad" detectors based on their standard deviation, and how this
differs from the
standard deviation of other detectors. Runs through the process three times to
get a narrower
view.
@author Michael Whitty
@date 24/01/2011
*/
class MANTID_ALGORITHMS_DLL IdentifyNoisyDetectors : public API::Algorithm {
public:
const std::string name() const override { return "IdentifyNoisyDetectors"; } ///< @return the algorithms name
/// Summary of algorithms purpose
const std::string summary() const override {
return "This algorithm creates a single-column workspace where the Y "
"values are populated withs 1s and 0s, 0 signifying that the "
"detector is to be considered 'bad' based on the method described "
"below.";
}
const std::string category() const override { return "Diagnostics"; } ///< @return the algorithms category
int version() const override { return (1); } ///< @return version number of algorithm
const std::vector<std::string> seeAlso() const override { return {"CreatePSDBleedMask"}; }
private:
void init() override; ///< Initialise the algorithm. Declare properties, etc.
void exec() override; ///< Executes the algorithm.
void getStdDev(API::Progress &progress, const Mantid::API::MatrixWorkspace_sptr &valid,
const Mantid::API::MatrixWorkspace_sptr &values);
};
} // namespace Algorithms
} // namespace Mantid