10#include "MantidDataHandling/DllConfig.h"
15namespace DataHandling {
22 const std::string
name()
const override {
return "LoadDetectorInfo"; }
24 const std::string
summary()
const override {
25 return "Loads delay times, tube pressures, tube wall thicknesses and, if "
26 "necessary, the detectors positions from a given special format "
31 int version()
const override {
return 1; }
32 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadRaw",
"LoadNexus"}; }
34 const std::string
category()
const override {
return "DataHandling\\Raw"; }
40 std::vector<detid_t>
ids;
43 std::vector<double>
l2, theta, phi;
53 void loadFromDAT(
const std::string &filename);
55 void loadFromRAW(
const std::string &filename);
57 void loadFromIsisNXS(
const std::string &filename);
59 void readLibisisNxs(Nexus::File &nxsFile,
DetectorInfo &detInfo)
const;
61 void readNXSDotDat(Nexus::File &nxsFile,
DetectorInfo &detInfo)
const;
66 const double delay,
const double pressure,
const double thickness)
const;
Base class from which all concrete algorithm classes should be derived.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
double m_instThickness
Wall thickness value set on the instrument level.
double m_instDelta
Delta value that has been set on the instrument.
int version() const override
Algorithm's version for identification overriding a virtual method.
bool m_moveDets
If set to true then update the detector positions base on the information in the given file.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Kernel::V3D m_samplePos
Cached sample position for this workspace.
const std::string summary() const override
Summary of algorithms purpose.
API::MatrixWorkspace_sptr m_workspace
store a pointer to the user selected workspace
double m_instPressure
Pressure value set on the instrument level.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
ComponentInfo : Provides a component centric view on to the instrument.
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 data holder for passing the detector info around when dealing with the NeXus data.
std::vector< double > pressures
std::vector< detid_t > ids
std::vector< double > delays
std::vector< int32_t > codes