Mantid
Loading...
Searching...
No Matches
SaveIsawDetCal.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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"
12
13namespace Mantid {
14namespace Geometry {
15class ComponentInfo;
16}
17namespace Kernel {
18class V3D;
19}
20namespace DataHandling {
21
27class MANTID_DATAHANDLING_DLL SaveIsawDetCal final : public API::Algorithm {
28public:
30 const std::string name() const override { return "SaveIsawDetCal"; }
32 const std::string summary() const override {
33 return "Saves an instrument with RectangularDetectors to an ISAW .DetCal "
34 "file.";
35 }
36
38 int version() const override { return 1; }
39 const std::vector<std::string> seeAlso() const override { return {"LoadIsawDetCal"}; }
41 const std::string category() const override { return "Diffraction\\DataHandling;DataHandling\\Isaw"; }
42
43private:
45 void init() override;
47 void exec() override;
49 Kernel::V3D findPixelPos(const std::string &bankName, int col, int row, const Geometry::ComponentInfo &componentInfo);
50 void sizeBanks(const std::string &bankName, int &NCOLS, int &NROWS, double &xsize, double &ysize,
51 const Geometry::ComponentInfo &componentInfo);
53};
54
55} // namespace DataHandling
56} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
Saves an instrument with RectangularDetectors to an ISAW .DetCal file.
const std::string category() const override
Algorithm's category for identification.
const std::string name() const override
Algorithm's name for identification.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification.
Geometry::Instrument_const_sptr inst
ComponentInfo : Provides a component centric view on to the instrument.
Class for 3D vectors.
Definition V3D.h:34
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.