HTL implements retrieval of statistics and entries information via separate helper classes. The helper class is called HStat and it allows us to decouple computation of statistics and entries information from the implementation of the histogram.
#include "HTL/Histograms.h"
Histo1D *h1D = new Histo1D("Histo1: parabolic function",20,0.,20.);
... // filling
// Now display some statistics:
//
long in_entries = HStat::in_range_entries_count(*histo);
long extra_entries = HStat::extra_entries_count(*histo);
cout << "Entries count: " << (in_entries + extra_entries)
<< " with IN_RANGE: " << in_entries
<< " EXTRA: " << extra_entries << endl;
double mean = HStat::mean( *histo );
cout << "MEAN (B.C.): " << mean << endl;
cout << "RMS (B.C.): " << HStat::rms(*histo, mean)
<< endl << endl;