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
11#include <H5Cpp.h>
12#include <MantidAPI/Progress.h>
13#include <map>
14#include <set>
15#include <tbb/tbb.h>
16#include <vector>
17
19
21public:
22 ProcessBankSplitTask(std::vector<std::string> &bankEntryNames, H5::H5File &h5file, const bool is_time_filtered,
23 std::vector<int> &workspaceIndices, std::vector<API::MatrixWorkspace_sptr> &wksps,
24 const std::map<detid_t, double> &calibration, const std::map<detid_t, double> &scale_at_sample,
25 const std::set<detid_t> &masked, const size_t events_per_chunk, const size_t grainsize_event,
26 std::vector<std::pair<int, PulseROI>> target_to_pulse_indices,
27 std::shared_ptr<API::Progress> &progress);
28
29 void operator()(const tbb::blocked_range<size_t> &range) const;
30
31private:
32 H5::H5File m_h5file;
33 const std::vector<std::string> m_bankEntries;
35 std::vector<int> m_workspaceIndices;
36 std::vector<API::MatrixWorkspace_sptr> m_wksps;
37 const std::map<detid_t, double> m_calibration;
38 std::map<detid_t, double> m_scale_at_sample;
39 const std::set<detid_t> m_masked;
41 const size_t m_events_per_chunk;
43 const size_t m_grainsize_event;
44 std::shared_ptr<API::Progress> m_progress;
45};
46} // 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
std::map< detid_t, double > m_scale_at_sample
multiplicative 0<value<1 to move neutron TOF at sample