2 #ifndef AIDA_IHISTOGRAM3DROOT_H
3 #define AIDA_IHISTOGRAM3DROOT_H 1
5 #include <AIDA/IHistogram3D.h>
6 #include <AIDA/IAxis.h>
36 const std::string &
title,
46 const std::string & options =
"") ;
49 const std::string & title,
50 const std::vector<double> & binEdgesX,
51 const std::vector<double> & binEdgesY,
52 const std::vector<double> & binEdgesZ,
53 const std::string & options =
"") ;
68 virtual bool fill(
double x,
double y,
double z,
double weight = 1.) ;
78 virtual double binMeanX(
int indexX,
int indexY,
int indexZ)
const ;
88 virtual double binMeanY(
int indexX,
int indexY,
int indexZ)
const ;
98 virtual double binMeanZ(
int indexX,
int indexY,
int indexZ)
const ;
108 virtual int binEntries(
int indexX,
int indexY,
int indexZ)
const ;
145 virtual double binHeight(
int indexX,
int indexY,
int indexZ)
const ;
182 virtual double binError(
int indexX,
int indexY,
int indexZ)
const ;
189 virtual double meanX()
const ;
196 virtual double meanY()
const ;
203 virtual double meanZ()
const ;
210 virtual double rmsX()
const ;
217 virtual double rmsY()
const ;
224 virtual double rmsZ()
const ;
297 virtual std::string
title()
const ;
305 virtual bool setTitle(
const std::string & title) ;
306 virtual bool setName(
const std::string & name) ;
329 virtual bool reset() ;
419 virtual bool scale(
double scaleFactor) ;
433 TH3D *_histogramAIDA;
434 TH3D *_histogramAIDABinMeanX;
435 TH3D *_histogramAIDABinMeanY;
436 TH3D *_histogramAIDABinMeanZ;
virtual int coordToIndexY(double coord) const
Get the bin number corresponding to a given coordinate along the y axis.
Definition: IHistogram3DROOT.cc:458
virtual double sumBinHeights() const
Number of equivalent entries, i.e.
Definition: IHistogram3DROOT.cc:586
virtual double rmsZ() const
The RMS of the IHistogram3D along the z axis.
Definition: IHistogram3DROOT.cc:429
virtual double meanY() const
The mean of the IHistogram3D along the y axis.
Definition: IHistogram3DROOT.cc:409
virtual double sumAllBinHeights() const
Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW...
Definition: IHistogram3DROOT.cc:602
virtual int allEntries() const
See IManagedObject for a description.
Definition: IHistogram3DROOT.cc:541
virtual double sumExtraBinHeights() const
Sum of heights in the UNDERFLOW and OVERFLOW bins.
Definition: IHistogram3DROOT.cc:618
virtual double binMeanX(int indexX, int indexY, int indexZ) const
The weighted mean along the x axis of a given bin.
Definition: IHistogram3DROOT.cc:248
virtual bool add(const IHistogram3D &hist)
Add to this IHistogram3D the contents of another IHistogram3D.
Definition: IHistogram3DROOT.cc:707
virtual int binEntriesY(int index) const
Sum of all the entries of the bins along a given y bin.
Definition: IHistogram3DROOT.cc:307
class IAxis;
Definition: IHistogram2DROOT.h:25
virtual bool scale(double scaleFactor)
Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a g...
Definition: IHistogram3DROOT.cc:700
User level interface to 3D Histogram.
Definition: IHistogram3D.h:28
virtual double maxBinHeight() const
Maximum height of the in-range bins, i.e.
Definition: IHistogram3DROOT.cc:679
virtual double binMeanZ(int indexX, int indexY, int indexZ) const
The weighted mean the z axis of a given bin.
Definition: IHistogram3DROOT.cc:270
User level interface for factory classes of Histograms (binned, unbinned, and profile) The created ob...
Definition: IHistogramFactoryROOT.h:33
virtual int binEntries(int indexX, int indexY, int indexZ) const
Number of entries in the corresponding bin (ie the number of times fill was called for this bin)...
Definition: IHistogram3DROOT.cc:281
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual double binHeightZ(int index) const
Sum of all the heights of the bins along a given z bin.
Definition: IHistogram3DROOT.cc:378
virtual double binError(int indexX, int indexY, int indexZ) const
The error of a given bin.
Definition: IHistogram3DROOT.cc:393
virtual double rmsY() const
The RMS of the IHistogram3D along the y axis.
Definition: IHistogram3DROOT.cc:424
virtual int entries() const
Get the number of in-range entries in the Histogram.
Definition: IHistogram3DROOT.cc:521
virtual bool reset()
Reset the Histogram; as if just created.
Definition: IHistogram3DROOT.cc:511
virtual double binHeight(int indexX, int indexY, int indexZ) const
Total height of a give bin (ie the sum of the weights in this bin).
Definition: IHistogram3DROOT.cc:337
virtual ~IHistogram3DROOT()
Destructor.
Definition: IHistogram3DROOT.cc:17
IHistogram3DROOT()
Constructor.
Definition: IHistogram3DROOT.cc:41
virtual void printContents() const
Print out the contents of a histogram to the screen.
Definition: IHistogram3DROOT.cc:853
virtual bool setTitle(const std::string &title)
Set the histogram title.
Definition: IHistogram3DROOT.cc:486
virtual const IAxis & yAxis() const
Get the y axis of the IHistogram3D.
Definition: IHistogram3DROOT.cc:439
virtual int coordToIndexZ(double coord) const
Get the bin number corresponding to a given coordinate along the z axis.
Definition: IHistogram3DROOT.cc:467
virtual double rmsX() const
The RMS of the IHistogram3D along the x axis.
Definition: IHistogram3DROOT.cc:419
virtual int coordToIndexX(double coord) const
Get the bin number corresponding to a given coordinate along the x axis.
Definition: IHistogram3DROOT.cc:449
virtual double binMeanY(int indexX, int indexY, int indexZ) const
The weighted mean the y axis of a given bin.
Definition: IHistogram3DROOT.cc:259
virtual double minBinHeight() const
Minimum height of the in-range bins, i.e.
Definition: IHistogram3DROOT.cc:658
virtual int dimension() const
Get the IAnnotation associated with the Histogram.
Definition: IHistogram3DROOT.cc:506
class IAxis;
Definition: IHistogram3DROOT.h:24
virtual int binEntriesX(int index) const
Sum of all the entries of the bins along a given x bin.
Definition: IHistogram3DROOT.cc:292
virtual double binHeightX(int index) const
Sum of all the heights of the bins along a given x bin.
Definition: IHistogram3DROOT.cc:348
virtual bool fill(double x, double y, double z, double weight=1.)
Fill the IHistogram3D with a triplet of values and the corresponding weight.
Definition: IHistogram3DROOT.cc:223
virtual const IAxis & zAxis() const
Get the z axis of the IHistogram3D.
Definition: IHistogram3DROOT.cc:444
virtual int binEntriesZ(int index) const
Sum of all the entries of the bins along a given z bin.
Definition: IHistogram3DROOT.cc:322
virtual int extraEntries() const
Number of entries in the UNDERFLOW and OVERFLOW bins.
Definition: IHistogram3DROOT.cc:546
virtual double meanZ() const
The mean of the IHistogram3D along the z axis.
Definition: IHistogram3DROOT.cc:414
virtual std::string title() const
Get the Histogram's title.
Definition: IHistogram3DROOT.cc:480
virtual double meanX() const
The mean of the IHistogram3D along the x axis.
Definition: IHistogram3DROOT.cc:404
virtual const IAxis & xAxis() const
Get the x axis of the IHistogram3D.
Definition: IHistogram3DROOT.cc:434
virtual double binHeightY(int index) const
Sum of all the heights of the bins along a given y bin.
Definition: IHistogram3DROOT.cc:363