2 #ifndef AIDA_ICLOUD2DROOT_H
3 #define AIDA_ICLOUD2DROOT_H 1
8 #include "AIDA/ICloud.h"
9 #include "AIDA/ICloud2D.h"
10 #include <AIDA/ITree.h>
11 #include <RAIDA/PathName.h>
32 const std::string &
title,
35 const std::string & options =
"");
51 virtual bool fill(
double x,
double y,
double weight = 1.) ;
88 virtual double valueX(
int index)
const ;
97 virtual double valueY(
int index)
const ;
106 virtual double weight(
int index)
const ;
113 virtual double meanX()
const ;
120 virtual double meanY()
const ;
127 virtual double rmsX()
const ;
134 virtual double rmsY()
const ;
148 virtual bool convert(
int nBinsX,
155 virtual bool myConvert(
int nBinsX,
205 virtual bool myConvertToHistogram()
const ;
227 virtual bool scale(
double scaleFactor) ;
238 virtual std::string
title()
const ;
269 virtual bool reset() ;
291 mutable bool _isConverted;
292 static const int _nBinsDefault = 100;
294 mutable TTree *_ROOTTree;
300 mutable double _histoLowerEdgeX;
301 mutable double _histoUpperEdgeX;
302 mutable double _histoLowerEdgeY;
303 mutable double _histoUpperEdgeY;
class IManagedObject;
Definition: ITree.h:37
virtual double valueX(int index) const
Get the x value corresponding to a given entry.
Definition: ICloud2DROOT.cc:147
virtual ~ICloud2DROOT()
Destructor.
Definition: ICloud2DROOT.h:28
virtual int maxEntries() const
Get the number of entries after which the cloud will be converted to an IHistogram.
Definition: ICloud2DROOT.cc:414
virtual double weight(int index) const
Get the weight corresponding to a given entry.
Definition: ICloud2DROOT.cc:177
virtual bool isConverted() const
Check if the ICloud has been converted to an IHistogram.
Definition: ICloud2DROOT.cc:409
ICloud2DROOT(const std::string &path, const std::string &title, int nMax, ITree *usedTree, const std::string &options="")
Constructor.
Definition: ICloud2DROOT.cc:20
virtual double rmsX() const
Get the RMS of the ICloud2D along the x axis.
Definition: ICloud2DROOT.cc:238
virtual bool fill(double x, double y, double weight=1.)
Fill the ICloud2D with a couple of values and a corresponding weight.
Definition: ICloud2DROOT.cc:73
virtual bool setTitle(const std::string &title)
Set the histogram title.
Definition: ICloud2DROOT.cc:480
virtual double sumOfWeights() const
Get the sum of weights of all the entries.
Definition: ICloud2DROOT.cc:374
Definition: PathName.h:19
User level interface to a 2D Cloud.
Definition: ICloud2D.h:30
virtual double lowerEdgeX() const
Get the lower edge of the ICloud2D along the x axis.
Definition: ICloud2DROOT.cc:99
virtual double upperEdgeY() const
Get the upper edge of the ICloud2D along the y axis.
Definition: ICloud2DROOT.cc:135
virtual double meanY() const
Get the mean of the ICloud2D along the y axis.
Definition: ICloud2DROOT.cc:215
virtual double lowerEdgeY() const
Get the lower edge of the ICloud2D along the y axis.
Definition: ICloud2DROOT.cc:111
virtual bool scale(double scaleFactor)
Scale the weights by a given factor.
Definition: ICloud2DROOT.cc:419
virtual double valueY(int index) const
Get the y value corresponding to a given entry.
Definition: ICloud2DROOT.cc:162
User level interface to a 2D Cloud.
Definition: ICloud2DROOT.h:24
virtual bool convert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY)
Convert internally the ICloud2D to an IHistogram2D with given number of bins, upper edge and lower ed...
Definition: ICloud2DROOT.cc:288
User level interface to 2D Histogram.
Definition: IHistogram2D.h:28
virtual bool reset()
Reset the Histogram; as if just created.
Definition: ICloud2DROOT.cc:499
virtual double upperEdgeX() const
Get the upper edge of the ICloud2D along the x axis.
Definition: ICloud2DROOT.cc:123
virtual double meanX() const
Get the mean of the ICloud2D along the x axis.
Definition: ICloud2DROOT.cc:192
virtual double rmsY() const
Get the RMS of the ICloud2D along the y axis.
Definition: ICloud2DROOT.cc:263
virtual int dimension() const
Get the IAnnotation associated with the Histogram.
Definition: ICloud2DROOT.cc:494
virtual const IHistogram2D & histogram() const
Convert internally the ICloud2D to an IHistogram2D with given bin edges.
Definition: ICloud2DROOT.cc:348
virtual int entries() const
Get the number of in-range entries in the Histogram.
Definition: ICloud2DROOT.cc:512
virtual bool fillHistogram(IHistogram2D &hist) const
Project the ICloud2D on an IHistogram2D.
Definition: ICloud2DROOT.cc:358
virtual bool convertToHistogram()
Convert the ICloud to an IHistogram using the default number of bins.
Definition: ICloud2DROOT.cc:396
virtual std::string title() const
Get the Histogram's title.
Definition: ICloud2DROOT.cc:467