CbmRoot
|
Storage for total sums of weights, squared weights, weights over x, weights over squared x. More...
#include <Histogram.h>
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. | |
Storage for total sums of weights, squared weights, weights over x, weights over squared x.
Definition at line 138 of file Histogram.h.
|
inline |
|
inline |
Gets total sum of squared weights.
Definition at line 144 of file Histogram.h.
References fTotSumW2.
|
inline |
Gets total sum of weight over x products.
Definition at line 147 of file Histogram.h.
References fTotSumWX.
|
inline |
Gets total sum of weight over squared x products.
Definition at line 150 of file Histogram.h.
References fTotSumWX2.
|
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().
|
inlineprivate |
Definition at line 182 of file Histogram.h.
References fTotSumW, fTotSumW2, fTotSumWX, and fTotSumWX2.
|
inlineprotected |
Updates the sums.
x | X value |
w | weight |
Definition at line 156 of file Histogram.h.
References fTotSumW, fTotSumW2, fTotSumWX, fTotSumWX2, and x.
Referenced by cbm::algo::qa::TotalSums2D::UpdateTotalSums().
|
friend |
Serialization rule.
Definition at line 180 of file Histogram.h.
|
protected |
Total sum (over all bins) of weights.
Definition at line 173 of file Histogram.h.
Referenced by GetTotSumW(), Reset(), serialize(), and UpdateTotalSums().
|
protected |
Total sum (over all bins) of squared weights.
Definition at line 174 of file Histogram.h.
Referenced by GetTotSumW2(), Reset(), serialize(), and UpdateTotalSums().
|
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().
|
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().