Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RHist< DIMENSIONS, PRECISION > Class Template Reference

template<int DIMENSIONS, class PRECISION>
class ROOT::Experimental::RHist< DIMENSIONS, PRECISION >

RHist with no STAT parameter uses RHistStatContent by default.

Definition at line 187 of file RHist.hxx.

Additional Inherited Members

- Public Types inherited from ROOT::Experimental::RHist< DIMENSIONS, PRECISION, RHistStatContent >
using AxisRange_t = typename ImplBase_t::AxisIterRange_t
 Range.
 
using const_iterator = Detail::RHistBinIter< ImplBase_t >
 
using CoordArray_t = typename ImplBase_t::CoordArray_t
 The coordinates type: a DIMENSIONS-dimensional std::array of double.
 
using FillFunc_t = typename ImplBase_t::FillFunc_t
 Pointer type to HistImpl_t::Fill, for faster access.
 
using ImplBase_t = Detail::RHistImplBase< Detail::RHistData< DIMENSIONS, PRECISION, std::vector< PRECISION >, RHistStatContent ... > >
 The type of the Detail::RHistImplBase of this histogram.
 
using Weight_t = PRECISION
 The type of weights.
 
- Public Member Functions inherited from ROOT::Experimental::RHist< DIMENSIONS, PRECISION, RHistStatContent >
 RHist ()=default
 
 RHist (const RAxisConfig &xaxis)
 Constructor overload that's only available for a 1-dimensional histogram.
 
 RHist (const RAxisConfig &xaxis, const RAxisConfig &yaxis)
 Constructor overload that's only available for a 2-dimensional histogram.
 
 RHist (const RAxisConfig &xaxis, const RAxisConfig &yaxis, const RAxisConfig &zaxis)
 Constructor overload that's only available for a 3-dimensional histogram.
 
 RHist (const RHist &other)
 
 RHist (RHist &&)=default
 
 RHist (std::array< RAxisConfig, DIMENSIONS > axes)
 Create a histogram from an array of axes (RAxisConfigs).
 
 RHist (std::string_view histTitle, const RAxisConfig &xaxis)
 Constructor overload that's only available for a 1-dimensional histogram, also passing the histogram title.
 
 RHist (std::string_view histTitle, const RAxisConfig &xaxis, const RAxisConfig &yaxis)
 Constructor overload that's only available for a 2-dimensional histogram, also passing the histogram title.
 
 RHist (std::string_view histTitle, const RAxisConfig &xaxis, const RAxisConfig &yaxis, const RAxisConfig &zaxis)
 Constructor overload that's only available for a 3-dimensional histogram, also passing the histogram title.
 
 RHist (std::string_view histTitle, std::array< RAxisConfig, DIMENSIONS > axes)
 Constructor overload taking the histogram title.
 
const_iterator begin () const
 
const_iterator end () const
 
void Fill (const CoordArray_t &x, Weight_t weight=(Weight_t) 1) noexcept
 Add weight to the bin containing coordinate x.
 
void FillN (const std::span< const CoordArray_t > xN) noexcept
 Convenience overload: FillN() with weight 1.
 
void FillN (const std::span< const CoordArray_t > xN, const std::span< const Weight_t > weightN) noexcept
 For each coordinate in xN, add weightN[i] to the bin at coordinate xN[i].
 
Weight_t GetBinContent (const CoordArray_t &x) const
 Get the content of the bin at x.
 
double GetBinUncertainty (const CoordArray_t &x) const
 Get the uncertainty on the content of the bin at x.
 
int64_t GetEntries () const noexcept
 Get the number of entries this histogram was filled with.
 
ImplBase_tGetImpl () const noexcept
 Access the ImplBase_t this RHist points to.
 
void swap (RHist< DIMENSIONS, PRECISION, RHistStatContent ... > &other) noexcept
 Swap *this and other.
 
std::unique_ptr< ImplBase_tTakeImpl () &&noexcept
 "Steal" the ImplBase_t this RHist points to.
 
- Static Public Member Functions inherited from ROOT::Experimental::RHist< DIMENSIONS, PRECISION, RHistStatContent >
static constexpr int GetNDim () noexcept
 Number of dimensions of the coordinates.
 

#include <ROOT/RHist.hxx>

Inheritance diagram for ROOT::Experimental::RHist< DIMENSIONS, PRECISION >:
[legend]
  • hist/histv7/inc/ROOT/RHist.hxx