13#include "MantidDataHandling/DllConfig.h"
25namespace DataHandling {
52 const std::string
name()
const override {
return "SetScalingPSD"; };
54 const std::string
summary()
const override {
55 return "For an instrument with Position Sensitive Detectors (PSDs) the "
56 "'engineering' positions of individual detectors may not match the "
57 "true areas where neutrons are detected. This algorithm reads data "
58 "on the calibrated location of the detectors and adjusts the "
59 "parametrized instrument geometry accordingly.";
63 int version()
const override {
return 1; };
65 const std::string
category()
const override {
return "CorrectionFunctions\\InstrumentCorrections"; }
78 bool processScalingFile(
const std::string &scalingFile, std::vector<Kernel::V3D> &truePos);
85 void getDetPositionsFromRaw(
const std::string &rawfile, std::vector<int> &detID, std::vector<Kernel::V3D> &pos);
Base class from which all concrete algorithm classes should be derived.
Read the scaling information from a file (e.g.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
std::string m_filename
The name and path of the input file.
API::MatrixWorkspace_sptr m_workspace
Pointer to the workspace.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
int m_scalingOption
An integer option controlling the scaling method.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.