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

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

Keeps track of the histogram's total sum of weights.

Definition at line 171 of file RHistData.hxx.

Classes

class  RBinStat
 No-op; this class does not provide per-bin statistics. More...
 

Public Types

using BinStat_t = RBinStat
 
using ConstBinStat_t = RBinStat
 
using CoordArray_t = Hist::CoordArray_t< DIMENSIONS >
 The type of a (possibly multi-dimensional) coordinate.
 
using Weight_t = PRECISION
 The type of the weight and the bin content.
 

Public Member Functions

 RHistStatTotalSumOfWeights ()=default
 
 RHistStatTotalSumOfWeights (size_t, size_t)
 
void Add (const RHistStatTotalSumOfWeights &other)
 Merge with other RHistStatTotalSumOfWeights data, assuming same bin configuration.
 
void Fill (const CoordArray_t &, int, Weight_t weight=1.)
 Add weight to the bin content at binidx.
 
Weight_t GetSumOfWeights () const
 Get the sum of weights.
 

Private Attributes

PRECISION fSumWeights = 0
 Sum of weights.
 

#include <ROOT/RHistData.hxx>

Member Typedef Documentation

◆ BinStat_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::BinStat_t = RBinStat

Definition at line 188 of file RHistData.hxx.

◆ ConstBinStat_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::ConstBinStat_t = RBinStat

Definition at line 187 of file RHistData.hxx.

◆ CoordArray_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS>

The type of a (possibly multi-dimensional) coordinate.

Definition at line 174 of file RHistData.hxx.

◆ Weight_t

template<int DIMENSIONS, class PRECISION >
using ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::Weight_t = PRECISION

The type of the weight and the bin content.

Definition at line 176 of file RHistData.hxx.

Constructor & Destructor Documentation

◆ RHistStatTotalSumOfWeights() [1/2]

template<int DIMENSIONS, class PRECISION >
ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::RHistStatTotalSumOfWeights ( )
default

◆ RHistStatTotalSumOfWeights() [2/2]

template<int DIMENSIONS, class PRECISION >
ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::RHistStatTotalSumOfWeights ( size_t  ,
size_t   
)
inline

Definition at line 196 of file RHistData.hxx.

Member Function Documentation

◆ Add()

template<int DIMENSIONS, class PRECISION >
void ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::Add ( const RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION > &  other)
inline

Merge with other RHistStatTotalSumOfWeights data, assuming same bin configuration.

Definition at line 205 of file RHistData.hxx.

◆ Fill()

template<int DIMENSIONS, class PRECISION >
void ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::Fill ( const CoordArray_t ,
int  ,
Weight_t  weight = 1. 
)
inline

Add weight to the bin content at binidx.

Definition at line 199 of file RHistData.hxx.

◆ GetSumOfWeights()

template<int DIMENSIONS, class PRECISION >
Weight_t ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::GetSumOfWeights ( ) const
inline

Get the sum of weights.

Definition at line 202 of file RHistData.hxx.

Member Data Documentation

◆ fSumWeights

template<int DIMENSIONS, class PRECISION >
PRECISION ROOT::Experimental::RHistStatTotalSumOfWeights< DIMENSIONS, PRECISION >::fSumWeights = 0
private

Sum of weights.

Definition at line 192 of file RHistData.hxx.

  • hist/histv7/inc/ROOT/RHistData.hxx