2 #ifndef AIDA_IPROFILE2DROOT_H
3 #define AIDA_IPROFILE2DROOT_H 1
6 #include <AIDA/IProfile2D.h>
7 #include <AIDA/IAxis.h>
11 #include <TProfile2D.h>
34 const std::string &
title,
41 const std::string & options =
"");
44 const std::string &
title,
53 const std::string & options =
"");
56 const std::string &
title,
57 const std::vector<double> & binEdgesX,
58 const std::vector<double> & binEdgesY,
59 const std::string & options =
"");
62 const std::string &
title,
63 const std::vector<double> & binEdgesX,
64 const std::vector<double> & binEdgesY,
67 const std::string & options =
"");
76 virtual bool fill(
double x,
double y,
double z,
double weight = 1) ;
85 virtual double binMeanX(
int indexX,
int indexY)
const ;
94 virtual double binMeanY(
int indexX,
int indexY)
const ;
102 virtual int binEntries(
int indexX,
int indexY)
const ;
122 virtual double binHeight(
int indexX,
int indexY)
const ;
142 virtual double binError(
int indexX,
int indexY)
const ;
150 virtual double binRms(
int indexX,
int indexY)
const ;
156 virtual double meanX()
const ;
162 virtual double meanY()
const ;
168 virtual double rmsX()
const ;
174 virtual double rmsY()
const ;
275 virtual std::string
title()
const ;
306 virtual bool reset() ;
327 void Profile2DHistograms(
const std::string & name,
328 const std::string &
title,
335 void Profile2DHistograms(
const std::string & name,
336 const std::string &
title,
337 const std::vector<double> & binEdgesX,
338 const std::vector<double> & binEdgesY);
340 TProfile2D* _profile;
342 TH2D* _histogramAIDA;
343 TH2D* _histogramAIDABinMeanX;
344 TH2D* _histogramAIDABinMeanY;
virtual double binError(int indexX, int indexY) const
The error on this bin.
Definition: IProfile2DROOT.cc:344
virtual double sumAllBinHeights() const
Get the sum of all the bins heights (including underflow and overflow bin).
Definition: IProfile2DROOT.cc:482
virtual double minBinHeight() const
Get the minimum height of the in-range bins.
Definition: IProfile2DROOT.cc:549
virtual double sumExtraBinHeights() const
Get the sum of the underflow and overflow bin height.
Definition: IProfile2DROOT.cc:496
virtual double binHeightY(int indexY) const
Equivalent to projectionY().binHeight(indexY).
Definition: IProfile2DROOT.cc:332
virtual double binHeight(int indexX, int indexY) const
Total height of the corresponding bin (ie the sum of the weights in this bin).
Definition: IProfile2DROOT.cc:311
virtual bool setTitle(const std::string &title)
Set the histogram title.
Definition: IProfile2DROOT.cc:591
virtual double maxBinHeight() const
Get the maximum height of the in-range bins.
Definition: IProfile2DROOT.cc:567
virtual int binEntriesX(int indexX) const
Equivalent to projectionX().binEntries(indexX).
Definition: IProfile2DROOT.cc:287
virtual double binMeanY(int indexX, int indexY) const
The weighted mean along y of a given bin.
Definition: IProfile2DROOT.cc:269
virtual double binRms(int indexX, int indexY) const
The spread (RMS) of this bin.
Definition: IProfile2DROOT.cc:353
virtual const IAxis & yAxis() const
Return the Y axis.
Definition: IProfile2DROOT.cc:387
virtual int binEntriesY(int indexY) const
Equivalent to projectionY().binEntries(indexY).
Definition: IProfile2DROOT.cc:299
virtual int dimension() const
Get the IAnnotation associated with the Histogram.
Definition: IProfile2DROOT.cc:601
virtual int entries() const
Get the number of in-range entries in the Histogram.
Definition: IProfile2DROOT.cc:616
virtual double meanX() const
Returns the mean of the profile, as calculated on filling-time projected on the X axis...
Definition: IProfile2DROOT.cc:362
IProfile2DROOT()
constructor
Definition: IProfile2DROOT.h:31
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual bool fill(double x, double y, double z, double weight=1)
Fill the IProfile2D.
Definition: IProfile2DROOT.cc:239
virtual double binHeightX(int indexX) const
Equivalent to projectionX().binHeight(indexX).
Definition: IProfile2DROOT.cc:320
virtual int extraEntries() const
Get the number of entries in the underflow and overflow bins.
Definition: IProfile2DROOT.cc:415
virtual double meanY() const
Returns the mean of the profile, as calculated on filling-time projected on the Y axis...
Definition: IProfile2DROOT.cc:367
User level interface to a 2-dimensional profile histogram.
Definition: IProfile2DROOT.h:24
virtual double rmsX() const
Returns the rms of the profile as calculated on filling-time projected on the X axis.
Definition: IProfile2DROOT.cc:372
virtual bool reset()
Reset the Histogram; as if just created.
Definition: IProfile2DROOT.cc:606
virtual ~IProfile2DROOT()
Destructor.
Definition: IProfile2DROOT.h:28
virtual int allEntries() const
Modifies this profile by adding the contents of profile to it.
Definition: IProfile2DROOT.cc:410
User level interface to a 2-dimensional profile histogram.
Definition: IProfile2D.h:28
virtual int coordToIndexY(double coordY) const
Convenience method, equivalent to yAxis().coordToIndex(coord).
Definition: IProfile2DROOT.cc:401
virtual const IAxis & xAxis() const
Return the X axis.
Definition: IProfile2DROOT.cc:382
virtual double sumBinHeights() const
Get the sum of in range bin heights in the IProfile.
Definition: IProfile2DROOT.cc:468
virtual int binEntries(int indexX, int indexY) const
The number of entries (ie the number of times fill was called for this bin).
Definition: IProfile2DROOT.cc:278
virtual double rmsY() const
Returns the rms of the profile as calculated on filling-time projected on the Y axis.
Definition: IProfile2DROOT.cc:377
virtual double binMeanX(int indexX, int indexY) const
The weighted mean along x of a given bin.
Definition: IProfile2DROOT.cc:260
virtual int coordToIndexX(double coordX) const
Convenience method, equivalent to xAxis().coordToIndex(coord).
Definition: IProfile2DROOT.cc:392
virtual std::string title() const
Get the Histogram's title.
Definition: IProfile2DROOT.cc:585