Go to the documentation of this file.
4 #ifndef tools_histo_c2d
5 #define tools_histo_c2d
19 static const std::string s_v(
"tools::histo::c2d");
33 bool fill(
double,
double,
double = 1);
45 bool convert(
unsigned int,
double,
double,
unsigned int,
double,
double);
46 bool convert(
const std::vector<double>&,
const std::vector<double>&);
48 template <
class HISTO>
50 size_t number =
m_xs.size();
51 for(
size_t index=0;index<number;index++) {
52 if(!a_histo.fill(
m_xs[index],
m_ys[index],
m_ws[index]))
return false;
95 if(&a_from==
this)
return *
this;
124 template <
class HISTO>
125 bool fillHistogram(HISTO& a_histo)
const {
return fill_histogram<HISTO>(a_histo);}
214 unsigned int a_bins_x,
double a_lower_edge_x,
double a_upper_edge_x
215 ,
unsigned int a_bins_y,
double a_lower_edge_y,
double a_upper_edge_y
219 a_bins_x,a_lower_edge_x,a_upper_edge_x,
220 a_bins_y,a_lower_edge_y,a_upper_edge_y);
254 size_t number =
m_ws.size();
255 for(
size_t index=0;index<number;index++)
m_ws[index] *= a_scale;
311 bool c2d::convert(
const std::vector<double>& a_edges_x,
const std::vector<double>& a_edges_y) {
314 a_edges_x,a_edges_y);
323 unsigned int aCnvXnumber,
double aCnvXmin,
double aCnvXmax
324 ,
unsigned int aCnvYnumber,
double aCnvYmin,
double aCnvYmax
350 rms = ::sqrt(::fabs( (
m_Sx2w /
m_Sw) - mean * mean));
364 rms = ::sqrt(::fabs( (
m_Sy2w /
m_Sw) - mean * mean));