A RHistImplBase
's data, provides accessors to all its statistics.
Definition at line 510 of file RHistData.hxx.
Public Types | |
using | ConstHistBinStat_t = RHistBinStat< const RHistData, typename STAT< DIMENSIONS, PRECISION >::ConstBinStat_t... > |
The type of a non-modifying view on a bin. | |
using | CoordArray_t = Hist::CoordArray_t< DIMENSIONS > |
The type of a (possibly multi-dimensional) coordinate. | |
using | Hist_t = RHist< DIMENSIONS, PRECISION, STAT... > |
Matching RHist . | |
using | HistBinStat_t = RHistBinStat< RHistData, typename STAT< DIMENSIONS, PRECISION >::BinStat_t... > |
The type of a modifying view on a bin. | |
using | Weight_t = PRECISION |
The type of the weight and the bin content. | |
Public Member Functions | |
RHistData ()=default | |
RHistData (size_t bin_size, size_t overflow_size) | |
Constructor providing the number of bins (incl under, overflow) to the base classes. | |
template<typename OtherData > | |
void | Add (const OtherData &other) |
Integrate other statistical data into the current data. | |
void | Fill (const CoordArray_t &x, int binidx, Weight_t weight=1.) |
Fill weight at x to the bin content at binidx. | |
template<bool B = true, class = typename std::enable_if<B && HasBinUncertainty()>::type> | |
double | GetBinUncertainty (int binidx) const |
Calculate the bin content's uncertainty for the given bin, using base class information, i.e. | |
template<bool B = true, class = typename std::enable_if<B && !HasBinUncertainty()>::type> | |
double | GetBinUncertainty (int binidx,...) const |
Calculate the bin content's uncertainty for the given bin, using Poisson statistics on the absolute bin content. | |
HistBinStat_t | GetView (int idx) |
Get a (non-const) view on the statistics values of a bin. | |
ConstHistBinStat_t | GetView (int idx) const |
Get a view on the statistics values of a bin. | |
Static Public Member Functions | |
static constexpr int | GetNDim () noexcept |
Number of dimensions of the coordinates. | |
static constexpr bool | HasBinUncertainty () |
Whether this provides storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content. | |
Static Private Member Functions | |
template<class T > | |
static char | HaveUncertainty (...) |
Fall-back case for check whether double T::GetBinUncertaintyImpl(int) can be called. | |
template<class T > | |
static auto | HaveUncertainty (const T *This) -> decltype(This->GetBinUncertaintyImpl(12)) |
Check whether double T::GetBinUncertaintyImpl(int) can be called. | |
#include <ROOT/RHistData.hxx>
using ROOT::Experimental::Detail::RHistData< DIMENSIONS, PRECISION, STORAGE, STAT >::ConstHistBinStat_t = RHistBinStat<const RHistData, typename STAT<DIMENSIONS, PRECISION>::ConstBinStat_t...> |
The type of a non-modifying view on a bin.
Definition at line 530 of file RHistData.hxx.
using ROOT::Experimental::Detail::RHistData< DIMENSIONS, PRECISION, STORAGE, STAT >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
The type of a (possibly multi-dimensional) coordinate.
Definition at line 527 of file RHistData.hxx.
using ROOT::Experimental::Detail::RHistData< DIMENSIONS, PRECISION, STORAGE, STAT >::Hist_t = RHist<DIMENSIONS, PRECISION, STAT...> |
Matching RHist
.
Definition at line 521 of file RHistData.hxx.
using ROOT::Experimental::Detail::RHistData< DIMENSIONS, PRECISION, STORAGE, STAT >::HistBinStat_t = RHistBinStat<RHistData, typename STAT<DIMENSIONS, PRECISION>::BinStat_t...> |
The type of a modifying view on a bin.
Definition at line 534 of file RHistData.hxx.
using ROOT::Experimental::Detail::RHistData< DIMENSIONS, PRECISION, STORAGE, STAT >::Weight_t = PRECISION |
The type of the weight and the bin content.
Definition at line 524 of file RHistData.hxx.
|
default |
|
inline |
Constructor providing the number of bins (incl under, overflow) to the base classes.
Definition at line 543 of file RHistData.hxx.
|
inline |
Integrate other statistical data into the current data.
The implementation assumes that the other statistics were recorded with the same binning configuration, and that the statistics of OtherData
are a superset of those recorded by the active RHistData
instance.
Definition at line 572 of file RHistData.hxx.
|
inline |
Fill weight at x to the bin content at binidx.
Definition at line 546 of file RHistData.hxx.
|
inline |
Calculate the bin content's uncertainty for the given bin, using base class information, i.e.
forwarding to a base's GetBinUncertaintyImpl(binidx)
.
Definition at line 591 of file RHistData.hxx.
|
inline |
Calculate the bin content's uncertainty for the given bin, using Poisson statistics on the absolute bin content.
Only available if no base provides this functionality. Requires GetContent()
.
Definition at line 599 of file RHistData.hxx.
|
inlinestaticconstexprnoexcept |
Number of dimensions of the coordinates.
Definition at line 537 of file RHistData.hxx.
|
inline |
Get a (non-const) view on the statistics values of a bin.
Definition at line 608 of file RHistData.hxx.
|
inline |
Get a view on the statistics values of a bin.
Definition at line 606 of file RHistData.hxx.
|
inlinestaticconstexpr |
Whether this provides storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content.
Definition at line 581 of file RHistData.hxx.
|
staticprivate |
Fall-back case for check whether double T::GetBinUncertaintyImpl(int)
can be called.
|
staticprivate |
Check whether double T::GetBinUncertaintyImpl(int)
can be called.