28double wasteCPUTime(std::mt19937 &gen)
31 return std::generate_canonical<double, 100>(gen) + std::generate_canonical<double, 100>(gen) +
32 std::generate_canonical<double, 100>(gen) + std::generate_canonical<double, 100>(gen) +
33 std::generate_canonical<double, 100>(gen);
41void theTask(Filler_t filler)
45 for (
int i = 0; i < 3000000; ++i)
46 filler.
Fill({wasteCPUTime(gen), wasteCPUTime(gen)});
60 std::array<std::thread, 8> threads;
63 for (
auto &thr: threads) {
65 thr = std::thread(theTask, fillMgr.MakeFiller());
69 for (
auto &thr: threads)
78 concurrentHistFill(hist);
void Fill(const CoordArray_t &x, Weight_t weight=1.)
Manages the synchronization of calls to FillN().
Buffers a thread's Fill calls and submits them to the RHistConcurrentFillManager.
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
int64_t GetEntries() const noexcept
Get the number of entries this histogram was filled with.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.