15 #ifndef ROOT7_THistBinIter 16 #define ROOT7_THistBinIter 21 namespace Experimental {
32 template <
class HISTIMPL>
48 fIndex(idx), fHist(&hist), fStatView(hist.
GetStat().GetView(idx)) {}
81 template<
class HISTIMPL>
100 template<
class HISTIMPL>
Iterates over an index; the REFERENCE is defined by the REFERENCE template parameter.
Ref_t fRef
Underlying bin reference.
std::array< double, DIMENSIONS > CoordArray_t
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
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).