Warning, /include/Geant4/tools/histo/h1df is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_histo_h1df
0005 #define tools_histo_h1df
0006
0007 // coord is in double.
0008 // weight is in float.
0009
0010 #include "h1"
0011
0012 namespace tools {
0013 namespace histo {
0014
0015 class h1df : public h1<double,unsigned int,unsigned int,float,float> {
0016 typedef h1<double,unsigned int,unsigned int,float,float> parent;
0017 public:
0018 static const std::string& s_class() {
0019 static const std::string s_v("tools::histo::h1df");
0020 return s_v;
0021 }
0022 const std::string& s_cls() const {return s_class();}
0023 public:
0024 h1df(const std::string& a_title,unsigned int aXnumber,float aXmin,float aXmax)
0025 :parent(a_title,aXnumber,aXmin,aXmax){}
0026
0027 h1df(const std::string& a_title,const std::vector<double>& a_edges)
0028 :parent(a_title,a_edges){}
0029
0030 virtual ~h1df(){}
0031 public:
0032 h1df(const h1df& a_from): parent(a_from){}
0033 h1df& operator=(const h1df& a_from){
0034 parent::operator=(a_from);
0035 return *this;
0036 }
0037
0038 private:static void check_instantiation() {h1df h("",10,0,1);h.gather_bins(5);}
0039 };
0040
0041 }}
0042
0043 #endif
0044
0045
0046
0047