Buffers calls to Fill().
Once the buffer is full, on destruction of when calling Flush(), it sends the buffers off as an ideally vectorizable FillN() operation. It also serves as a multi-threaded way of filling the same histogram, reducing the locking frequency.
The HIST template can be either a RHist instance, a RHistImpl instance, or a RHistLockedFill instance.
Definition at line 84 of file RHistBufferedFill.hxx.
Public Types | |
using | CoordArray_t = typename HIST::CoordArray_t |
using | Hist_t = HIST |
using | Weight_t = typename HIST::Weight_t |
Public Types inherited from ROOT::Experimental::Internal::RHistBufferedFillBase< DERIVED, HIST, SIZE > | |
using | CoordArray_t = typename HIST::CoordArray_t |
using | Weight_t = typename HIST::Weight_t |
Public Member Functions | |
RHistBufferedFill (Hist_t &hist) | |
void | FillN (const std::span< const CoordArray_t > xN) |
void | FillN (const std::span< const CoordArray_t > xN, const std::span< const Weight_t > weightN) |
HIST & | GetHist () |
operator HIST & () | |
Public Member Functions inherited from ROOT::Experimental::Internal::RHistBufferedFillBase< DERIVED, HIST, SIZE > | |
RHistBufferedFillBase () | |
~RHistBufferedFillBase () | |
void | Fill (const CoordArray_t &x, Weight_t weight=1.) |
void | Flush () |
std::span< const CoordArray_t > | GetCoords () const |
std::span< const Weight_t > | GetWeights () const |
DERIVED & | toDerived () |
const DERIVED & | toDerived () const |
Static Public Member Functions | |
static constexpr int | GetNDim () |
Private Member Functions | |
void | FlushImpl () |
Private Attributes | |
HIST & | fHist |
Friends | |
class | Internal::RHistBufferedFillBase< RHistBufferedFill< HIST, SIZE >, HIST, SIZE > |
#include <ROOT/RHistBufferedFill.hxx>
using ROOT::Experimental::RHistBufferedFill< HIST, SIZE >::CoordArray_t = typename HIST::CoordArray_t |
Definition at line 87 of file RHistBufferedFill.hxx.
using ROOT::Experimental::RHistBufferedFill< HIST, SIZE >::Hist_t = HIST |
Definition at line 86 of file RHistBufferedFill.hxx.
using ROOT::Experimental::RHistBufferedFill< HIST, SIZE >::Weight_t = typename HIST::Weight_t |
Definition at line 88 of file RHistBufferedFill.hxx.
|
inline |
Definition at line 97 of file RHistBufferedFill.hxx.
|
inline |
Definition at line 104 of file RHistBufferedFill.hxx.
|
inline |
Definition at line 99 of file RHistBufferedFill.hxx.
|
inlineprivate |
Definition at line 94 of file RHistBufferedFill.hxx.
|
inline |
Definition at line 106 of file RHistBufferedFill.hxx.
|
inlinestaticconstexpr |
Definition at line 113 of file RHistBufferedFill.hxx.
|
inline |
Definition at line 111 of file RHistBufferedFill.hxx.
|
friend |
Definition at line 91 of file RHistBufferedFill.hxx.
|
private |
Definition at line 91 of file RHistBufferedFill.hxx.