#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. |
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.
double getTotal | ( | ) | const [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::DataPoint3DTuple::Y.
Referenced by ProjectorHelper::stdCoord().
double maxCoord | ( | ) | const [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::DataPoint3DTuple::X.
double maxValue | ( | ) | const [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::DataPoint3DTuple::Y.
double meanCoord | ( | ) | const [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::DataPoint3DTuple::X, and hippodraw::DataPoint3DTuple::Y.
Referenced by StHist1DProjector::getAverage(), and ProjectorHelper::stdCoord().
double meanValue | ( | ) | const [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::DataPoint3DTuple::Y.
Referenced by StHist1DProjector::getAverage().
double minCoord | ( | ) | const [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::DataPoint3DTuple::X.
double minValue | ( | ) | const [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::DataPoint3DTuple::Y.
int size | ( | ) | const [virtual] |
Returns the number of points in the data set.
Implements FunctionHelper.
Definition at line 41 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple.
double stdCoord | ( | ) | const [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, mean, ProjectorHelper::meanCoord(), hippodraw::DataPoint3DTuple::X, and hippodraw::DataPoint3DTuple::Y.
Referenced by ProjectorBase::getRMS().
double valueAt | ( | double | x | ) | const [virtual] |
Returns the value at a given coordinate.
Implements FunctionHelper.
Definition at line 136 of file ProjectorHelper.cxx.
References ProjectorHelper::m_ntuple, hippodraw::DataPoint3DTuple::X, and hippodraw::DataPoint3DTuple::Y.
const DataSource* m_ntuple [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().