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

TotalSums1D including storage for total sums of w*x*y, w*y, w*y*y products. More...

#include <Histogram.h>

Inheritance diagram for cbm::algo::qa::TotalSums2D:
[legend]
Collaboration diagram for cbm::algo::qa::TotalSums2D:
[legend]

Public Member Functions

double GetTotSumWXY () const
 Gets total sum of weight over squared y products.
 
double GetTotSumWY () const
 Gets total sum of weight over y products.
 
double GetTotSumWY2 () const
 Gets total sum of weight over squared y products.
 
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 Reset ()
 Resets the sums.
 
void UpdateTotalSums (double x, double y, double w)
 Updates the sums.
 
void UpdateTotalSums (double x, double w)
 Updates the sums.
 

Protected Attributes

double fTotSumWY = 0.
 Total sum (over all bins) of weight over y products.
 
double fTotSumWXY = 0.
 Total sum (over all bins) of weight over square x products.
 
double fTotSumWY2 = 0.
 Total sum (over all bins) of weight over x over y products.
 
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

TotalSums1D including storage for total sums of w*x*y, w*y, w*y*y products.

Definition at line 193 of file Histogram.h.

Member Function Documentation

◆ GetTotSumW()

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

Gets total sum of weights.

Definition at line 141 of file Histogram.h.

References cbm::algo::qa::TotalSums1D::fTotSumW.

◆ GetTotSumW2()

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

Gets total sum of squared weights.

Definition at line 144 of file Histogram.h.

References cbm::algo::qa::TotalSums1D::fTotSumW2.

◆ GetTotSumWX()

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

Gets total sum of weight over x products.

Definition at line 147 of file Histogram.h.

References cbm::algo::qa::TotalSums1D::fTotSumWX.

◆ GetTotSumWX2()

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

Gets total sum of weight over squared x products.

Definition at line 150 of file Histogram.h.

References cbm::algo::qa::TotalSums1D::fTotSumWX2.

◆ GetTotSumWXY()

double cbm::algo::qa::TotalSums2D::GetTotSumWXY ( ) const
inline

Gets total sum of weight over squared y products.

Definition at line 196 of file Histogram.h.

References fTotSumWXY.

◆ GetTotSumWY()

double cbm::algo::qa::TotalSums2D::GetTotSumWY ( ) const
inline

Gets total sum of weight over y products.

Definition at line 199 of file Histogram.h.

References fTotSumWY.

◆ GetTotSumWY2()

double cbm::algo::qa::TotalSums2D::GetTotSumWY2 ( ) const
inline

Gets total sum of weight over squared y products.

Definition at line 202 of file Histogram.h.

References fTotSumWY2.

◆ Reset()

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

Resets the sums.

Definition at line 206 of file Histogram.h.

References fTotSumWXY, fTotSumWY, fTotSumWY2, and cbm::algo::qa::TotalSums1D::Reset().

◆ serialize()

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

Definition at line 234 of file Histogram.h.

References fTotSumWXY, fTotSumWY, and fTotSumWY2.

◆ UpdateTotalSums() [1/2]

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

◆ UpdateTotalSums() [2/2]

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

Updates the sums.

Parameters
xX value
yY value
wweight

Definition at line 218 of file Histogram.h.

References fTotSumWXY, fTotSumWY, fTotSumWY2, cbm::algo::qa::TotalSums1D::UpdateTotalSums(), x, and y.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization rule.

Definition at line 232 of file Histogram.h.

Member Data Documentation

◆ fTotSumW

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

◆ fTotSumW2

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

◆ fTotSumWX

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

◆ fTotSumWX2

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

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

Definition at line 176 of file Histogram.h.

Referenced by cbm::algo::qa::TotalSums1D::GetTotSumWX2(), cbm::algo::qa::TotalSums1D::Reset(), cbm::algo::qa::TotalSums1D::serialize(), and cbm::algo::qa::TotalSums1D::UpdateTotalSums().

◆ fTotSumWXY

double cbm::algo::qa::TotalSums2D::fTotSumWXY = 0.
protected

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

Definition at line 227 of file Histogram.h.

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

◆ fTotSumWY

double cbm::algo::qa::TotalSums2D::fTotSumWY = 0.
protected

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

Definition at line 226 of file Histogram.h.

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

◆ fTotSumWY2

double cbm::algo::qa::TotalSums2D::fTotSumWY2 = 0.
protected

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

Definition at line 228 of file Histogram.h.

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


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