16 #ifndef ROOT7_THistBinIter 17 #define ROOT7_THistBinIter 22 namespace Experimental {
33 template <
class HISTIMPL>
80 template <
class HISTIMPL>
96 template <
class HISTIMPL>
Iterates over an index; the REFERENCE is defined by the REFERENCE template parameter.
Ref_t fRef
Underlying bin reference.
const Ref_t & operator->() const noexcept
Namespace for new ROOT classes and functions.
typename HISTIMPL::CoordArray_t CoordArray_t
Iterates over the bins of a THist or THistImpl.
THistBinRef(HistImpl_t &hist, size_t idx)
Construct from a histogram.
THistBinIter(HISTIMPL &hist, size_t idx)
Construct a THistBinIter from a histogram, setting the current index.
HISTIMPL & fHist
The histogram we iterate over.
double GetUncertainty() const
Get the bin uncertainty.
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
TCoordArray< DIMENSIONS > CoordArray_t
Represents a bin reference.
HistImpl_t * fHist
The bin's histogram.
CoordArray_t GetTo() const
Get the bin upper edge as an array over all dimensions.
Ref_t operator*() const noexcept
THistBinIter(HISTIMPL &hist)
Construct a THistBinIter from a histogram.
CoordArray_t GetFrom() const
Get the bin lower edge as an array over all dimensions.
CoordArray_t GetCenter() const
typename HISTIMPL::Weight_t Weight_t
Ptr_t operator->() const noexcept
Points to a histogram bin (or actually a THistBinRef).