Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT > Class Template Reference

template<int DIMENSIONS, class PRECISION, template< int D_, class P_, template< class P__ > class S_ > class... STAT>
class ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT >

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

Definition at line 51 of file THistView.hxx.

Public Types

using AxisRange_t = typename Hist_t::AxisIterRange_t
 
using const_iterator = Detail::THistBinIter< typename Hist_t::ImplBase_t >
 
using Hist_t = THist< DIMENSIONS, PRECISION, STAT... >
 
using HistViewOutOfRange_t = THistViewOutOfRange< THistView >
 

Public Member Functions

 THistView (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/THistView.hxx>

Member Typedef Documentation

◆ AxisRange_t

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

Definition at line 54 of file THistView.hxx.

◆ const_iterator

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
using ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT >::const_iterator = Detail::THistBinIter<typename Hist_t::ImplBase_t>

Definition at line 57 of file THistView.hxx.

◆ Hist_t

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
using ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT >::Hist_t = THist<DIMENSIONS, PRECISION, STAT...>

Definition at line 53 of file THistView.hxx.

◆ HistViewOutOfRange_t

template<int DIMENSIONS, class PRECISION , template< int D_, class P_, template< class P__ > class S_ > class... STAT>
using ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT >::HistViewOutOfRange_t = THistViewOutOfRange<THistView>

Definition at line 55 of file THistView.hxx.

Constructor & Destructor Documentation

◆ THistView()

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

Definition at line 59 of file THistView.hxx.

Member Function Documentation

◆ begin()

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

Definition at line 74 of file THistView.hxx.

◆ end()

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

Definition at line 83 of file THistView.hxx.

◆ IsBinOutOfRange()

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

Definition at line 61 of file THistView.hxx.

◆ SetRange()

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

Definition at line 67 of file THistView.hxx.

Member Data Documentation

◆ fHist

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

Definition at line 86 of file THistView.hxx.

◆ fNBins

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

Definition at line 87 of file THistView.hxx.

◆ fRange

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

Definition at line 88 of file THistView.hxx.

Libraries for ROOT::Experimental::THistView< DIMENSIONS, PRECISION, STAT >:
[legend]

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