Mantid
Loading...
Searching...
No Matches
SaveIsawPeaks.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 "MantidCrystal/DllConfig.h"
13
14namespace Mantid {
15
16namespace Crystal {
17
23class MANTID_CRYSTAL_DLL SaveIsawPeaks final : public API::Algorithm {
24public:
26 const std::string name() const override { return "SaveIsawPeaks"; };
28 const std::string summary() const override { return "Save a PeaksWorkspace to a ISAW-style ASCII .peaks file."; }
29
31 int version() const override { return 1; };
32 const std::vector<std::string> seeAlso() const override { return {"LoadIsawPeaks"}; }
34 const std::string category() const override { return "Crystal\\DataHandling;DataHandling\\Isaw"; }
35
36private:
38 bool m_isModulatedStructure = false;
39
41 void init() override;
43 void exec() override;
45 Kernel::V3D findPixelPos(const std::string &bankName, int col, int row);
46 void sizeBanks(const std::string &bankName, int &NCOLS, int &NROWS, double &xsize, double &ysize);
47 bool bankMasked(const Geometry::IComponent_const_sptr &parent, const Geometry::DetectorInfo &detectorInfo);
48 void writeOffsets(std::ofstream &out, double qSign, std::vector<double> offset);
50};
51
52} // namespace Crystal
53} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Save a PeaksWorkspace to a ISAW-style ASCII .peaks file.
Definition: SaveIsawPeaks.h:23
int version() const override
Algorithm's version for identification.
Definition: SaveIsawPeaks.h:31
const std::string category() const override
Algorithm's category for identification.
Definition: SaveIsawPeaks.h:34
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: SaveIsawPeaks.h:32
const std::string name() const override
Algorithm's name for identification.
Definition: SaveIsawPeaks.h:26
Geometry::Instrument_const_sptr inst
Definition: SaveIsawPeaks.h:49
const std::string summary() const override
Summary of algorithms purpose.
Definition: SaveIsawPeaks.h:28
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
Definition: DetectorInfo.h:49
Class for 3D vectors.
Definition: V3D.h:34
std::shared_ptr< const IComponent > IComponent_const_sptr
Typdef of a shared pointer to a const IComponent.
Definition: IComponent.h:161
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.