Bins2DProfile.h
Go to the documentation of this file.
1 /*-*- mode: c++ -*- */
2 
14 #ifndef _Bins2DProfile_H_
15 #define _Bins2DProfile_H_
16 
17 #include "Bins2DBase.h"
18 
19 #include "axes/Range.h"
20 
21 namespace hippodraw {
22 
23 class DataSource;
24 
31 {
32 
33 protected:
34 
37  std::vector<std::vector<double> > m_sumZ;
38 
40  std::vector<std::vector<double> > m_variance;
41 
45 
46 
47 public:
48 
50  Bins2DProfile ( );
51 
53  Bins2DProfile( const Bins2DProfile & binner );
54 
56  virtual ~Bins2DProfile ();
57 
60  BinsBase * clone () const;
61 
62  virtual void setNumberOfBins ( hippodraw::Axes::Type axis, int nb );
63 
65  virtual void reset();
66 
68  virtual void accumulate( double x, double y, double z, double w = 1.0 );
69 
71  virtual double getZValue ( double x, double y ) const;
72 
73  virtual NTuple * createNTuple () const;
74  virtual void fillDataSource ( DataSource * ntuple ) const;
75  virtual void setBinContents ( const DataSource * ntuple );
76 
77 };
78 
79 } // namespace hippodraw
80 
81 #endif // _Bins2DProfile_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
The class for the 2D profile binner hierarchy.
Definition: Bins2DProfile.h:30
Bins2DBase class interface.
std::vector< std::vector< double > > m_variance
The accumulated square of the weights.
Definition: Bins2DProfile.h:40
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
A DataSource class implemented with std::vector&lt;double&gt; to store the column data. ...
Definition: NTuple.h:33
Range m_z_range
The range of the z axis.
Definition: Bins2DProfile.h:44
The base class for the 2D binner hierarchy.
Definition: Bins2DBase.h:30
hippodraw::Range class interface
Expresses a range of values.
Definition: Range.h:33
std::vector< std::vector< double > > m_sumZ
The accumulated sum of the z variable in each bin.
Definition: Bins2DProfile.h:37
Type
Axes constants.
Definition: AxesType.h:31
The base class for the binner hierarchy.
Definition: BinsBase.h:33
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen