27namespace DataHandling {
64 const std::string
name()
const override {
return "LoadHFIRSANS"; }
66 const std::string
summary()
const override {
67 return "Loads a SANS data file produce by the HFIR instruments at ORNL. "
68 "The instrument geometry is also loaded. The center of the detector "
69 "is placed at (0,0,D), where D is the sample-to-detector distance.";
73 int version()
const override {
return 1; }
74 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadSpiceAscii",
"LoadSpiceXML2DDet"}; }
76 const std::string
category()
const override {
return "DataHandling\\Text;SANS\\DataHandling"; }
89 void setInputFileAsHandler();
90 void setSansSpiceXmlFormatVersion();
94 std::pair<int, int> parseDetectorDimensions(
const std::string &dims_str);
95 std::vector<int> readData(
const std::string &dataXpath =
"//Data");
96 void permuteTubes(std::vector<int> &data);
98 void storeValue(
int specID,
double value,
double error,
double wavelength,
double dwavelength);
100 template <
class T>
void addRunProperty(
const std::string &name,
const T &
value,
const std::string &units =
"");
101 template <
class T>
void addRunTimeSeriesProperty(
const std::string &name,
const T &
value);
102 void setBeamTrapRunProperty();
103 void storeMetaDataIntoWS();
104 void runLoadInstrument();
105 void rotateDetector();
106 void setDetectorDistance();
108 std::string getInstrumentStringParameter(
const std::string ¶meter);
109 double getInstrumentDoubleParameter(
const std::string ¶meter);
110 double getSourceToSampleDistance();
111 void setBeamDiameter();
115 static const int m_nMonitors = 2;
117 const std::vector<std::string> m_tags_to_ignore{
"Detector",
"DetectorWing"};
123 double m_sansSpiceXmlFormatVersion{0.0};
double value
The value of the point.
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
This algorithm loads a SPICE2D file for HFIR SANS into a workspace.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Mantid::Types::Core::DateAndTime m_startTime
DataObjects::Workspace2D_sptr m_workspace
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Mantid::DataHandling::XmlHandler m_xmlHandler
int getNumberOfMonitors() const
std::map< std::string, std::string > m_metadata
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
double m_sampleDetectorDistance
int version() const override
Algorithm's version for identification overriding a virtual method.
Mantid::Types::Core::DateAndTime m_endTime
Defines a wrapper around an open file.
std::shared_ptr< T > createWorkspace(InitArgs... args)
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
Helper class which provides the Collimation Length for SANS instruments.