16#ifndef ROOT7_RHistView
17#define ROOT7_RHistView
22namespace Experimental {
40template <
class HISTVIEW>
50template <
int DIMENSIONS,
class PRECISION,
template <
int D_,
class P_>
class...
STAT>
64 return idx < 0 || idx >
fNBins;
67 void SetRange(
int axis,
double from,
double to)
77 size_t nbins =
fHist.GetNBins();
Iterates over the bins of a RHist or RHistImpl.
int GetNBins() const noexcept final
Get the number of bins in this histogram, including possible under- and overflow bins.
virtual const RAxisBase & GetAxis(int iAxis) const =0
Get a base-class view on axis with index iAxis.
Histogram axis base class.
virtual int FindBin(double x) const noexcept=0
Find the adjusted bin index (returning kUnderflowBin for underflow and kOverflowBin for overflow) for...
A view on a histogram, selecting a range on a subset of dimensions.
typename Hist_t::AxisIterRange_t AxisRange_t
const_iterator begin() const noexcept
RHistView(Hist_t &hist, int nbins, const AxisRange_t &range)
bool IsBinOutOfRange(int idx) const noexcept
const_iterator end() const noexcept
RHistViewOutOfRange< RHistView > HistViewOutOfRange_t
Detail::RHistBinIter< typename Hist_t::ImplBase_t > const_iterator
void SetRange(int axis, double from, double to)
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...
ImplBase_t * GetImpl() const noexcept
Access the ImplBase_t this RHist points to.
std::array< AxisIter_t< NDIMS >, 2 > AxisIterRange_t
Range over n dimensional axes - a pair of arrays of n axis iterators.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...