16#ifndef ROOT7_RHistBinIter
17#define ROOT7_RHistBinIter
22namespace Experimental {
33template <
class HISTIMPL>
39 using HistBinStat_t =
decltype(((HISTIMPL *)0x123)->GetStat().GetView(1));
80template <
class HISTIMPL>
96template <
class HISTIMPL>
Iterates over the bins of a RHist or RHistImpl.
RHistBinIter(HISTIMPL &hist, size_t idx)
Construct a RHistBinIter from a histogram, setting the current index.
HISTIMPL & fHist
The histogram we iterate over.
Ref_t operator*() const noexcept
RHistBinIter(HISTIMPL &hist)
Construct a RHistBinIter from a histogram.
Ptr_t operator->() const noexcept
Points to a histogram bin (or actually a RHistBinRef).
const Ref_t & operator->() const noexcept
Ref_t fRef
Underlying bin reference.
Represents a bin reference.
HistImpl_t * fHist
The bin's histogram.
CoordArray_t GetFrom() const
Get the bin lower edge as an array over all dimensions.
typename HISTIMPL::CoordArray_t CoordArray_t
RHistBinRef(HistImpl_t &hist, size_t idx)
Construct from a histogram.
CoordArray_t GetTo() const
Get the bin upper edge as an array over all dimensions.
CoordArray_t GetCenter() const
HistBinStat_t GetStat() const
Get a (const, for const HistImpl_t) reference to the bin-view of the histogram statistics (uncertaint...
decltype(((HISTIMPL *) 0x123) ->GetStat().GetView(1)) HistBinStat_t
typename HISTIMPL::Weight_t Weight_t
double GetUncertainty() const
Get the bin uncertainty.
Iterates over an index; the REFERENCE is defined by the REFERENCE template parameter.
size_t GetIndex() const noexcept
Get the current index value.
RCoordArray< DIMENSIONS > CoordArray_t
Namespace for new ROOT classes and functions.