#include <computils.h>
Definition at line 127 of file computils.h.
◆ true_mean()
true_mean::true_mean |
( |
TH1F * |
h | ) |
|
Definition at line 80 of file computils.cxx.
87 for (
int i=0 ;
i<
h->GetNbinsX() ;
i++ ) {
88 double w =
h->GetBinLowEdge(
i+2)-
h->GetBinLowEdge(
i+1);
89 f +=
h->GetBinContent(
i+1)*
w;
90 fx +=
h->GetBinContent(
i+1)*
w*
h->GetBinCenter(
i+1);
91 fx2 +=
h->GetBinContent(
i+1)*
w*
h->GetBinCenter(
i+1)*
h->GetBinCenter(
i+1);
◆ error()
double true_mean::error |
( |
| ) |
const |
|
inline |
◆ mean()
double true_mean::mean |
( |
| ) |
const |
|
inline |
◆ m_error
double true_mean::m_error |
|
private |
◆ m_mean
The documentation for this class was generated from the following files: