Mantid
Loading...
Searching...
No Matches
ProcessBankTask.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
11#include "MantidAPI/Progress.h"
17#include <H5Cpp.h>
18#include <map>
19#include <set>
20#include <tbb/tbb.h>
21#include <vector>
22
24
26public:
27 ProcessBankTask(std::vector<std::string> &bankEntryNames, H5::H5File &h5file, std::shared_ptr<NexusLoader> loader,
28 SpectraProcessingData &processingData, const BankCalibrationFactory &calibFactory,
29 const size_t events_per_chunk, const size_t grainsize_event,
30 std::shared_ptr<API::Progress> &progress);
31
32 void operator()(const tbb::blocked_range<size_t> &range) const;
33
34private:
35 H5::H5File m_h5file;
38 const size_t m_events_per_chunk;
40 const size_t m_grainsize_event;
41 std::shared_ptr<API::Progress> m_progress;
42};
43} // 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