Back to home page

EIC code displayed by LXR

 
 

    


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