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::THistStatTotalSumOfSquaredWeights< DIMENSIONS, PRECISION, STORAGE > Class Template Reference

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

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

Definition at line 165 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

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

Private Attributes

PRECISION fSumWeights2 = 0
 Sum of (weights^2). More...
 

#include <ROOT/THistData.hxx>

Member Typedef Documentation

◆ BinStat_t

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

Definition at line 182 of file THistData.hxx.

◆ ConstBinStat_t

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

Definition at line 181 of file THistData.hxx.

◆ CoordArray_t

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

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

Definition at line 168 of file THistData.hxx.

◆ Weight_t

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

The type of the weight and the bin content.

Definition at line 170 of file THistData.hxx.

Constructor & Destructor Documentation

◆ THistStatTotalSumOfSquaredWeights() [1/2]

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

◆ THistStatTotalSumOfSquaredWeights() [2/2]

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

Definition at line 190 of file THistData.hxx.

Member Function Documentation

◆ Fill()

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

Add weight to the bin content at binidx.

Definition at line 193 of file THistData.hxx.

◆ GetSumOfSquaredWeights()

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

Get the sum of weights.

Definition at line 198 of file THistData.hxx.

Member Data Documentation

◆ fSumWeights2

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

Sum of (weights^2).

Definition at line 186 of file THistData.hxx.


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