15#include "MantidDataHandling/DllConfig.h"
25namespace DataHandling {
36 const std::string
name()
const override {
return "LoadTOFRawNexus"; }
39 const std::string
summary()
const override {
return "Loads a NeXus file confirming to the TOFRaw format"; }
42 int version()
const override {
return 1; }
43 const std::vector<std::string>
seeAlso()
const override {
return {
"LoadNexus"}; }
46 const std::string
category()
const override {
return "DataHandling\\Nexus"; }
48 static std::string getEntryName(
const std::string &filename);
53 void countPixels(
const std::string &nexusfilename,
const std::string &entry_name,
54 std::vector<std::string> &bankNames);
75 void loadBank(
const std::string &nexusfilename,
const std::string &entry_name,
const std::string &bankName,
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Loads a NeXus file that conforms to the TOFRaw instrument definition format and stores it in a 2D wor...
size_t m_numBins
Number of bins.
void runLoadInstrument(DataObjects::Workspace2D_sptr)
Run LoadInstrument as a ChildAlgorithm.
std::string m_dataField
Name of the 'data' field to load (depending on Signal)
int m_signalNo
Signal # to load. Default 1.
bool m_assumeOldFile
Flag for whether or not to assume the data is old SNS raw files;.
int version() const override
Algorithm's version for identification overriding a virtual method.
void loadSampleData(DataObjects::Workspace2D_sptr, Mantid::NeXus::NXEntry &entry)
Load in details about the sample.
std::mutex m_fileMutex
Mutex to avoid simultaneous file access.
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 name() const override
Algorithm's name for identification overriding a virtual method.
size_t m_numPixels
Number of pixels.
std::string m_axisField
Name of the 'axis' field to load (depending on Signal)
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.
std::string m_xUnits
Units of the X axis found.
void checkOptionalProperties()
Validate the optional input properties.
std::vector< Types::Core::DateAndTime > pulseTimes
List of the absolute time of each pulse.
Defines a wrapper around a file whose internal structure can be accessed using the NeXus API.
Implements NXentry Nexus class.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
Helper class which provides the Collimation Length for SANS instruments.
std::unordered_map< detid_t, size_t > detid2index_map
Map with key = detector ID, value = workspace index.
int32_t specnum_t
Typedef for a spectrum Number.