Histogram statistics to keep track of the Poisson uncertainty per bin.
Definition at line 259 of file RHistData.hxx.
Classes | |
class | RBinStat |
Modifying view on a RHistStatUncertainty for a given bin. More... | |
class | RConstBinStat |
Const view on a RHistStatUncertainty for a given bin. More... | |
Public Types | |
using | BinStat_t = RBinStat |
using | ConstBinStat_t = RConstBinStat |
using | Content_t = std::vector< PRECISION > |
Type of the bin content array. | |
using | CoordArray_t = Hist::CoordArray_t< DIMENSIONS > |
The type of a (possibly multi-dimensional) coordinate. | |
using | Weight_t = PRECISION |
The type of the weight and the bin content. | |
Public Member Functions | |
RHistStatUncertainty ()=default | |
RHistStatUncertainty (size_t bin_size, size_t overflow_size) | |
void | Add (const RHistStatUncertainty &other) |
Merge with other RHistStatUncertainty data, assuming same bin configuration. | |
void | Fill (const CoordArray_t &, int binidx, Weight_t weight=1.) |
Add weight to the bin at binidx ; the coordinate was x . | |
Weight_t & | GetBinArray (int binidx) |
Get a reference to the bin corresponding to binidx of the correct bin content array (non-const) i.e. | |
Weight_t | GetBinArray (int binidx) const |
Get a reference to the bin corresponding to binidx of the correct bin content array i.e. | |
double | GetBinUncertaintyImpl (int binidx) const |
Calculate a bin's (Poisson) uncertainty of the bin content as the square-root of the bin's sum of squared weights. | |
std::vector< double > & | GetOverflowSumOfSquaredWeights () |
Get the structure holding the under-/overflow sum of squares of weights (non-const). | |
const std::vector< double > & | GetOverflowSumOfSquaredWeights () const |
Get the structure holding the under-/overflow sum of squares of weights. | |
std::vector< double > & | GetSumOfSquaredWeights () |
Get the structure holding the sum of squares of weights (non-const). | |
const std::vector< double > & | GetSumOfSquaredWeights () const |
Get the structure holding the sum of squares of weights. | |
Weight_t & | GetSumOfSquaredWeights (int binidx) |
Get a bin's sum of squared weights. | |
Weight_t | GetSumOfSquaredWeights (int binidx) const |
Get a bin's sum of squared weights. | |
Private Attributes | |
Content_t | fOverflowSumWeightsSquared |
Uncertainty of the under-/overflow content. | |
Content_t | fSumWeightsSquared |
Uncertainty of the content for each bin excluding under-/overflow. | |
#include <ROOT/RHistData.hxx>
using ROOT::Experimental::RHistStatUncertainty< DIMENSIONS, PRECISION >::BinStat_t = RBinStat |
Definition at line 300 of file RHistData.hxx.
using ROOT::Experimental::RHistStatUncertainty< DIMENSIONS, PRECISION >::ConstBinStat_t = RConstBinStat |
Definition at line 299 of file RHistData.hxx.
using ROOT::Experimental::RHistStatUncertainty< DIMENSIONS, PRECISION >::Content_t = std::vector<PRECISION> |
Type of the bin content array.
Definition at line 267 of file RHistData.hxx.
using ROOT::Experimental::RHistStatUncertainty< DIMENSIONS, PRECISION >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 263 of file RHistData.hxx.
using ROOT::Experimental::RHistStatUncertainty< DIMENSIONS, PRECISION >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 265 of file RHistData.hxx.
|
default |
|
inline |
Definition at line 310 of file RHistData.hxx.
|
inline |
Merge with other RHistStatUncertainty
data, assuming same bin configuration.
Definition at line 362 of file RHistData.hxx.
|
inline |
Add weight to the bin at binidx
; the coordinate was x
.
Definition at line 337 of file RHistData.hxx.
|
inline |
Get a reference to the bin corresponding to binidx
of the correct bin content array (non-const) i.e.
depending if binidx
is a regular bin or an under- / overflow bin.
Definition at line 327 of file RHistData.hxx.
|
inline |
Get a reference to the bin corresponding to binidx
of the correct bin content array i.e.
depending if binidx
is a regular bin or an under- / overflow bin.
Definition at line 315 of file RHistData.hxx.
|
inline |
Calculate a bin's (Poisson) uncertainty of the bin content as the square-root of the bin's sum of squared weights.
Definition at line 344 of file RHistData.hxx.
|
inline |
Get the structure holding the under-/overflow sum of squares of weights (non-const).
Definition at line 359 of file RHistData.hxx.
|
inline |
Get the structure holding the under-/overflow sum of squares of weights.
Definition at line 357 of file RHistData.hxx.
|
inline |
Get the structure holding the sum of squares of weights (non-const).
Definition at line 354 of file RHistData.hxx.
|
inline |
Get the structure holding the sum of squares of weights.
Definition at line 352 of file RHistData.hxx.
|
inline |
Get a bin's sum of squared weights.
Definition at line 349 of file RHistData.hxx.
|
inline |
Get a bin's sum of squared weights.
Definition at line 347 of file RHistData.hxx.
|
private |
Uncertainty of the under-/overflow content.
Sum of squared weights for under-/overflow.
Definition at line 306 of file RHistData.hxx.
|
private |
Uncertainty of the content for each bin excluding under-/overflow.
Sum of squared weights.
Definition at line 304 of file RHistData.hxx.