-
Notifications
You must be signed in to change notification settings - Fork 122
/
StepScan.h
48 lines (42 loc) · 1.67 KB
/
StepScan.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
48
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2013 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 "MantidDataObjects/EventWorkspace.h"
#include "MantidKernel/System.h"
namespace Mantid {
namespace WorkflowAlgorithms {
/** This workflow algorithm is for generation of a rocking curve from an
alignment scan performed
on an ADARA-enabled instrument at the SNS.
An important thing to note about this algorithm is that it may modify the
input workspace.
*/
class DLLExport StepScan : public API::Algorithm {
public:
const std::string name() const override;
/// Summary of algorithms purpose
const std::string summary() const override {
return "Workflow algorithm for analysis of an alignment scan from an SNS "
"Adara-enabled beam line";
}
int version() const override;
const std::string category() const override;
private:
void init() override;
void exec() override;
DataObjects::EventWorkspace_sptr
getMonitorWorkspace(const API::MatrixWorkspace_sptr &inputWS);
DataObjects::EventWorkspace_sptr
cloneInputWorkspace(const API::Workspace_sptr &inputWS);
void runMaskDetectors(const API::MatrixWorkspace_sptr &inputWS,
const API::MatrixWorkspace_sptr &maskWS);
void runFilterByXValue(const API::MatrixWorkspace_sptr &inputWS,
const double xmin, const double xmax);
};
} // namespace WorkflowAlgorithms
} // namespace Mantid