Logo ROOT   6.08/07
Reference Guide
List of all members | Classes | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE > Class Template Reference

template<int DIMENSIONS, class PRECISION, template< class P_ > class STORAGE>
class ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >

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

Definition at line 122 of file THistData.hxx.

Classes

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

Public Types

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

Public Member Functions

 THistStatTotalSumOfWeights ()=default
 
 THistStatTotalSumOfWeights (size_t)
 
void Fill (const CoordArray_t &, int, Weight_t weight=1.)
 Add weight to the bin content at binidx. More...
 
Weight_t GetSumOfWeights () const
 Get the sum of weights. More...
 

Private Attributes

PRECISION fSumWeights = 0
 Sum of weights. More...
 

#include <ROOT/THistData.hxx>

Member Typedef Documentation

◆ BinStat_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::BinStat_t = TBinStat

Definition at line 139 of file THistData.hxx.

◆ ConstBinStat_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::ConstBinStat_t = TBinStat

Definition at line 138 of file THistData.hxx.

◆ CoordArray_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS>

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

Definition at line 125 of file THistData.hxx.

◆ Weight_t

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
using ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::Weight_t = PRECISION

The type of the weight and the bin content.

Definition at line 127 of file THistData.hxx.

Constructor & Destructor Documentation

◆ THistStatTotalSumOfWeights() [1/2]

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::THistStatTotalSumOfWeights ( )
default

◆ THistStatTotalSumOfWeights() [2/2]

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::THistStatTotalSumOfWeights ( size_t  )
inline

Definition at line 147 of file THistData.hxx.

Member Function Documentation

◆ Fill()

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

Add weight to the bin content at binidx.

Definition at line 150 of file THistData.hxx.

◆ GetSumOfWeights()

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

Get the sum of weights.

Definition at line 155 of file THistData.hxx.

Member Data Documentation

◆ fSumWeights

template<int DIMENSIONS, class PRECISION , template< class P_ > class STORAGE>
PRECISION ROOT::Experimental::THistStatTotalSumOfWeights< DIMENSIONS, PRECISION, STORAGE >::fSumWeights = 0
private

Sum of weights.

Definition at line 143 of file THistData.hxx.


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