15 #ifndef ROOT7_THistView
16 #define ROOT7_THistView
38 template <
class HISTVIEW>
41 bool operator()(
int idx) {
return fHistView.IsBinOutOfRange(idx); }
48 template <
int DIMENSIONS,
class PRECISION>
64 void SetRange(
int axis,
double from,
double to) {
bool IsBinOutOfRange(int idx) const noexcept
std::array< TAxisBase::const_iterator, NDIM > AxisIter_t
Iterator over n dimensional axes - an array of n axis iterators.
void SetRange(int axis, double from, double to)
Namespace for new ROOT classes and functions.
Common view on a TAxis, no matter what its kind.
int FindBin(double x) const noexcept
Find the bin containing coordinate x. Forwards to the underlying axis.
Hist::AxisIter_t< DIMENSIONS > AxisIter_t
ImplBase_t * GetImpl() const noexcept
Access the ImplBase_t this THist points to.
THistView(Hist_t &hist, int nbins, const AxisRange_t &range)
Hist::AxisIterRange_t< DIMENSIONS > AxisRange_t
const_iterator end() const noexcept
virtual int GetNBins() const =0
Number of bins of this histogram, including all overflow and underflow bins.
A predicate for THistBinIterBase to accept all bins.
std::array< AxisIter_t< NDIM >, 2 > AxisIterRange_t
Range over n dimensional axes - a pair of arrays of n axis iterators.
virtual TAxisView GetAxis(int iAxis) const =0
Get a TAxisView on axis with index iAxis.
A view on a histogram, selecting a range on a subset of dimensions.
Internal::THistBinIter< THistViewOutOfRange > const_iterator
A bin iterator taking a predicate whether it should skip a bin.
const_iterator begin() const noexcept
Histogram class for histograms with DIMENSIONS dimensions, where each bin count is stored by a value ...