inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/histo/p1d
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_p1d
00005 #define inlib_histo_p1d
00006 
00007 #include "p1"
00008 
00009 namespace inlib {
00010 namespace histo {
00011 
00012 class p1d : public p1<double,unsigned int,double,double,double> {
00013   typedef p1<double,unsigned int,double,double,double> parent;
00014 public:
00015   static const std::string& s_class() {
00016     static const std::string s_v("inlib::histo::p1d");
00017     return s_v;
00018   }
00019 public:
00020   p1d(const std::string& a_title,
00021                    int aXnumber,double aXmin,double aXmax)
00022   : parent(a_title,aXnumber,aXmin,aXmax)
00023   {}
00024 
00025   p1d(const std::string& a_title,
00026                    int aXnumber,double aXmin,double aXmax,
00027                    double aVmin,double aVmax)
00028   : parent(a_title,aXnumber,aXmin,aXmax,aVmin,aVmax)
00029   {}
00030 
00031   p1d(const std::string& a_title,
00032                    const std::vector<double>& aEdges)
00033   : parent(a_title,aEdges)
00034   {}
00035 
00036   p1d(const std::string& a_title,
00037                    const std::vector<double>& aEdges,
00038                    double aVmin,double aVmax)
00039   : parent(a_title,aEdges,aVmin,aVmax) 
00040   {}
00041 
00042   virtual ~p1d(){}
00043 public:
00044   p1d(const p1d& a_from): parent(a_from){}
00045   p1d& operator=(const p1d& a_from){
00046     parent::operator=(a_from);
00047     return *this;
00048   }
00049 };
00050 
00051 inline void p1d_check_instantiation() {
00052   p1d dummy("",10,0,1);
00053   dummy.gather_bins(5);
00054 }
00055 
00056 }}
00057 
00058 #endif
00059 
00060 
00061 
00062 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines