16#ifndef ROOT7_RHistConcurrentFill
17#define ROOT7_RHistConcurrentFill
25namespace Experimental {
27template <
class HIST,
int SIZE>
28class RHistConcurrentFillManager;
36template <
class HIST,
int SIZE>
50 void FillN(
const std::span<CoordArray_t> xN,
const std::span<Weight_t> weightN)
64 static constexpr int GetNDim() {
return HIST::GetNDim(); }
78template <
class HIST,
int SIZE = 1024>
97 void FillN(
const std::span<CoordArray_t> xN,
const std::span<Weight_t> weightN)
99 std::lock_guard<std::mutex> lockGuard(
fFillMutex);
100 fHist.FillN(xN, weightN);
104 void FillN(
const std::span<CoordArray_t> xN)
106 std::lock_guard<std::mutex> lockGuard(
fFillMutex);
void Fill(const CoordArray_t &x, Weight_t weight=1.)
std::span< Weight_t > GetWeights() const
std::span< CoordArray_t > GetCoords() const
Manages the synchronization of calls to FillN().
typename HIST::CoordArray_t CoordArray_t
void FillN(const std::span< CoordArray_t > xN, const std::span< Weight_t > weightN)
Thread-specific HIST::FillN().
RHistConcurrentFillManager(HIST &hist)
typename HIST::Weight_t Weight_t
RHistConcurrentFiller< HIST, SIZE > MakeFiller()
void FillN(const std::span< CoordArray_t > xN)
Thread-specific HIST::FillN().
Buffers a thread's Fill calls and submits them to the RHistConcurrentFillManager.
static constexpr int GetNDim()
void FillN(const std::span< CoordArray_t > xN)
Thread-specific HIST::FillN().
void FillN(const std::span< CoordArray_t > xN, const std::span< Weight_t > weightN)
Thread-specific HIST::FillN().
void Flush()
The buffer is full, flush it out.
typename HIST::CoordArray_t CoordArray_t
RHistConcurrentFiller(RHistConcurrentFillManager< HIST, SIZE > &manager)
RHistConcurrentFillManager< HIST, SIZE > & fManager
typename HIST::Weight_t Weight_t
RCoordArray< DIMENSIONS > CoordArray_t
Namespace for new ROOT classes and functions.