Const view on a bin's statistical data.
Combines all STATs' BinStat_t views.
Definition at line 468 of file RHistData.hxx.
Public Member Functions | |
RHistBinStat (DATA &data, int index) | |
template<bool B = true, class = typename std::enable_if<B && HasBinUncertainty()>::type> | |
double | GetUncertainty () const |
Calculate the bin content's uncertainty for the given bin, using base class information, i.e. More... | |
template<bool B = true, class = typename std::enable_if<B && !HasBinUncertainty()>::type> | |
double | GetUncertainty (...) const |
Calculate the bin content's uncertainty for the given bin, using Poisson statistics on the absolute bin content. More... | |
Static Public Member Functions | |
static constexpr bool | HasBinUncertainty () |
Whether this provides storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content. More... | |
Static Private Member Functions | |
template<class T > | |
static char | HaveUncertainty (...) |
Fall-back case for check whether double T::GetBinUncertaintyImpl(int) can be called. More... | |
template<class T > | |
static auto | HaveUncertainty (const T *This) -> decltype(This->GetUncertaintyImpl()) |
Check whether double T::GetBinUncertaintyImpl(int) can be called. More... | |
#include <ROOT/RHistData.hxx>
|
inline |
Definition at line 478 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 GetUncertaintyImpl()
.
Definition at line 491 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 499 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 482 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.