g4tools  5.4.0
h1df
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_histo_h1df
5 #define tools_histo_h1df
6 
7 // coord is in double.
8 // weight is in float.
9 
10 #include "h1"
11 
12 namespace tools {
13 namespace histo {
14 
15 class h1df : public h1<double,unsigned int,unsigned int,float,float> {
17 public:
18  static const std::string& s_class() {
19  static const std::string s_v("tools::histo::h1df");
20  return s_v;
21  }
22  const std::string& s_cls() const {return s_class();}
23 public:
24  h1df(const std::string& a_title,unsigned int aXnumber,float aXmin,float aXmax)
25  :parent(a_title,aXnumber,aXmin,aXmax){}
26 
27  h1df(const std::string& a_title,const std::vector<double>& a_edges)
28  :parent(a_title,a_edges){}
29 
30  virtual ~h1df(){}
31 public:
32  h1df(const h1df& a_from): parent(a_from){}
33  h1df& operator=(const h1df& a_from){
34  parent::operator=(a_from);
35  return *this;
36  }
37 
38 private:static void check_instantiation() {h1df h("",10,0,1);h.gather_bins(5);}
39 };
40 
41 }}
42 
43 #endif
44 
45 
46 
47 
tools::histo::h1< double, unsigned int, unsigned int, float, float >::operator=
h1 & operator=(const h1 &a_from)
Definition: h1:244
tools::histo::h1df::h1df
h1df(const h1df &a_from)
Definition: h1df:32
tools::histo::h1df::~h1df
virtual ~h1df()
Definition: h1df:30
tools::histo::h1df::s_class
static const std::string & s_class()
Definition: h1df:18
tools::histo::h1
Definition: h1:19
tools::histo::h1df::h1df
h1df(const std::string &a_title, const std::vector< double > &a_edges)
Definition: h1df:27
tools::histo::h1df
Definition: h1df:15
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::histo::h1df::operator=
h1df & operator=(const h1df &a_from)
Definition: h1df:33
h1
tools::histo::h1df::s_cls
const std::string & s_cls() const
Definition: h1df:22
tools::histo::h1df::h1df
h1df(const std::string &a_title, unsigned int aXnumber, float aXmin, float aXmax)
Definition: h1df:24