A concreate implementation of the FunctionHelper class. More...
#include <ProjectorHelper.h>
Public Member Functions | |
virtual double | getTotal () const |
Returns the sum of the values of the data set. | |
virtual double | maxCoord () const |
Returns the largest coordinate value along the X axis in the data set. | |
virtual double | maxValue () const |
Returns the largest value in the data set. | |
virtual double | meanCoord () const |
Returns the mean of the coordinates along the X axis in the data set. | |
virtual double | meanValue () const |
Returns the mean of the values in the data set. | |
virtual double | minCoord () const |
Returns the smallest coordinate value along the X axis in the data set. | |
virtual double | minValue () const |
Returns the smallest value in the data set. | |
ProjectorHelper (const DataSource *ntuple) | |
The constructor taking ntuple pointer as arguments. | |
virtual int | size () const |
Returns the number of points in the data set. | |
virtual double | stdCoord () const |
Returns the standard deviation of the coordinates along the X axis in the data set. | |
virtual double | valueAt (double x) const |
Returns the value at a given coordinate. |
Private Attributes | |
const DataSource * | m_ntuple |
The pointer to the ntuple (of the appropriate data set) for which it is called to help. |
A concreate implementation of the FunctionHelper class.
This has access to the ntuple of the dataset via which it gets informations about various aspects of the datasets asked for.
Definition at line 33 of file ProjectorHelper.h.
ProjectorHelper | ( | const DataSource * | ntuple | ) |
The constructor taking ntuple pointer as arguments.
Definition at line 34 of file ProjectorHelper.cxx.
|
virtual |
Returns the sum of the values of the data set.
Implements FunctionHelper.
Definition at line 48 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::Y.
Referenced by ProjectorHelper::stdCoord().
|
virtual |
Returns the largest coordinate value along the X axis in the data set.
Implements FunctionHelper.
Definition at line 64 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::X.
|
virtual |
Returns the largest value in the data set.
Implements FunctionHelper.
Definition at line 82 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::Y.
|
virtual |
Returns the mean of the coordinates along the X axis in the data set.
Implements FunctionHelper.
Definition at line 103 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, hippodraw::Axes::X, and hippodraw::Axes::Y.
Referenced by StHist1DProjector::getAverage(), and ProjectorHelper::stdCoord().
|
virtual |
Returns the mean of the values in the data set.
Implements FunctionHelper.
Definition at line 91 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::Y.
Referenced by StHist1DProjector::getAverage().
|
virtual |
Returns the smallest coordinate value along the X axis in the data set.
Implements FunctionHelper.
Definition at line 55 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::X.
|
virtual |
Returns the smallest value in the data set.
Implements FunctionHelper.
Definition at line 73 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, and hippodraw::Axes::Y.
|
virtual |
Returns the number of points in the data set.
Implements FunctionHelper.
Definition at line 41 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple.
|
virtual |
Returns the standard deviation of the coordinates along the X axis in the data set.
Implements FunctionHelper.
Definition at line 119 of file ProjectorHelper.cxx.
References ProjectorHelper::getTotal(), ProjectorHelper::m_ntuple, ProjectorHelper::meanCoord(), hippodraw::Axes::X, and hippodraw::Axes::Y.
Referenced by ProjectorBase::getRMS().
|
virtual |
Returns the value at a given coordinate.
Implements FunctionHelper.
Definition at line 136 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, hippodraw::Axes::X, and hippodraw::Axes::Y.
|
private |
The pointer to the ntuple (of the appropriate data set) for which it is called to help.
Definition at line 40 of file ProjectorHelper.h.
Referenced by ProjectorHelper::getTotal(), ProjectorHelper::maxCoord(), ProjectorHelper::maxValue(), ProjectorHelper::meanCoord(), ProjectorHelper::meanValue(), ProjectorHelper::minCoord(), ProjectorHelper::minValue(), ProjectorHelper::size(), ProjectorHelper::stdCoord(), and ProjectorHelper::valueAt().