1 #ifndef EVENTFILTER_UTILITIES_ASCIIHISTO_H
2 #define EVENTFILTER_UTILITIES_ASCIIHISTO_H
34 for(
unsigned int i = 0;
i <
cont_.size();
i++)
41 for(
unsigned int i = 0;
i <
cont_.size();
i++)
60 float yscale = (
ymax_*1.2) /20.;
61 std::ostringstream ost;
64 ost <<
title_ << std::endl;
66 for(
int j = 20;
j>=0;
j--)
70 ost << std::setw(8) << yscale*
j <<
"-|";
77 for(
unsigned int i = 0;
i <
nbins_+5;
i++)
79 if(
j==0) {ost <<
"-"; }
88 if(
j==0){ost <<
">"; }
95 for(
unsigned int i = 0;
i <
nbins_+5;
i++)
104 ost << std::setw(10) <<
xmin_ ;
106 for(
unsigned int i = 0;
i < nbins_+5;
i++)
107 if((
i+3)%10==0){ost << std::setw(10) << xmin_+
binsize_*(
i+3);
void fillDeque(std::deque< float > &cont)
AsciiHisto(std::string title, unsigned int nbins, float min, float max)
const T & max(const T &a, const T &b)
std::vector< float > cont_