Mantid
Loading...
Searching...
No Matches
ScaleInstrumentComponent.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2024 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 "MantidDataHandling/DllConfig.h"
13
14namespace Mantid {
15
16namespace DataHandling {
17
18class MANTID_DATAHANDLING_DLL ScaleInstrumentComponent : public API::Algorithm {
19public:
22 const std::string name() const override { return "ScaleInstrumentComponent"; };
24 const std::string summary() const override {
25 return "Scales all detectors in a component around the component position.";
26 }
27
29 int version() const override { return 1; };
30 const std::vector<std::string> seeAlso() const override {
31 return {"RotateInstrumentComponent", "SetInstrumentParameter", "MoveInstrumentComponent"};
32 }
34 const std::string category() const override { return "DataHandling\\Instrument"; }
35
36 std::map<std::string, std::string> validateInputs() override;
37
38private:
40 void init() override;
41
43 void exec() override;
44
45 Mantid::Geometry::ComponentInfo *m_componentInfo = nullptr;
47};
48
49} // namespace DataHandling
50} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification overriding a virtual method.
Mantid::Geometry::IComponent_const_sptr m_comp
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::string category() const override
Algorithm's category for identification overriding a virtual method.
ComponentInfo : Provides a component centric view on to the instrument.
std::shared_ptr< const IComponent > IComponent_const_sptr
Typdef of a shared pointer to a const IComponent.
Definition IComponent.h:167
Helper class which provides the Collimation Length for SANS instruments.