g4tools  5.4.0
p2d
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_histo_p2d
5 #define tools_histo_p2d
6 
7 #include "p2"
8 
9 namespace tools {
10 namespace histo {
11 
12 class p2d : public p2<double,unsigned int,unsigned int,double,double,double> {
14 public:
15  static const std::string& s_class() {
16  static const std::string s_v("tools::histo::p2d");
17  return s_v;
18  }
19  const std::string& s_cls() const {return s_class();}
20 public:
21  p2d():parent("",10,0,1,10,0,1){} //for I/O when reading.
22 
23  p2d(const std::string& a_title,
24  unsigned int aXnumber,double aXmin,double aXmax,
25  unsigned int aYnumber,double aYmin,double aYmax)
26  :parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax)
27  {}
28 
29  p2d(const std::string& a_title,
30  unsigned int aXnumber,double aXmin,double aXmax,
31  unsigned int aYnumber,double aYmin,double aYmax,
32  double aVmin,double aVmax)
33  :parent(a_title,aXnumber,aXmin,aXmax,aYnumber,aYmin,aYmax,aVmin,aVmax)
34  {}
35 
36  p2d(const std::string& a_title,
37  const std::vector<double>& a_edges_x,
38  const std::vector<double>& a_edges_y)
39  :parent(a_title,a_edges_x,a_edges_y)
40  {}
41 
42  p2d(const std::string& a_title,
43  const std::vector<double>& a_edges_x,
44  const std::vector<double>& a_edges_y,
45  double aVmin,double aVmax)
46  :parent(a_title,a_edges_x,a_edges_y,aVmin,aVmax)
47  {}
48 
49  virtual ~p2d(){}
50 public:
51  p2d(const p2d& a_from): parent(a_from){}
52  p2d& operator=(const p2d& a_from){
53  parent::operator=(a_from);
54  return *this;
55  }
56 
57 private: static void check_instantiation() {p2d dummy("",10,0,1,10,0,1);}
58 };
59 
60 }}
61 
62 #endif
63 
64 
65 
66 
tools::histo::p2d::p2d
p2d(const std::string &a_title, const std::vector< double > &a_edges_x, const std::vector< double > &a_edges_y, double aVmin, double aVmax)
Definition: p2d:42
tools::histo::p2d::p2d
p2d()
Definition: p2d:21
p2
tools::histo::p2d::p2d
p2d(const std::string &a_title, const std::vector< double > &a_edges_x, const std::vector< double > &a_edges_y)
Definition: p2d:36
tools::histo::p2d
Definition: p2d:12
tools::histo::p2< double, unsigned int, unsigned int, double, double, double >::operator=
p2 & operator=(const p2 &a_from)
Definition: p2:272
tools::histo::p2
Definition: p2:14
tools::histo::p2d::p2d
p2d(const p2d &a_from)
Definition: p2d:51
tools::histo::p2d::s_class
static const std::string & s_class()
Definition: p2d:15
tools::histo::p2d::p2d
p2d(const std::string &a_title, unsigned int aXnumber, double aXmin, double aXmax, unsigned int aYnumber, double aYmin, double aYmax)
Definition: p2d:23
tools::histo::p2d::s_cls
const std::string & s_cls() const
Definition: p2d:19
tools::histo::p2d::p2d
p2d(const std::string &a_title, unsigned int aXnumber, double aXmin, double aXmax, unsigned int aYnumber, double aYmin, double aYmax, double aVmin, double aVmax)
Definition: p2d:29
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::histo::p2d::operator=
p2d & operator=(const p2d &a_from)
Definition: p2d:52
tools::histo::p2d::~p2d
virtual ~p2d()
Definition: p2d:49