inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/histo/h2d
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_histo_h2d
00005 #define inlib_histo_h2d
00006 
00007 #include "h2"
00008 
00009 namespace inlib {
00010 namespace histo {
00011 
00012 class h2d : public h2<double,unsigned int,double,double> {
00013   typedef h2<double,unsigned int,double,double> parent;
00014 public:
00015   static const std::string& s_class() {
00016     static const std::string s_v("inlib::histo::h2d");
00017     return s_v;
00018   }
00019 public:
00020   h2d(const std::string& a_title,
00021                      bn_t aXnumber,double aXmin,double aXmax,
00022                      bn_t aYnumber,double aYmin,double aYmax)
00023   : parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax)
00024   {}
00025   h2d(const std::string& a_title,
00026                      const std::vector<double>& aEdgesX,
00027                      const std::vector<double>& aEdgesY)
00028   : parent(a_title,aEdgesX,aEdgesY)
00029   {}
00030 
00031   virtual ~h2d(){}
00032 public:
00033   h2d(const h2d& a_from): parent(a_from){}
00034   h2d& operator=(const h2d& a_from){
00035     parent::operator=(a_from);
00036     return *this;
00037   }
00038 #if defined(__CINT__)
00039   bool fill(double aX,double aY,double aW = 1) {
00040     h2<double,unsigned int,double,double>::fill(aX,aY,aW);    
00041   }
00042   void hprint(std::ostream& a_out) {
00043     h2<double,unsigned int,double,double>::hprint(a_out);
00044   }
00045 #endif
00046 };
00047 
00048 inline void h2d_check_instantiation() {h2d dummy("",10,0,1,10,0,1);}
00049 
00050 }}
00051 
00052 #endif
00053 
00054 
00055 
00056 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines