Mantid
Loading...
Searching...
No Matches
ProcessBankSplitTask.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 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
8#pragma once
9
16#include <H5Cpp.h>
17#include <MantidAPI/Progress.h>
18#include <map>
19#include <set>
20#include <tbb/tbb.h>
21#include <vector>
22
24
26public:
27 ProcessBankSplitTask(std::vector<std::string> &bankEntryNames, H5::H5File &h5file,
28 std::shared_ptr<NexusLoader> loader, std::vector<int> &workspaceIndices,
29 std::vector<SpectraProcessingData> &processingDatas, const BankCalibrationFactory &calibFactory,
30 const size_t events_per_chunk, const size_t grainsize_event,
31 std::shared_ptr<API::Progress> &progress);
32
33 void operator()(const tbb::blocked_range<size_t> &range) const;
34
35private:
36 H5::H5File m_h5file;
37 std::vector<int> m_workspaceIndices;
38 std::vector<SpectraProcessingData> &m_processingDatas;
40 const size_t m_events_per_chunk;
42 const size_t m_grainsize_event;
43 std::shared_ptr<API::Progress> m_progress;
44};
45} // namespace Mantid::DataHandling::AlignAndFocusPowderSlim
const size_t m_grainsize_event
number of events to histogram in a single thread
const size_t m_events_per_chunk
number of events to read from disk at one time
void operator()(const tbb::blocked_range< size_t > &range) const