10#include "MantidDataHandling/DllConfig.h"
19namespace DataHandling {
45 const std::string
name()
const override {
return "UpdateInstrumentFromFile"; }
47 const std::string
summary()
const override {
48 return "Updates detector positions initially loaded in from the Instrument "
49 "Definition File (IDF) with information from the provided file.";
53 const std::string
alias()
const override {
return "UpdateInstrumentFromRaw"; }
56 int version()
const override {
return 1; };
57 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadInstrument"}; }
60 const std::string
category()
const override {
return "DataHandling\\Instrument;DataHandling\\Raw"; }
69 void updateFromRaw(
const std::string &filename);
71 void updateFromNeXus(Nexus::File &nxFile);
73 void updateFromAscii(
const std::string &filename);
80 : colCount(0), rColIdx(0), thetaColIdx(0), phiColIdx(0) {}
91 void setDetectorPositions(
const std::vector<int32_t> &detID,
const std::vector<float> &l2,
92 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