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