Go to the documentation of this file.
4 #ifndef tools_histo_c1d
5 #define tools_histo_c1d
19 static const std::string s_v(
"tools::histo::c1d");
59 size_t number =
m_ws.size();
60 for(
size_t index=0;index<number;index++)
m_ws[index] *= a_scale;
75 bool fill(
double aX,
double aW = 1){
120 _rms = ::sqrt(::fabs( (
m_Sx2w /
m_Sw) - _mean * _mean));
126 bool convert(
unsigned int a_bins,
double a_lower_edge,
double a_upper_edge){
135 bool convert(
const std::vector<double>& a_edges) {
148 template <
class HISTO>
150 size_t number =
m_xs.size();
151 for(
size_t index=0;index<number;index++) {
152 if(!a_histo.fill(
m_xs[index],
m_ws[index]))
return false;
157 double aCnvXmin,
double aCnvXmax){
202 if(&a_from==
this)
return *
this;
222 template <
class HISTO>
223 bool fillHistogram(HISTO& a_histo)
const {
return fill_histogram<HISTO>(a_histo);}