ROOT 6.14/05 Reference Guide |
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 THist instance, a THistImpl instance, or a THistLockedFill instance.
Definition at line 78 of file THistBufferedFill.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::THistBufferedFillBase< THistBufferedFill< HIST, SIZE >, HIST, SIZE > | |
using | CoordArray_t = typename HIST::CoordArray_t |
using | Weight_t = typename HIST::Weight_t |
Public Member Functions | |
THistBufferedFill (Hist_t &hist) | |
void | FillN (const std::span< CoordArray_t > xN, const std::span< Weight_t > weightN) |
void | FillN (const std::span< CoordArray_t > xN) |
void | Flush () |
HIST & | GetHist () |
operator HIST & () | |
Public Member Functions inherited from ROOT::Experimental::Internal::THistBufferedFillBase< THistBufferedFill< HIST, SIZE >, HIST, SIZE > | |
THistBufferedFillBase () | |
~THistBufferedFillBase () | |
void | Fill (const CoordArray_t &x, Weight_t weight=1.) |
std::span< CoordArray_t > | GetCoords () const |
std::span< Weight_t > | GetWeights () const |
THistBufferedFill< HIST, SIZE > & | toDerived () |
const THistBufferedFill< HIST, SIZE > & | toDerived () const |
Static Public Member Functions | |
static constexpr int | GetNDim () |
Private Attributes | |
size_t | fCursor = 0 |
HIST & | fHist |
std::array< Weight_t, SIZE > | fWBuf |
std::array< CoordArray_t, SIZE > | fXBuf |
#include <ROOT/THistBufferedFill.hxx>
using ROOT::Experimental::THistBufferedFill< HIST, SIZE >::CoordArray_t = typename HIST::CoordArray_t |
Definition at line 81 of file THistBufferedFill.hxx.
using ROOT::Experimental::THistBufferedFill< HIST, SIZE >::Hist_t = HIST |
Definition at line 80 of file THistBufferedFill.hxx.
using ROOT::Experimental::THistBufferedFill< HIST, SIZE >::Weight_t = typename HIST::Weight_t |
Definition at line 82 of file THistBufferedFill.hxx.
|
inline |
Definition at line 91 of file THistBufferedFill.hxx.
|
inline |
Definition at line 93 of file THistBufferedFill.hxx.
|
inline |
Definition at line 98 of file THistBufferedFill.hxx.
|
inline |
Definition at line 100 of file THistBufferedFill.hxx.
|
inline |
Definition at line 102 of file THistBufferedFill.hxx.
|
inlinestatic |
Definition at line 109 of file THistBufferedFill.hxx.
|
inline |
Definition at line 107 of file THistBufferedFill.hxx.
|
private |
Definition at line 86 of file THistBufferedFill.hxx.
|
private |
Definition at line 85 of file THistBufferedFill.hxx.
|
private |
Definition at line 88 of file THistBufferedFill.hxx.
|
private |
Definition at line 87 of file THistBufferedFill.hxx.