Basic user-level interface class for holding and managing a single set of "data points".
More...
#include <IDataPointSetROOT.h>
Basic user-level interface class for holding and managing a single set of "data points".
- Author
- T. Kraemer, DESY
- Version
- Id:
- IDataPointSetROOT.h,v 1.1 2006-12-08 10:58:59 tkraemer Exp
bool IDataPointSetROOT::addPoint |
( |
const IDataPoint & |
point | ) |
|
|
virtual |
Add a copy of an IDataPoint at the end of the set.
- Parameters
-
- Returns
- false If the point has the wrong dimension or if the point cannot be added.
Implements AIDA::IDataPointSet.
void * IDataPointSetROOT::cast |
( |
const std::string & |
className | ) |
const |
|
virtual |
See IManagedObject for a description.
- Parameters
-
className | The name of the class to cast on. |
- Returns
- The right pointer. Return 0 if failure.
Implements AIDA::IDataPointSet.
void IDataPointSetROOT::clear |
( |
| ) |
|
|
virtual |
int IDataPointSetROOT::dimension |
( |
| ) |
const |
|
virtual |
Get the dimension of the IDataPoints that can be stored in the set.
- Returns
- The dimension of the IDataPoints storable in the set.
Implements AIDA::IDataPointSet.
double IDataPointSetROOT::lowerExtent |
( |
int |
coord | ) |
const |
|
virtual |
Get the lower value for a give axis.
- Parameters
-
coord | The coordinate of the axis. |
- Returns
- The lower edge of the corresponding axis. If coord < 0 or coord >= dimension(), or if the set is empty NaN is returned.
Implements AIDA::IDataPointSet.
IDataPoint * IDataPointSetROOT::point |
( |
int |
index | ) |
|
|
virtual |
bool IDataPointSetROOT::removePoint |
( |
int |
index | ) |
|
|
virtual |
bool IDataPointSetROOT::scale |
( |
double |
scaleFactor | ) |
|
|
virtual |
Scales the values and the errors of all the measurements of each point by a given factor.
- Parameters
-
scaleFactor | The scale factor. |
- Returns
- false If an illegal scaleFactor is provided.
Implements AIDA::IDataPointSet.
bool IDataPointSetROOT::scaleErrors |
( |
double |
scaleFactor | ) |
|
|
virtual |
Scales the errors of all the measurements of each point by a given factor.
- Parameters
-
scaleFactor | The scale factor. |
- Returns
- false If an illegal scaleFactor is provided.
Implements AIDA::IDataPointSet.
bool IDataPointSetROOT::scaleValues |
( |
double |
scaleFactor | ) |
|
|
virtual |
Scales the values of all the measurements of each point by a given factor.
- Parameters
-
scaleFactor | The scale factor. |
- Returns
- false If an illegal scaleFactor is provided.
Implements AIDA::IDataPointSet.
bool IDataPointSetROOT::setCoordinate |
( |
int |
coord, |
|
|
const std::vector< double > & |
val, |
|
|
const std::vector< double > & |
err |
|
) |
| |
|
virtual |
Set the values and errors of a given coordinate all at once.
If this method is called on an empty IDataPointSet, a number of points equal to the size of the arrays provided is created; if the IDataPointSet is not empty the dimension of the array must match with the size of the IDataPointSet.
- Parameters
-
coord | The coordinate's index |
val | The array of the values for the given coordinate |
err | The array with the symmetric errors. |
- Returns
- false if an illegal coordinate is provided or if there is a mismatch between the size of the array and the size of the IDataPointSet.
Implements AIDA::IDataPointSet.
bool IDataPointSetROOT::setCoordinate |
( |
int |
coord, |
|
|
const std::vector< double > & |
val, |
|
|
const std::vector< double > & |
errp, |
|
|
const std::vector< double > & |
errm |
|
) |
| |
|
virtual |
Set the values and errors of a given coordinate all at once.
If this method is called on an empty IDataPointSet, a number of points equal to the size of the arrays provided is created; if the IDataPointSet is not empty the dimension of the array must match with the size of the IDataPointSet.
- Parameters
-
coord | The coordinate's index |
val | The array of the values for the given coordinate |
errp | The array with the plus errors. |
errm | The array with the minus errors. |
- Returns
- false if an illegal coordinate is provided or if there is a mismatch between the size of the array and the size of the IDataPointSet.
Implements AIDA::IDataPointSet.
bool IDataPointSetROOT::setTitle |
( |
const std::string & |
title | ) |
|
|
virtual |
int IDataPointSetROOT::size |
( |
| ) |
const |
|
virtual |
std::string IDataPointSetROOT::title |
( |
| ) |
const |
|
virtual |
double IDataPointSetROOT::upperExtent |
( |
int |
coord | ) |
const |
|
virtual |
Get the upper value for a give axis.
- Parameters
-
coord | The coordinate of the axis. |
- Returns
- The upper edge of the corresponding axis. If coord < 0 or coord >= dimension(), or if the set is empty NaN is returned.
Implements AIDA::IDataPointSet.
The documentation for this class was generated from the following files: