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