Logo ROOT   6.14/05
Reference Guide
List of all members | List of all members
ROOT::Experimental::THist< DIMENSIONS, PRECISION > Class Template Reference

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

THist with no STAT parameter uses THistStatContent by default.

Definition at line 182 of file THist.hxx.

Additional Inherited Members

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

#include <ROOT/THist.hxx>

Inheritance diagram for ROOT::Experimental::THist< DIMENSIONS, PRECISION >:
[legend]
Libraries for ROOT::Experimental::THist< DIMENSIONS, PRECISION >:
[legend]

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