15 #ifndef ROOT7_THistBufferedFill
16 #define ROOT7_THistBufferedFill
23 template<
class DERIVED,
class HIST,
int SIZE>
31 std::array<Coord_t, SIZE>
fXBuf;
32 std::array<Weight_t, SIZE>
fWBuf;
38 DERIVED&
toDerived() {
return *
static_cast<DERIVED*
>(
this); }
39 const DERIVED&
toDerived()
const {
return *
static_cast<const DERIVED*
>(
this); }
50 fWBuf[fCursor++] = weight;
51 if (fCursor ==
SIZE) {
73 template <
class HIST,
int SIZE = 1024>
84 std::array<Coord_t, SIZE>
fXBuf;
85 std::array<Weight_t, SIZE>
fWBuf;
92 fHist.FillN(xN, weightN);
111 static constexpr
int GetNDim() {
return HIST::GetNDim(); }
typename HIST::Coord_t Coord_t
std::array_view< Weight_t > GetWeights() const
Namespace for new ROOT classes and functions.
static constexpr int GetNDim()
typename HIST::Coord_t Coord_t
std::array< Weight_t, SIZE > fWBuf
std::array_view< Coord_t > GetCoords() const
std::array< Coord_t, SIZE > fXBuf
typename HIST::Weight_t Weight_t
std::array< Weight_t, SIZE > fWBuf
std::array< Coord_t, SIZE > fXBuf
typename HIST::Weight_t Weight_t
void FillN(const std::array_view< Coord_t > xN, const std::array_view< Weight_t > weightN)
void Fill(const Coord_t &x, Weight_t weight=1.)
void FillN(const std::array_view< Coord_t > xN)
THistBufferedFill(Hist_t &hist)
const DERIVED & toDerived() const