CbmRoot
Loading...
Searching...
No Matches
cbm::algo::qa::TotalSums1D Class Reference

Storage for total sums of weights, squared weights, weights over x, weights over squared x. More...

#include <Histogram.h>

Inheritance diagram for cbm::algo::qa::TotalSums1D:
[legend]

Public Member Functions

double GetTotSumW () const
 Gets total sum of weights.
 
double GetTotSumW2 () const
 Gets total sum of squared weights.
 
double GetTotSumWX () const
 Gets total sum of weight over x products.
 
double GetTotSumWX2 () const
 Gets total sum of weight over squared x products.
 

Protected Member Functions

void UpdateTotalSums (double x, double w)
 Updates the sums.
 
void Reset ()
 Resets the sums.
 

Protected Attributes

double fTotSumW = 0.
 Total sum (over all bins) of weights.
 
double fTotSumW2 = 0.
 Total sum (over all bins) of squared weights.
 
double fTotSumWX = 0.
 Total sum (over all bins) of weight over x products.
 
double fTotSumWX2 = 0.
 Total sum (over all bins) of weight over square x products.
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Friends

class boost::serialization::access
 Serialization rule.
 

Detailed Description

Storage for total sums of weights, squared weights, weights over x, weights over squared x.

Definition at line 138 of file Histogram.h.

Member Function Documentation

◆ GetTotSumW()

double cbm::algo::qa::TotalSums1D::GetTotSumW ( ) const
inline

Gets total sum of weights.

Definition at line 141 of file Histogram.h.

References fTotSumW.

◆ GetTotSumW2()

double cbm::algo::qa::TotalSums1D::GetTotSumW2 ( ) const
inline

Gets total sum of squared weights.

Definition at line 144 of file Histogram.h.

References fTotSumW2.

◆ GetTotSumWX()

double cbm::algo::qa::TotalSums1D::GetTotSumWX ( ) const
inline

Gets total sum of weight over x products.

Definition at line 147 of file Histogram.h.

References fTotSumWX.

◆ GetTotSumWX2()

double cbm::algo::qa::TotalSums1D::GetTotSumWX2 ( ) const
inline

Gets total sum of weight over squared x products.

Definition at line 150 of file Histogram.h.

References fTotSumWX2.

◆ Reset()

void cbm::algo::qa::TotalSums1D::Reset ( )
inlineprotected

Resets the sums.

Definition at line 165 of file Histogram.h.

References fTotSumW, fTotSumW2, fTotSumWX, and fTotSumWX2.

Referenced by cbm::algo::qa::TotalSums2D::Reset().

◆ serialize()

template<class Archive >
void cbm::algo::qa::TotalSums1D::serialize ( Archive & ar,
const unsigned int  )
inlineprivate

Definition at line 182 of file Histogram.h.

References fTotSumW, fTotSumW2, fTotSumWX, and fTotSumWX2.

◆ UpdateTotalSums()

void cbm::algo::qa::TotalSums1D::UpdateTotalSums ( double x,
double w )
inlineprotected

Updates the sums.

Parameters
xX value
wweight

Definition at line 156 of file Histogram.h.

References fTotSumW, fTotSumW2, fTotSumWX, fTotSumWX2, and x.

Referenced by cbm::algo::qa::TotalSums2D::UpdateTotalSums().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization rule.

Definition at line 180 of file Histogram.h.

Member Data Documentation

◆ fTotSumW

double cbm::algo::qa::TotalSums1D::fTotSumW = 0.
protected

Total sum (over all bins) of weights.

Definition at line 173 of file Histogram.h.

Referenced by GetTotSumW(), Reset(), serialize(), and UpdateTotalSums().

◆ fTotSumW2

double cbm::algo::qa::TotalSums1D::fTotSumW2 = 0.
protected

Total sum (over all bins) of squared weights.

Definition at line 174 of file Histogram.h.

Referenced by GetTotSumW2(), Reset(), serialize(), and UpdateTotalSums().

◆ fTotSumWX

double cbm::algo::qa::TotalSums1D::fTotSumWX = 0.
protected

Total sum (over all bins) of weight over x products.

Definition at line 175 of file Histogram.h.

Referenced by GetTotSumWX(), Reset(), serialize(), and UpdateTotalSums().

◆ fTotSumWX2

double cbm::algo::qa::TotalSums1D::fTotSumWX2 = 0.
protected

Total sum (over all bins) of weight over square x products.

Definition at line 176 of file Histogram.h.

Referenced by GetTotSumWX2(), Reset(), serialize(), and UpdateTotalSums().


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