Back to home page

EIC code displayed by LXR

 
 

    


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