Go to the documentation of this file.
4 #ifndef tools_histo_base_histo
5 #define tools_histo_base_histo
26 template <
class TC,
class TO,
class TN,
class TW,
class TH>
30 static const std::string& s_class() {
31 static const std::string s_v(
"tools::histo::base_histo");
48 #ifdef tools_histo_base_histo //for backward compatibility with tools
60 mem::increment(s_class().c_str());
66 mem::decrement(s_class().c_str());
72 mem::increment(s_class().c_str());
77 if(&a_from==
this)
return *
this;
112 return (sw * sw)/sw2;
190 return first?
false:
true;
208 return first?
false:
true;
294 const std::vector<bn_t>& aNumbers,
295 const std::vector<TC>& aMins,
296 const std::vector<TC>& aMaxs) {
319 if(!a_dim)
return false;
322 for(
dim_t iaxis=0;iaxis<a_dim;iaxis++) {
364 if(!a_dim)
return false;
367 for(
dim_t iaxis=0;iaxis<a_dim;iaxis++) {
410 std::vector<TC> empty;
449 bool annotation(
const std::string& a_key,std::string& a_value)
const {
452 a_value = (*it).second;
459 a_out <<
" * ANNOTATIONS :" << std::endl;
460 annotations_t::const_iterator it;
463 a_out <<
" * " << (*it).first <<
" = " << (*it).second << std::endl;
488 for(
size_t iplane=0;iplane<nplane;iplane++)
593 if(a_factor<0)
return false;
594 TW factor2 = a_factor * a_factor;
620 if(sw==0)
return false;
638 if(sw==0)
return false;
640 a_value = ::sqrt(::fabs((sx2w / sw) - mean * mean));
654 static const std::string s_v(
"axis_x.title");
658 static const std::string s_v(
"axis_y.title");
662 static const std::string s_v(
"axis_z.title");