Geant4 Cross Reference |
1 // Copyright (C) 2010, Guy Barrand. All rights 2 // See the file tools.license for terms. 3 4 #ifndef tools_histo_p1d 5 #define tools_histo_p1d 6 7 #include "p1" 8 9 namespace tools { 10 namespace histo { 11 12 class p1d : public p1<double,unsigned int,unsi 13 typedef p1<double,unsigned int,unsigned int, 14 public: 15 static const std::string& s_class() { 16 static const std::string s_v("tools::histo 17 return s_v; 18 } 19 const std::string& s_cls() const {return s_c 20 public: 21 p1d():parent("",10,0,1){} //for I/O when rea 22 23 p1d(const std::string& a_title,unsigned int 24 :parent(a_title,aXnumber,aXmin,aXmax) 25 {} 26 27 p1d(const std::string& a_title,unsigned int 28 :parent(a_title,aXnumber,aXmin,aXmax,aVmin,a 29 {} 30 31 p1d(const std::string& a_title,const std::ve 32 :parent(a_title,a_edges) 33 {} 34 35 p1d(const std::string& a_title,const std::ve 36 :parent(a_title,a_edges,aVmin,aVmax) 37 {} 38 39 virtual ~p1d(){} 40 public: 41 p1d(const p1d& a_from): parent(a_from){} 42 p1d& operator=(const p1d& a_from){ 43 parent::operator=(a_from); 44 return *this; 45 } 46 47 private:static void check_instantiation() {p1d 48 }; 49 50 }} 51 52 #endif 53 54 55 56