Mantid
Loading...
Searching...
No Matches
ClearUB.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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
10#include "MantidCrystal/DllConfig.h"
11
12namespace Mantid {
13
14namespace API {
15class ExperimentInfo;
16}
17
18namespace Crystal {
19
23class MANTID_CRYSTAL_DLL ClearUB : public API::Algorithm {
24public:
25 virtual ~ClearUB() = default;
26 const std::string name() const override;
28 const std::string summary() const override {
29 return "Clears the UB by removing the oriented lattice from the sample.";
30 }
31
32 int version() const override;
33 const std::vector<std::string> seeAlso() const override { return {"SetUB", "HasUB"}; }
34 const std::string category() const override;
35
36protected:
37 bool doExecute(Mantid::API::Workspace *const ws, bool dryRun);
38
39private:
40 bool clearSingleExperimentInfo(Mantid::API::ExperimentInfo *const experimentInfo, const bool dryRun) const;
41 void init() override;
42 void exec() override;
43};
44
45} // namespace Crystal
46} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
This class is shared by a few Workspace types and holds information related to a particular experimen...
Base Workspace Abstract Class.
Definition: Workspace.h:30
ClearUB : Clear the UB matrix from a workspace by removing the oriented lattice.
Definition: ClearUB.h:23
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: ClearUB.h:33
virtual ~ClearUB()=default
const std::string summary() const override
Summary of algorithms purpose.
Definition: ClearUB.h:28
Helper class which provides the Collimation Length for SANS instruments.