Back to home page

EIC code displayed by LXR

 
 

    


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