Logo ROOT  
Reference Guide
ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT > Class Template Reference

template<int DIMENSIONS, class PRECISION, template< int D_, class P_ > class... STAT>
class ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >

A view on a histogram, selecting a range on a subset of dimensions.

Definition at line 51 of file RHistView.hxx.

Public Types

using AxisRange_t = typename Hist_t::AxisIterRange_t
 
using const_iterator = Detail::RHistBinIter< typename Hist_t::ImplBase_t >
 
using Hist_t = RHist< DIMENSIONS, PRECISION, STAT... >
 
using HistViewOutOfRange_t = RHistViewOutOfRange< RHistView >
 

Public Member Functions

 RHistView (Hist_t &hist, int nbins, const AxisRange_t &range)
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
bool IsBinOutOfRange (int idx) const noexcept
 
void SetRange (int axis, double from, double to)
 

Private Attributes

Hist_tfHist
 
int fNBins = 0
 
AxisRange_t fRange
 

#include <ROOT/RHistView.hxx>

Member Typedef Documentation

◆ AxisRange_t

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
using ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::AxisRange_t = typename Hist_t::AxisIterRange_t

Definition at line 54 of file RHistView.hxx.

◆ const_iterator

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
using ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::const_iterator = Detail::RHistBinIter<typename Hist_t::ImplBase_t>

Definition at line 57 of file RHistView.hxx.

◆ Hist_t

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
using ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::Hist_t = RHist<DIMENSIONS, PRECISION, STAT...>

Definition at line 53 of file RHistView.hxx.

◆ HistViewOutOfRange_t

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
using ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::HistViewOutOfRange_t = RHistViewOutOfRange<RHistView>

Definition at line 55 of file RHistView.hxx.

Constructor & Destructor Documentation

◆ RHistView()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::RHistView ( Hist_t hist,
int  nbins,
const AxisRange_t range 
)
inline

Definition at line 59 of file RHistView.hxx.

Member Function Documentation

◆ begin()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
const_iterator ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::begin ( ) const
inlinenoexcept

Definition at line 74 of file RHistView.hxx.

◆ end()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
const_iterator ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::end ( ) const
inlinenoexcept

Definition at line 83 of file RHistView.hxx.

◆ IsBinOutOfRange()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
bool ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::IsBinOutOfRange ( int  idx) const
inlinenoexcept

Definition at line 61 of file RHistView.hxx.

◆ SetRange()

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
void ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::SetRange ( int  axis,
double  from,
double  to 
)
inline

Definition at line 67 of file RHistView.hxx.

Member Data Documentation

◆ fHist

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
Hist_t& ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::fHist
private

Definition at line 86 of file RHistView.hxx.

◆ fNBins

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
int ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::fNBins = 0
private

Definition at line 87 of file RHistView.hxx.

◆ fRange

template<int DIMENSIONS, class PRECISION , template< int D_, class P_ > class... STAT>
AxisRange_t ROOT::Experimental::RHistView< DIMENSIONS, PRECISION, STAT >::fRange
private

Definition at line 88 of file RHistView.hxx.


The documentation for this class was generated from the following file: