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