Warning, /include/Geant4/tools/histo/h2d 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_h2d
0005 #define tools_histo_h2d
0006
0007 #include "h2"
0008
0009 namespace tools {
0010 namespace histo {
0011
0012 class h2d : public h2<double,unsigned int,unsigned int,double,double> {
0013 typedef h2<double,unsigned int,unsigned int,double,double> parent;
0014 public:
0015 static const std::string& s_class() {
0016 static const std::string s_v("tools::histo::h2d");
0017 return s_v;
0018 }
0019 const std::string& s_cls() const {return s_class();}
0020 public:
0021 h2d():parent("",10,0,1,10,0,1){} //for I/O when reading.
0022
0023 h2d(const std::string& a_title,
0024 unsigned int aXnumber,double aXmin,double aXmax,
0025 unsigned int aYnumber,double aYmin,double aYmax)
0026 :parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax)
0027 {}
0028 h2d(const std::string& a_title,
0029 const std::vector<double>& a_edges_x,
0030 const std::vector<double>& a_edges_y)
0031 :parent(a_title,a_edges_x,a_edges_y)
0032 {}
0033
0034 virtual ~h2d(){}
0035 public:
0036 h2d(const h2d& a_from): parent(a_from){}
0037 h2d& operator=(const h2d& a_from){
0038 parent::operator=(a_from);
0039 return *this;
0040 }
0041
0042 private:static void check_instantiation() {h2d dummy("",10,0,1,10,0,1);}
0043 };
0044
0045 }}
0046
0047 #endif
0048
0049
0050
0051