10#include "MantidDataHandling/DllConfig.h"
23namespace DataHandling {
49 const std::string
name()
const override {
return "UpdateInstrumentFromFile"; }
51 const std::string
summary()
const override {
52 return "Updates detector positions initially loaded in from the Instrument "
53 "Definition File (IDF) with information from the provided file.";
57 const std::string
alias()
const override {
return "UpdateInstrumentFromRaw"; }
60 int version()
const override {
return 1; };
61 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadInstrument"}; }
64 const std::string
category()
const override {
return "DataHandling\\Instrument;DataHandling\\Raw"; }
73 void updateFromRaw(
const std::string &filename);
75 void updateFromNeXus(::NeXus::File &nxFile);
77 void updateFromAscii(
const std::string &filename);
84 : colCount(0), rColIdx(0), thetaColIdx(0), phiColIdx(0) {}
95 void setDetectorPositions(
const std::vector<int32_t> &detID,
const std::vector<float> &l2,
96 const std::vector<float> &theta,
const std::vector<float> &phi);
std::map< DeltaEMode::Type, std::string > index
Base class from which all concrete algorithm classes should be derived.
Update detector positions initially loaded in from Instrument Defintion File (IDF) from information i...
const std::string alias() const override
Algorithm's alias for the old UpdateInstrumentFromRaw.
bool m_ignorePhi
Cached ignore phi.
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 overriding a virtual method.
API::MatrixWorkspace_sptr m_workspace
The input workspace to modify.
bool m_ignoreMonitors
Cached ignore Monitors.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Geometry::DetectorInfo is an intermediate step towards a DetectorInfo that is part of Instrument-2....
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
Simple structure to store information about the ASCII file header.
std::set< size_t > detParCols
std::map< size_t, std::string > colToName