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 Kernel {
15class V3D;
16}
17namespace DataHandling {
18
24class MANTID_DATAHANDLING_DLL SaveIsawDetCal final : public API::Algorithm {
25public:
27 const std::string name() const override { return "SaveIsawDetCal"; }
29 const std::string summary() const override {
30 return "Saves an instrument with RectangularDetectors to an ISAW .DetCal "
31 "file.";
32 }
33
35 int version() const override { return 1; }
36 const std::vector<std::string> seeAlso() const override { return {"LoadIsawDetCal"}; }
38 const std::string category() const override { return "Diffraction\\DataHandling;DataHandling\\Isaw"; }
39
40private:
42 void init() override;
44 void exec() override;
46 Kernel::V3D findPixelPos(const std::string &bankName, int col, int row);
47 void sizeBanks(const std::string &bankName, int &NCOLS, int &NROWS, double &xsize, double &ysize);
49};
50
51} // namespace DataHandling
52} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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
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.