22namespace DataHandling {
36 const std::string
name()
const override {
return "LoadRaw"; }
38 const std::string
summary()
const override {
39 return "Loads a data file in ISIS RAW format and stores it in a 2D "
40 "workspace (Workspace2D class).";
44 int version()
const override {
return 3; }
45 const std::vector<std::string>
seeAlso()
const override {
46 return {
"LoadVesuvio",
"RawFileInfo",
"LoadSampleDetailsFromRaw",
"LoadRawBin0",
"LoadRawSpectrum0"};
49 const std::string
category()
const override {
return "DataHandling\\Raw"; }
58 bool isMonitor(
const std::vector<specnum_t> &monitorIndexes,
specnum_t spectrumNum);
61 void validateWorkspaceSizes(
bool bexcludeMonitors,
bool bseparateMonitors,
const int64_t normalwsSpecs,
62 const int64_t monitorwsSpecs);
65 void excludeMonitors(FILE *file,
const int &period,
const std::vector<specnum_t> &monitorList,
73 void separateMonitors(FILE *file,
const int64_t &period,
const std::vector<specnum_t> &monitorList,
77 void skipPeriod(FILE *file,
const int64_t &period);
81 bool isPeriodIncluded(
int period)
const;
83 int getPreviousPeriod(
int period)
const;
86 void setOptionalProperties();
Loads an file in ISIS RAW format and stores it in a 2D workspace (Workspace2D class).
std::vector< std::shared_ptr< HistogramData::HistogramX > > m_timeChannelsVec
time channels vector
int64_t m_lengthIn
Read in the time bin boundaries.
int64_t m_noTimeRegimes
number of time regime
std::vector< int > m_periodList
A list of periods to read. Each value is between 1 and m_numberOfPeriods.
std::string m_filename
The name and path of the input file.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification overriding a virtual method.
double m_prog_start
Start and ends values of progress counter.
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.
int64_t m_total_specs
total number of specs
double m_prog
The current value of the progress counter.
bool isSelectedPeriods() const
return true if loading a selection of periods
std::vector< std::string > m_cache_options
Allowed values for the cache property.
std::map< int64_t, int64_t > m_specTimeRegimes
A map for storing the time regime for each spectrum.
specnum_t m_numberOfSpectra
The number of spectra in the raw file.
const std::string summary() const override
Summary of algorithms purpose.
Helper class for LoadRaw algorithms.
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
Helper class which provides the Collimation Length for SANS instruments.
int32_t specnum_t
Typedef for a spectrum Number.