19namespace DataHandling {
20class DefaultEventLoader;
44 std::shared_ptr<std::vector<uint32_t>>
const &event_id,
46 std::shared_ptr<std::vector<uint64_t>>
const &
event_index,
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< uint64_t > const > event_index
vector of event index (length of # of pulses)
detid_t m_min_detid
Minimum pixel id (inclusive)
detid_t m_max_detid
Maximum pixel id (inclusive)
bool have_weight
Flag for simulated data.
DefaultEventLoader & m_loader
Algorithm being run.
std::shared_ptr< std::vector< float > const > event_weight
event weights array
std::string entry_name
NXS address to bank.
size_t startAt
index of the first event from event_index
detid_t pixelID_to_wi_offset
Offset in the pixelID_to_wi_vector to use.
std::shared_ptr< std::vector< float > const > event_time_of_flight
event TOF array
std::shared_ptr< std::vector< uint32_t > const > event_detid
event pixel ID 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.
void preCountAndReserveMem()
std::shared_ptr< BankPulseTimes const > thisBankPulseTimes
Pulse times for this bank.
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.
Helper class which provides the Collimation Length for SANS instruments.
int32_t detid_t
Typedef for a detector ID.