Mantid
Loading...
Searching...
No Matches
LoadRawBin0.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
13#include "MantidDataHandling/DllConfig.h"
16
17#include <climits>
18
19//----------------------------------------------------------------------
20// Forward declaration
21//----------------------------------------------------------------------
22class ISISRAW2;
23
24namespace Mantid {
25namespace DataHandling {
53class MANTID_DATAHANDLING_DLL LoadRawBin0 : public LoadRawHelper {
54public:
58 const std::string name() const override { return "LoadRawBin0"; }
60 const std::string summary() const override {
61 return "Loads bin zero from ISIS raw file and stores it in a 2D "
62 "workspace (Workspace2D class).";
63 }
64
66 int version() const override { return 1; }
67 const std::vector<std::string> seeAlso() const override { return {"LoadRawSpectrum0", "LoadRaw"}; }
69 const std::string category() const override { return "Diagnostics\\Raw;DataHandling\\Raw"; }
70
71private:
73 void init() override;
75 void exec() override;
76
78 void setOptionalProperties();
79
82 std::shared_ptr<ISISRAW2> isisRaw;
84 std::string m_filename;
85
90
92 std::vector<std::string> m_cache_options;
94 std::map<int64_t, int64_t> m_specTimeRegimes;
96 double m_prog;
97
99 int64_t m_lengthIn;
101 std::shared_ptr<Kernel::Property> m_perioids;
102
106 std::vector<std::shared_ptr<HistogramData::HistogramX>> m_timeChannelsVec;
107};
108} // namespace DataHandling
109} // namespace Mantid
isis raw file.
Definition isisraw2.h:13
Loads bin zero for all spectra from ISIS RAW file and stores it in a 2D workspace (Workspace2D class)...
Definition LoadRawBin0.h:53
std::shared_ptr< ISISRAW2 > isisRaw
ISISRAW class instance which does raw file reading.
Definition LoadRawBin0.h:82
std::string m_filename
The name and path of the input file.
Definition LoadRawBin0.h:84
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition LoadRawBin0.h:66
int64_t m_noTimeRegimes
number of time regime
Definition LoadRawBin0.h:89
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition LoadRawBin0.h:67
double m_prog
The current value of the progress counter.
Definition LoadRawBin0.h:96
std::shared_ptr< Kernel::Property > m_perioids
TimeSeriesProperty<int> containing data periods.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition LoadRawBin0.h:69
int64_t m_lengthIn
Read in the time bin boundaries.
Definition LoadRawBin0.h:99
std::vector< std::shared_ptr< HistogramData::HistogramX > > m_timeChannelsVec
time channel vector
specnum_t m_numberOfSpectra
The number of spectra in the raw file.
Definition LoadRawBin0.h:87
const std::string summary() const override
Summary of algorithms purpose.
Definition LoadRawBin0.h:60
std::vector< std::string > m_cache_options
Allowed values for the cache property.
Definition LoadRawBin0.h:92
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition LoadRawBin0.h:58
specnum_t m_total_specs
total number of specs
std::map< int64_t, int64_t > m_specTimeRegimes
A map for storing the time regime for each spectrum.
Definition LoadRawBin0.h:94
Helper class for LoadRaw algorithms.
Helper class which provides the Collimation Length for SANS instruments.
int32_t specnum_t
Typedef for a spectrum Number.
Definition IDTypes.h:14