21namespace DataHandling {
22class DefaultEventLoader;
47 std::shared_ptr<std::vector<uint32_t>>
event_id,
72 std::shared_ptr<std::vector<uint32_t>>
event_id;
Helper class for reporting progress from algorithms.
Helper class for LoadEventNexus that is specific to the current default loading code for NXevent_data...
This task does the disk IO from loading the NXS file, and so will be on a disk IO mutex.
size_t getWorkspaceIndexFromPixelID(const detid_t pixID)
Get the workspace index for a given pixel ID.
std::shared_ptr< std::vector< float > > event_weight
event weights array
bool have_weight
Flag for simulated data.
size_t getFirstEventIndex(const size_t pulseIndex) const
Mantid::Kernel::Timer m_timer
timer for performance
DefaultEventLoader & m_loader
Algorithm being run.
detid_t m_max_id
Maximum pixel id.
std::shared_ptr< std::vector< uint64_t > > event_index
vector of event index (length of # of pulses)
std::string entry_name
NXS path to bank.
size_t startAt
index of the first event from event_index
std::shared_ptr< std::vector< uint32_t > > event_id
event pixel ID array
detid_t m_min_id
Minimum pixel id.
detid_t pixelID_to_wi_offset
Offset in the pixelID_to_wi_vector to use.
std::shared_ptr< std::vector< float > > event_time_of_flight
event TOF array
const std::vector< size_t > & pixelID_to_wi_vector
Vector where (index = pixel ID+pixelID_to_wi_offset), value = workspace index)
API::Progress * prog
Progress reporting.
std::shared_ptr< BankPulseTimes > thisBankPulseTimes
Pulse times for this bank.
size_t getLastEventIndex(const size_t pulseIndex, const size_t numPulses) const
void run() override
Run the data processing FIXME/TODO - split run() into readable methods.
A Task is a unit of work to be scheduled and run by a ThreadPool.
A simple class that provides a wall-clock (not processor time) timer.
Helper class which provides the Collimation Length for SANS instruments.
int32_t detid_t
Typedef for a detector ID.