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
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 ProcessBankTask(std::vector<std::string> &bankEntryNames, H5::H5File &h5file, const bool is_time_filtered,
23 API::MatrixWorkspace_sptr &wksp, const std::map<detid_t, double> &calibration,
24 const std::map<detid_t, double> &scale_at_sample, const std::set<detid_t> &masked,
25 const size_t events_per_chunk, const size_t grainsize_event, std::vector<PulseROI> pulse_indices,
26 std::shared_ptr<API::Progress> &progress);
27
28 void operator()(const tbb::blocked_range<size_t> &range) const;
29
30private:
31 H5::H5File m_h5file;
32 const std::vector<std::string> m_bankEntries;
35 const std::map<detid_t, double> m_calibration;
36 std::map<detid_t, double> m_scale_at_sample;
37 const std::set<detid_t> m_masked;
39 const size_t m_events_per_chunk;
41 const size_t m_grainsize_event;
42 std::shared_ptr<API::Progress> m_progress;
43};
44} // 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
const std::map< detid_t, double > m_calibration
detid: 1/difc
std::map< detid_t, double > m_scale_at_sample
multiplicative 0<value<1 to move neutron TOF at sample
void operator()(const tbb::blocked_range< size_t > &range) const
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class