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