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"
13
14namespace Mantid {
15namespace Geometry {
16class ComponentInfo;
17}
18namespace DataHandling {
19
25class MANTID_DATAHANDLING_DLL SaveIsawDetCal final : public API::Algorithm {
26public:
28 const std::string name() const override { return "SaveIsawDetCal"; }
30 const std::string summary() const override {
31 return "Saves an instrument with RectangularDetectors to an ISAW .DetCal "
32 "file.";
33 }
34
36 int version() const override { return 1; }
37 const std::vector<std::string> seeAlso() const override { return {"LoadIsawDetCal"}; }
39 const std::string category() const override { return "Diffraction\\DataHandling;DataHandling\\Isaw"; }
40
41private:
43 void init() override;
45 void exec() override;
47 Kernel::V3D findPixelPos(const std::string &bankName, int col, int row, const Geometry::ComponentInfo &componentInfo);
48 void sizeBanks(const std::string &bankName, int &NCOLS, int &NROWS, double &xsize, double &ysize,
49 const Geometry::ComponentInfo &componentInfo);
51};
52
53} // namespace DataHandling
54} // 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:35
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.