// Copyright (C) 2010, Guy Barrand. All rights reserved. // See the file tools.license for terms. #ifndef tools_histo_p1d #define tools_histo_p1d #include "p1" namespace tools { namespace histo { class p1d : public p1 { typedef p1 parent; public: static const std::string& s_class() { static const std::string s_v("tools::histo::p1d"); return s_v; } const std::string& s_cls() const {return s_class();} public: p1d():parent("",10,0,1){} //for I/O when reading. p1d(const std::string& a_title,unsigned int aXnumber,double aXmin,double aXmax) :parent(a_title,aXnumber,aXmin,aXmax) {} p1d(const std::string& a_title,unsigned int aXnumber,double aXmin,double aXmax,double aVmin,double aVmax) :parent(a_title,aXnumber,aXmin,aXmax,aVmin,aVmax) {} p1d(const std::string& a_title,const std::vector& a_edges) :parent(a_title,a_edges) {} p1d(const std::string& a_title,const std::vector& a_edges,double aVmin,double aVmax) :parent(a_title,a_edges,aVmin,aVmax) {} virtual ~p1d(){} public: p1d(const p1d& a_from): parent(a_from){} p1d& operator=(const p1d& a_from){ parent::operator=(a_from); return *this; } private:static void check_instantiation() {p1d p("",10,0,1);p.gather_bins(5);} }; }} #endif