ROOT 6.08/07 Reference Guide |
Basic histogram statistics, keeping track of the bin content and the total number of calls to Fill().
Definition at line 37 of file THistData.hxx.
Classes | |
class | TBinStat |
Modifying view on a THistStatContent for a given bin. More... | |
class | TConstBinStat |
Const view on a THistStatContent for a given bin. More... | |
Public Types | |
using | BinStat_t = TBinStat |
using | ConstBinStat_t = TConstBinStat |
using | Content_t = STORAGE< PRECISION > |
Type of the bin content array. More... | |
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 | |
THistStatContent ()=default | |
THistStatContent (size_t in_size) | |
void | Fill (const CoordArray_t &, int binidx, Weight_t weight=1.) |
Add weight to the bin content at binidx. More... | |
Weight_t | GetBinContent (int idx) const |
Get the bin content for the given bin. More... | |
Weight_t & | GetBinContent (int idx) |
Get the bin content for the given bin (non-const). More... | |
const Content_t & | GetContentArray () const |
Retrieve the content array. More... | |
Content_t & | GetContentArray () |
Retrieve the content array (non-const). More... | |
int64_t | GetEntries () const |
Get the number of entries filled into the histogram - i.e. More... | |
Weight_t | operator[] (int idx) const |
Get the bin content for the given bin. More... | |
Weight_t & | operator[] (int idx) |
Get the bin content for the given bin (non-const). More... | |
size_t | size () const noexcept |
Get the number of bins. More... | |
Private Attributes | |
Content_t | fBinContent |
Bin content. More... | |
int64_t | fEntries = 0 |
Number of calls to Fill(). More... | |
#include <ROOT/THistData.hxx>
using ROOT::Experimental::THistStatContent< DIMENSIONS, PRECISION, STORAGE >::BinStat_t = TBinStat |
Definition at line 75 of file THistData.hxx.
using ROOT::Experimental::THistStatContent< DIMENSIONS, PRECISION, STORAGE >::ConstBinStat_t = TConstBinStat |
Definition at line 74 of file THistData.hxx.
using ROOT::Experimental::THistStatContent< DIMENSIONS, PRECISION, STORAGE >::Content_t = STORAGE<PRECISION> |
Type of the bin content array.
Definition at line 44 of file THistData.hxx.
using ROOT::Experimental::THistStatContent< DIMENSIONS, PRECISION, STORAGE >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 40 of file THistData.hxx.
using ROOT::Experimental::THistStatContent< DIMENSIONS, PRECISION, STORAGE >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 42 of file THistData.hxx.
|
default |
|
inline |
Definition at line 86 of file THistData.hxx.
|
inline |
Add weight to the bin content at binidx.
Definition at line 89 of file THistData.hxx.
|
inline |
Get the bin content for the given bin.
Definition at line 107 of file THistData.hxx.
|
inline |
Get the bin content for the given bin (non-const).
Definition at line 109 of file THistData.hxx.
|
inline |
Retrieve the content array.
Definition at line 112 of file THistData.hxx.
|
inline |
Retrieve the content array (non-const).
Definition at line 114 of file THistData.hxx.
|
inline |
Get the number of entries filled into the histogram - i.e.
the number of calls to Fill().
Definition at line 96 of file THistData.hxx.
|
inline |
Get the bin content for the given bin.
Definition at line 102 of file THistData.hxx.
|
inline |
Get the bin content for the given bin (non-const).
Definition at line 104 of file THistData.hxx.
|
inlinenoexcept |
Get the number of bins.
Definition at line 99 of file THistData.hxx.
|
private |
Bin content.
Definition at line 82 of file THistData.hxx.
|
private |
Number of calls to Fill().
Definition at line 79 of file THistData.hxx.