RAIDA  1.9.0
IDataPointSetROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IDATAPOINTSETROOT_H
3 #define AIDA_IDATAPOINTSETROOT_H 1
4 
5 #include <string>
6 #include <vector>
7 
8 #include <AIDA/IDataPointSet.h>
9 
10 namespace AIDA {
11 
12 class IAnnotation;
13 class IDataPoint;
14 
24 
25 public:
27  virtual ~IDataPointSetROOT() { /* nop */; }
28 
29  IDataPointSetROOT() { /* nop */; }
30 
36  virtual IAnnotation & annotation() ;
37 
38  virtual const IAnnotation & annotation() const;
39 
45  virtual std::string title() const ;
46 
53  virtual bool setTitle(const std::string & title) ;
54 
60  virtual int dimension() const ;
61 
67  virtual void clear() ;
68 
75  virtual int size() const ;
76 
83  virtual IDataPoint * point(int index) ;
84 
97  virtual bool setCoordinate(int coord,
98  const std::vector<double> & val,
99  const std::vector<double> & err) ;
100 
114  virtual bool setCoordinate(int coord,
115  const std::vector<double> & val,
116  const std::vector<double> & errp,
117  const std::vector<double> & errm) ;
118 
119  virtual const IDataPoint * point(int index) const ;
120 
126  virtual IDataPoint * addPoint() ;
127 
135  virtual bool addPoint(const IDataPoint & point) ;
136 
143  virtual bool removePoint(int index) ;
144 
152  virtual double lowerExtent(int coord) const ;
153 
161  virtual double upperExtent(int coord) const ;
162 
170  virtual bool scale(double scaleFactor) ;
171 
179  virtual bool scaleValues(double scaleFactor) ;
180 
188  virtual bool scaleErrors(double scaleFactor) ;
189 
195  virtual void * cast(const std::string & className) const ;
196 }; // class
197 } // namespace AIDA
198 #endif /* ifndef AIDA_IDATAPOINTSETROOT_H */
virtual bool removePoint(int index)
Remove the IDataPoint at a given index.
Definition: IDataPointSetROOT.cc:78
virtual int dimension() const
Get the dimension of the IDataPoints that can be stored in the set.
Definition: IDataPointSetROOT.cc:29
virtual ~IDataPointSetROOT()
Destructor.
Definition: IDataPointSetROOT.h:27
virtual bool setCoordinate(int coord, const std::vector< double > &val, const std::vector< double > &err)
Set the values and errors of a given coordinate all at once.
Definition: IDataPointSetROOT.cc:48
virtual bool scale(double scaleFactor)
Scales the values and the errors of all the measurements of each point by a given factor...
Definition: IDataPointSetROOT.cc:93
virtual bool scaleValues(double scaleFactor)
Scales the values of all the measurements of each point by a given factor.
Definition: IDataPointSetROOT.cc:98
virtual int size() const
Get the current size of the IDataPointSet, i.e.
Definition: IDataPointSetROOT.cc:38
virtual IAnnotation & annotation()
Get the IAnnotation of the IDataPointSet.
Definition: IDataPointSetROOT.cc:9
virtual void * cast(const std::string &className) const
See IManagedObject for a description.
Definition: IDataPointSetROOT.cc:108
virtual IDataPoint * addPoint()
Add a new empty IDataPoint at the end of the set.
Definition: IDataPointSetROOT.cc:68
Basic user-level interface class for holding and managing a single set of &quot;data points&quot;.
Definition: IDataPointSetROOT.h:23
Basic user-level interface class for holding and managing a single set of &quot;data points&quot;.
Definition: IDataPointSet.h:31
virtual void clear()
Remove all the IDataPoints in the set.
Definition: IDataPointSetROOT.cc:34
virtual double lowerExtent(int coord) const
Get the lower value for a give axis.
Definition: IDataPointSetROOT.cc:83
virtual bool scaleErrors(double scaleFactor)
Scales the errors of all the measurements of each point by a given factor.
Definition: IDataPointSetROOT.cc:103
virtual double upperExtent(int coord) const
Get the upper value for a give axis.
Definition: IDataPointSetROOT.cc:88
virtual bool setTitle(const std::string &title)
Set the title of the IDataPointSet.
Definition: IDataPointSetROOT.cc:24
virtual std::string title() const
Get the title of the IDataPointSet.
Definition: IDataPointSetROOT.cc:19
virtual IDataPoint * point(int index)
Get the IDataPoint at a give index in the set.
Definition: IDataPointSetROOT.cc:43