Keeps track of the histogram's total sum of squared weights.
Definition at line 215 of file RHistData.hxx.
Classes | |
class | RBinStat |
No-op; this class does not provide per-bin statistics. More... | |
Public Types | |
using | BinStat_t = RBinStat |
using | ConstBinStat_t = RBinStat |
using | CoordArray_t = Hist::CoordArray_t< DIMENSIONS > |
The type of a (possibly multi-dimensional) coordinate. More... | |
using | Weight_t = PRECISION |
The type of the weight and the bin content. More... | |
Public Member Functions | |
RHistStatTotalSumOfSquaredWeights ()=default | |
RHistStatTotalSumOfSquaredWeights (size_t, size_t) | |
void | Add (const RHistStatTotalSumOfSquaredWeights &other) |
Merge with other RHistStatTotalSumOfSquaredWeights data, assuming same bin configuration. More... | |
void | Fill (const CoordArray_t &, int, Weight_t weight=1.) |
Add weight to the bin content at binidx. More... | |
Weight_t | GetSumOfSquaredWeights () const |
Get the sum of weights. More... | |
Private Attributes | |
PRECISION | fSumWeights2 = 0 |
Sum of (weights^2). More... | |
#include <ROOT/RHistData.hxx>
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::BinStat_t = RBinStat |
Definition at line 232 of file RHistData.hxx.
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::ConstBinStat_t = RBinStat |
Definition at line 231 of file RHistData.hxx.
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 218 of file RHistData.hxx.
using ROOT::Experimental::RHistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 220 of file RHistData.hxx.
|
default |
|
inline |
Definition at line 240 of file RHistData.hxx.
|
inline |
Merge with other RHistStatTotalSumOfSquaredWeights data, assuming same bin configuration.
Definition at line 249 of file RHistData.hxx.
|
inline |
Add weight to the bin content at binidx.
Definition at line 243 of file RHistData.hxx.
|
inline |
Get the sum of weights.
Definition at line 246 of file RHistData.hxx.
|
private |
Sum of (weights^2).
Definition at line 236 of file RHistData.hxx.