11#include "MantidDataHandling/DllConfig.h"
21namespace DataHandling {
22class DefaultEventLoader;
23class CompressEventAccumulatorFactory;
30 std::shared_ptr<std::vector<uint32_t>> event_detid,
31 std::shared_ptr<std::vector<float>> event_tof,
size_t startAt,
32 std::shared_ptr<std::vector<uint64_t>> event_index,
33 std::shared_ptr<BankPulseTimes> bankPulseTimes,
detid_t min_detid,
detid_t max_detid,
34 std::shared_ptr<std::vector<double>> histogram_bin_edges,
const double divisor);
38 void addEvent(
const size_t period_index,
const size_t event_index);
40 void createWeightedEvents(
const size_t period_index,
const detid_t detid,
41 std::vector<Mantid::DataObjects::WeightedEventNoTime> *raw_events);
44 double totalWeight()
const;
47 void createAccumulators(
const bool precount);
49 void addToEventLists();
60 std::unique_ptr<CompressEventAccumulatorFactory>
m_factory;
76 std::vector<std::vector<std::unique_ptr<DataHandling::CompressEventAccumulator>>>
m_spectra_accum;
Helper class for reporting progress from algorithms.
Helper class for LoadEventNexus that is specific to the current default loading code for NXevent_data...
ProcessBankCompressed : TODO: DESCRIPTION.
std::vector< DataObjects::EventSortType > m_sorting
std::shared_ptr< BankPulseTimes > m_bankPulseTimes
Pulse times for this bank.
std::unique_ptr< CompressEventAccumulatorFactory > m_factory
factory for creating accumulators
std::shared_ptr< std::vector< uint64_t > > m_event_index
vector of event index (length of # of pulses)
DefaultEventLoader & m_loader
Algorithm being run.
const size_t m_firstEventIndex
index of the first event from event_index
std::shared_ptr< std::vector< uint32_t > > m_event_detid
event pixel ID array
API::Progress * m_prog
Progress reporting.
const std::string m_entry_name
std::shared_ptr< std::vector< float > > m_event_tof
event TOF array
const detid_t m_detid_max
const detid_t m_detid_min
std::vector< std::vector< std::unique_ptr< DataHandling::CompressEventAccumulator > > > m_spectra_accum
Objects holding individual spectra.
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.