Mantid
Loading...
Searching...
No Matches
TranslateSampleShape.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 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
11#include "MantidDataHandling/DllConfig.h"
12
13namespace Mantid {
14namespace DataHandling {
15
16class MANTID_DATAHANDLING_DLL TranslateSampleShape final : public API::Algorithm {
17public:
19 const std::string name() const override { return "TranslateSampleShape"; };
21 const std::string summary() const override { return "Redefine the initial position of the sample shape"; }
22
24 int version() const override { return 1; };
26 const std::string category() const override { return "DataHandling\\Instrument"; }
27
28private:
30 void init() override;
32 void exec() override;
33 bool checkIsValidShape(const API::ExperimentInfo_sptr &ei, std::string &shapeXML, bool &isMeshShape);
34 void setSampleShape(const API::Workspace_sptr &ws, std::string &translatedXML);
35};
36
37} // namespace DataHandling
38} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::string name() const override
Algorithm's name for identification.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< ExperimentInfo > ExperimentInfo_sptr
Shared pointer to ExperimentInfo.
Helper class which provides the Collimation Length for SANS instruments.