Map1Projector.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 
14 #ifndef _Map1Projector_H_
15 #define _Map1Projector_H_
16 
17 #include "NTupleProjector.h"
18 
19 namespace hippodraw {
20 
34 {
35 
36 private:
37 
40  std::string m_x_label;
41 
44  std::string m_y_option;
45 
46 
47 protected:
48 
50  Map1Projector ( const Map1Projector & projector );
51 
57  virtual void changedNTuple();
58 
60  virtual void addPointReps ();
61 
62 public:
63 
64 
66  Map1Projector();
67 
70  ProjectorBase * clone();
71 
72  virtual bool inRange ( int row ) const;
73 
77  virtual void setYErrorOption ( bool enable );
78 
81  virtual Range dataRangeOn ( hippodraw::Axes::Type ) const;
82  virtual Range valueRange ( ) const;
83 
86  virtual double getPosOn ( hippodraw::Axes::Type axis ) const;
87 
90  const std::string & getXLabel() const;
91 
96  const std::string & getYLabel ( bool density = false ) const;
97 
99  virtual double getAverage ( hippodraw::Axes::Type axis ) const;
100 
101  virtual DataSource * createNTuple () const;
102 
103  virtual void prepareValues ();
104 
105 
106 
107 protected:
108 
109  virtual void fillProjectedValues ( DataSource * ntuple,
110  bool in_range = false ) const;
111 
112 };
113 
114 } // namespace hippodraw
115 
116 #endif // _Map1Projector_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
std::string m_x_label
The label for the generated x axis.
Definition: Map1Projector.h:40
An NTupleProjector is a projector that projects data from an DataSource object.
std::string m_y_option
The label for the Y error binding option.
Definition: Map1Projector.h:44
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
A derived class of NTupleProjector that maps 1 DataSource column to a Y axis of two dimensional proje...
Definition: Map1Projector.h:33
hippodraw::NTupleProjector class interface
Type
Axes constants.
Definition: AxesType.h:31
Base class for DataSource.
Definition: DataSource.h:55

Generated for HippoDraw Class Library by doxygen