DyHist1DProjector.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _DyHist1DProjector_H_
15 #define _DyHist1DProjector_H_
16 
17 #include "Hist1DProjImp.h"
18 #include "NTupleProjector.h"
19 
20 namespace hippodraw {
21 
22 class Range;
23 
39  public NTupleProjector
40 {
41 
42 private:
43 
46  bool m_fixed;
47 
48 protected:
49 
52  DyHist1DProjector ( const DyHist1DProjector & projector );
53 
56  virtual void execute();
57 
62  virtual void changedNTuple();
63 
64 public:
65 
68 
71  virtual ProjectorBase * clone();
72 
77  virtual Range dataRangeOn ( hippodraw::Axes::Type axis ) const;
78 
81  virtual double getPosOn ( hippodraw::Axes::Type axis ) const;
82 
89  virtual const std::string & getYLabel ( bool density = false ) const;
90 
92  virtual double getAverage ( hippodraw::Axes::Type axis ) const;
93 
94  virtual bool isAxisBinned ( const std::string & axis ) const;
95 
101  virtual void setBinnerRange ( hippodraw::Axes::Type axis,
102  const Range & range,
103  bool const_width );
104 
110  virtual void update ( const Observable * object );
111 
117  virtual void willDelete ( const Observable * object );
118 
120  virtual int getUnderflow () const;
121 
123  virtual int getOverflow () const;
124 
125 
126 };
127 
128 } // namespace hippodraw
129 
130 #endif // _DyHist1DProjector_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
Part of an implementation of the Observable-Observer pattern based on the example in the GOF Patterns...
Definition: Observable.h:39
A derived class of BinningProjector that implements the member function common to classes implementin...
Definition: Hist1DProjImp.h:32
An NTupleProjector is a projector that projects data from an DataSource object.
A derived class of BinningProjector that projects a column of data into a one dimensional histogram...
numeric::array clone(numeric::array arr)
Definition: num_util.cpp:412
The base class for the Projector hierarchy.
Definition: ProjectorBase.h:56
Expresses a range of values.
Definition: Range.h:33
bool m_fixed
Sets true if the bins are disconnected from the data source and are, thus, fixed. ...
hippodraw::NTupleProjector class interface
Type
Axes constants.
Definition: AxesType.h:31
Hist1DProjImp class interface.

Generated for HippoDraw Class Library by doxygen