14 #include "msdevstudio/MSconfig.h"
30 #ifdef ITERATOR_MEMBER_DEFECT
54 m_title ( projector.m_title ),
55 m_x_label ( projector.m_x_label ),
56 m_y_label ( projector.m_y_label )
68 return axis ==
"x" || axis ==
"X";
145 return static_cast <
int > ( sum );
170 double w = v.size() == 2 ? v[1] : 1.0;
virtual int getNumberOfEntries() const
Returns the total number of entries that went into creating the projected values. ...
std::string m_title
The title of the histogram.
virtual int getUnderflow() const =0
Returns the underflow.
virtual int getOverflow() const
Returns the number of overflow.
virtual bool isAxisBinned(const std::string &axis) const
Returns true if the intended axis is "X", otherwise returns false.
virtual double getPosOn(hippodraw::Axes::Type axis) const
Returns the minimum positive value of the data on a specified axis.
const DataSource * getProjectedValues() const
Returns DataSource representation of projected values.
BinsBase * m_binner
The binner object.
bool isEmpty() const
Returns false as this class' data source is never empty even if no filling has occurred yet...
std::string m_x_label
The label of the x axis.
StHist1DProjector class interface.
virtual int getOverflow() const =0
Returns the overflow.
hippodraw::AxisModelBase class interface
AxisModelBase * m_y_axis
The AxisModel along the Y axis.
virtual int getNumberOfEntries() const =0
Returns the true number of entries.
virtual void addValues(const std::vector< double > &v)
Add the values to the histogram.
A concreate implementation of the FunctionHelper class.
virtual void notifyObservers() const
Notifies Observer objects of a change.
virtual void checkScaling()
Checks the axis scaling.
A derived class of ProjectorBase that projects data accumulated by calls to its fill function into a ...
virtual void prepareValues()
Prepares the projector for plotting by executing, if needed, the binning procedure.
virtual void setDirty(bool value=true)
Sets the dirty flag to value.
A derived class of BinningProjector that implements the member function common to classes implementin...
double getPosOnValue() const
Returns the smallest positive value on the Y axis.
hippodraw::BinsBase class interface
ProjectorBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
virtual void setBinnerRange(hippodraw::Axes::Type axis, const Range &range, bool const_width)
Sets the Range of the binner.
virtual void setRange(hippodraw::Axes::Type, bool)
virtual const std::string & getTitle() const
Finds the title of the plot.
double getScaleFactor() const
Returns the scale factor.
virtual Range dataRangeOn(hippodraw::Axes::Type axis) const
Returns the range of the data on a specified axis.
std::string m_y_label
The label of the y axis.
virtual const Range & getRange(hippodraw::Axes::Type axis)=0
virtual double meanValue() const
Returns the mean of the values in the data set.
virtual void reset()
Resets the bins.
Range dataRangeOnValue() const
Returns the data range on the Y axis.
virtual double meanCoord() const
Returns the mean of the coordinates along the X axis in the data set.
virtual int getUnderflow() const
Returns the number of underflow.
std::string m_y_label_entries
The label of the y axis when axis is scaled.
const std::string & getXLabel() const
Returns the label (title) of the x axis.
StHist1DProjector()
The default constructor.
const std::string & getYLabel(bool flag=false) const
Returns the label for the Y axis.
virtual double getAverage(hippodraw::Axes::Type axis) const
Get the Average of all projected values on the specified axis.
void setYLabel()
Sets the Y axis label.
Expresses a range of values.
ProjectorHelper class interface.
The base class for the Projector hierarchy.