Mantid
Loading...
Searching...
No Matches
LoadIsawSpectrum.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 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"
12
13namespace Mantid {
14namespace Crystal {
15
20class MANTID_CRYSTAL_DLL LoadIsawSpectrum final : public API::Algorithm {
21public:
23 const std::string name() const override { return "LoadIsawSpectrum"; };
25 const std::string summary() const override {
26 return "Load incident spectrum and detector efficiency correction file.";
27 }
28
30 int version() const override { return 1; };
31 const std::vector<std::string> seeAlso() const override { return {"SaveIsawPeaks", "SaveIsawUB"}; }
33 const std::string category() const override { return "Crystal\\DataHandling;DataHandling\\Text"; }
34
35private:
37 void init() override;
39 void exec() override;
40
41 double spectrumCalc(double TOF, int iSpec, std::vector<std::vector<double>> time,
42 std::vector<std::vector<double>> spectra, size_t id);
43 void getInstrument3WaysInit(Algorithm *alg);
44 Geometry::Instrument_const_sptr getInstrument3Ways(Algorithm *alg);
45};
46
47} // namespace Crystal
48} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Load incident spectrum and detector efficiency correction file.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name for identification.
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.