Warning, /include/Geant4/tools/histo/p1d 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_p1d
0005 #define tools_histo_p1d
0006
0007 #include "p1"
0008
0009 namespace tools {
0010 namespace histo {
0011
0012 class p1d : public p1<double,unsigned int,unsigned int,double,double,double> {
0013 typedef p1<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::p1d");
0017 return s_v;
0018 }
0019 const std::string& s_cls() const {return s_class();}
0020 public:
0021 p1d():parent("",10,0,1){} //for I/O when reading.
0022
0023 p1d(const std::string& a_title,unsigned int aXnumber,double aXmin,double aXmax)
0024 :parent(a_title,aXnumber,aXmin,aXmax)
0025 {}
0026
0027 p1d(const std::string& a_title,unsigned int aXnumber,double aXmin,double aXmax,double aVmin,double aVmax)
0028 :parent(a_title,aXnumber,aXmin,aXmax,aVmin,aVmax)
0029 {}
0030
0031 p1d(const std::string& a_title,const std::vector<double>& a_edges)
0032 :parent(a_title,a_edges)
0033 {}
0034
0035 p1d(const std::string& a_title,const std::vector<double>& a_edges,double aVmin,double aVmax)
0036 :parent(a_title,a_edges,aVmin,aVmax)
0037 {}
0038
0039 virtual ~p1d(){}
0040 public:
0041 p1d(const p1d& a_from): parent(a_from){}
0042 p1d& operator=(const p1d& a_from){
0043 parent::operator=(a_from);
0044 return *this;
0045 }
0046
0047 private:static void check_instantiation() {p1d p("",10,0,1);p.gather_bins(5);}
0048 };
0049
0050 }}
0051
0052 #endif
0053
0054
0055
0056