ROOT 6.12/07 Reference Guide |
Keeps track of the histogram's total sum of weights.
Definition at line 121 of file THistData.hxx.
Classes | |
class | TBinStat |
No-op; this class does not provide per-bin statistics. More... | |
Public Types | |
using | BinStat_t = TBinStat |
using | ConstBinStat_t = TBinStat |
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 | |
THistStatTotalSumOfWeights ()=default | |
THistStatTotalSumOfWeights (size_t) | |
void | Fill (const CoordArray_t &, int, Weight_t weight=1.) |
Add weight to the bin content at binidx. More... | |
Weight_t | GetSumOfWeights () const |
Get the sum of weights. More... | |
Private Attributes | |
PRECISION | fSumWeights = 0 |
Sum of weights. More... | |
#include <ROOT/THistData.hxx>
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::BinStat_t = TBinStat |
Definition at line 138 of file THistData.hxx.
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::ConstBinStat_t = TBinStat |
Definition at line 137 of file THistData.hxx.
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 124 of file THistData.hxx.
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 126 of file THistData.hxx.
|
default |
|
inline |
Definition at line 146 of file THistData.hxx.
|
inline |
Add weight to the bin content at binidx.
Definition at line 149 of file THistData.hxx.
|
inline |
Get the sum of weights.
Definition at line 152 of file THistData.hxx.
|
private |
Sum of weights.
Definition at line 142 of file THistData.hxx.