5 auto cnt_r_h=
new TH1F(
"count_rate",
6 "Count Rate;N_{Counts};# occurencies",
14 for (
int imeas=0;imeas<400;imeas++)
15 cnt_r_h->Fill(rndgen.
Poisson(mean_count));
21 cnt_r_h->DrawNormalized();
24 cout <<
"Moments of Distribution:\n"
25 <<
" - Mean = " << cnt_r_h->GetMean() <<
" +- "
26 << cnt_r_h->GetMeanError() <<
"\n"
27 <<
" - Std Dev = " << cnt_r_h->GetStdDev() <<
" +- "
28 << cnt_r_h->GetStdDevError() <<
"\n"
29 <<
" - Skewness = " << cnt_r_h->GetSkewness() <<
"\n"
30 <<
" - Kurtosis = " << cnt_r_h->GetKurtosis() <<
"\n";