10#include "MantidDataHandling/DllConfig.h"
15namespace DataHandling {
89 const std::string
name()
const override {
return "LoadNGEM"; }
91 const std::string
summary()
const override {
92 return "Load a file or range of files created by the nGEM detector into a "
96 int version()
const override {
return 1; }
98 const std::string
category()
const override {
return "DataHandling\\NGEM"; };
107 void init()
override;
109 void exec()
override;
111 void loadSingleFile(
const std::vector<std::string> &filePath,
int &eventCountInFrame,
double &maxToF,
double &minToF,
112 int &rawFrames,
int &goodFrames,
const int &minEventsReq,
const int &maxEventsReq,
113 MantidVec &frameEventCounts, std::vector<DataObjects::EventList> &events,
114 std::vector<DataObjects::EventList> &eventsInFrame,
const size_t &totalFilePaths,
int &fileCount);
116 size_t verifyFileSize(std::ifstream &file);
118 bool reportProgressAndCheckCancel(
size_t &numProcessedEvents,
int &eventCountInFrame,
const size_t &totalNumEvents,
119 const size_t &totalFilePaths,
const int &fileCount);
121 void createCountWorkspace(
const std::vector<double> &frameEventCounts);
125 std::map<std::string, std::string> validateInputs()
override;
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
const std::string name() const override
Algorithm's name for identification.
int version() const override
Algorithm's Version for identification.
bool loadMutipleAsOne() override
Should the loader load multiple files into one workspace.
const std::string summary() const override
The purpose of the algorithm.
const std::string category() const override
Algorithm's category for identification.
Defines a wrapper around an open file.
static constexpr uint64_t CONTIN_ID_VALUE
static constexpr uint64_t EVENT_ID_MASK
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces
uint64_t getPixel() const
static constexpr int COINCIDENCE_IDENTIFIER
Holds the 128 bit words from the detector.
Generic event to separate bits.
Indicate time 0, the start of a new frame.
static constexpr int T0_IDENTIFIER
Is able to hold all versions of the data words in the same memory location.
CoincidenceEvent coincidence