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