2 #ifndef AIDA_IHISTOGRAM1DROOT_H
3 #define AIDA_IHISTOGRAM1DROOT_H 1
5 #include <AIDA/IHistogram1D.h>
6 #include <RAIDA/IHistogram2DROOT.h>
7 #include <RAIDA/IHistogram3DROOT.h>
11 #include <AIDA/IAxis.h>
33 const std::string &
title,
37 const std::string & options =
"") ;
40 const std::string & title,
41 const std::vector<double> & binEdges,
42 const std::string & options =
"") ;
60 virtual bool fill(
double x,
double weight = 1.) ;
68 virtual double binMean(
int index)
const ;
79 virtual std::string
title()
const;
87 virtual bool setTitle(
const std::string & title) ;
88 virtual bool setName(
const std::string & name) ;
102 virtual bool reset();
179 virtual bool scale(
double scaleFactor) ;
209 virtual double binHeight(
int index)
const ;
217 virtual double binError(
int index)
const ;
224 virtual double mean()
const ;
231 virtual double rms()
const ;
268 TH1D *_histogramAIDA;
269 TH1D *_histogramAIDABinMean;
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: IHistogram1DROOT.cc:343
virtual double sumAllBinHeights() const
Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW...
Definition: IHistogram1DROOT.cc:289
virtual double sumBinHeights() const
Sum of in-range bin heights in the IHistogram, UNDERFLOW and OVERFLOW bins are excluded.
Definition: IHistogram1DROOT.cc:277
virtual double binError(int index) const
The error of a given bin.
Definition: IHistogram1DROOT.cc:372
virtual double rms() const
The RMS of the whole IHistogram1D.
Definition: IHistogram1DROOT.cc:383
User level interface to 1D Histogram.
Definition: IHistogram1D.h:28
virtual int entries() const
Get the number of in-range entries in the Histogram.
Definition: IHistogram1DROOT.cc:252
virtual double mean() const
The mean of the whole IHistogram1D.
Definition: IHistogram1DROOT.cc:378
class IAxis;
Definition: IHistogram2DROOT.h:25
virtual double binMean(int index) const
The weighted mean of a bin.
Definition: IHistogram1DROOT.cc:354
User level interface for factory classes of Histograms (binned, unbinned, and profile) The created ob...
Definition: IHistogramFactoryROOT.h:33
virtual int coordToIndex(double coord) const
Get the bin number corresponding to a given coordinate along the x axis.
Definition: IHistogram1DROOT.cc:393
virtual double minBinHeight() const
Minimum height of the in-range bins, i.e.
Definition: IHistogram1DROOT.cc:309
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual int allEntries() const
Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW...
Definition: IHistogram1DROOT.cc:264
virtual int dimension() const
Get the Histogram's dimension.
Definition: IHistogram1DROOT.cc:239
class IAxis;
Definition: IHistogram1DROOT.h:24
virtual double sumExtraBinHeights() const
Sum of heights in the UNDERFLOW and OVERFLOW bins.
Definition: IHistogram1DROOT.cc:298
virtual std::string title() const
Get the Histogram's title.
Definition: IHistogram1DROOT.cc:217
virtual bool reset()
Reset the Histogram; as if just created.
Definition: IHistogram1DROOT.cc:244
virtual int binEntries(int index) const
The weighted mean of a bin.
Definition: IHistogram1DROOT.cc:360
virtual double binHeight(int index) const
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition: IHistogram1DROOT.cc:366
virtual bool setTitle(const std::string &title)
Set the histogram title.
Definition: IHistogram1DROOT.cc:223
virtual void printContents() const
Print out the contents of a histogram to the screen.
Definition: IHistogram1DROOT.cc:485
virtual bool fill(double x, double weight=1.)
Fill the IHistogram1D with a value and the corresponding weight.
Definition: IHistogram1DROOT.cc:196
virtual const IAxis & axis() const
Get the x axis of the IHistogram1D.
Definition: IHistogram1DROOT.cc:388
virtual int extraEntries() const
Number of entries in the UNDERFLOW and OVERFLOW bins.
Definition: IHistogram1DROOT.cc:269
virtual bool add(const IHistogram1D &hist)
Add to this IHistogram1D the contents of another IHistogram1D.
Definition: IHistogram1DROOT.cc:399
virtual ~IHistogram1DROOT()
Destructor.
Definition: IHistogram1DROOT.cc:18
virtual double maxBinHeight() const
Maximum height of the in-range bins, i.e.
Definition: IHistogram1DROOT.cc:326