#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
Collection abstract base class.
A TGraph is an object made of two arrays X and Y with npoints each.
TH1 is the base class of all histogram classes in ROOT.
virtual Bool_t Multiply(TF1 *f1, Double_t c1=1)
Performs the operation:
Int_t fNcells
Number of bins(1D), cells (2D) +U/Overflows.
virtual Bool_t Divide(TF1 *f1, Double_t c1=1)
Performs the operation: this = this/(c1*f1) if errors are defined (see TH1::Sumw2),...
Helper class to represent a bin in the TH2Poly histogram.
Double_t GetXMin()
Returns the minimum value for the x coordinates of the bin.
Bool_t GetChanged() const
~TH2PolyBin() override
Destructor.
Double_t GetYMax()
Returns the maximum value for the y coordinates of the bin.
Double_t GetArea()
Returns the area of the bin.
Double_t GetYMin()
Returns the minimum value for the y coordinates of the bin.
Double_t fContent
Bin content.
Bool_t IsInside(Double_t x, Double_t y) const
Return "true" if the point (x,y) is inside the bin.
Double_t fXmax
X maximum value.
void SetContent(Double_t content)
Int_t fNumber
Bin number of the bin in TH2Poly.
TH2PolyBin()
Default constructor.
Double_t fYmax
Y maximum value.
Double_t GetXMax()
Returns the maximum value for the x coordinates of the bin.
Double_t GetContent() const
Double_t fYmin
Y minimum value.
void SetChanged(Bool_t flag)
Int_t GetBinNumber() const
Double_t fXmin
X minimum value.
TObject * GetPolygon() const
TObject * fPoly
Object holding the polygon definition.
Bool_t fChanged
For the 3D Painter.
2D Histogram with Polygonal Bins
Bool_t Multiply(TF1 *, Double_t) override
NOT IMPLEMENTED for TH2Poly.
void UpdateBinContent(Int_t bin, Double_t content) override
Raw update of bin content on internal data structure see convention for numbering bins in TH1::GetBin...
Double_t GetBinError(Int_t, Int_t) const override
NOT IMPLEMENTED for TH2Poly.
TList * GetBins()
Returns the TList of all bins in the histogram.
void ClearBinContents()
Clears the contents of all bins in the histogram.
Double_t fOverflow[kNOverflow]
Overflow bins.
Bool_t fFloat
When set to kTRUE, allows the histogram to expand if a bin outside the limits is added.
Int_t Fill(const char *, Double_t, Double_t) override
NOT IMPLEMENTED for TH2Poly.
Double_t ComputeIntegral(Bool_t) override
NOT IMPLEMENTED for TH2Poly.
Bool_t IsIntersecting(TH2PolyBin *bin, Double_t xclipl, Double_t xclipr, Double_t yclipb, Double_t yclipt)
Returns kTRUE if the input bin is intersecting with the input rectangle (xclipl, xclipr,...
void Honeycomb(Double_t xstart, Double_t ystart, Double_t a, Int_t k, Int_t s)
Bins the histogram using a honeycomb structure.
Double_t GetBinContent(Int_t, Int_t) const override
NOT IMPLEMENTED for TH2Poly.
void SetFloat(Bool_t flag=true)
When set to kTRUE, allows the histogram to expand if a bin outside the limits is added.
Bool_t GetBinContentChanged() const
Double_t Integral(Option_t *option="") const override
Returns the integral of bin contents.
virtual TH2PolyBin * CreateBin(TObject *poly)
Create appropriate histogram bin.
Double_t GetBinContent(Int_t bin) const override
Returns the content of the input bin For the overflow/underflow/sea bins:
Bool_t * fIsEmpty
[fNCells] The array that returns true if the cell at the given coordinate is empty
Double_t RetrieveBinContent(Int_t bin) const override
Raw retrieval of bin content on internal data structure see convention for numbering bins in TH1::Get...
TList * fBins
List of bins. The list owns the contained objects.
void AddBinToPartition(TH2PolyBin *bin)
Adds the input bin into the partition cell matrix.
Bool_t fBinContentChanged
!For the 3D Painter
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
Int_t GetNumberOfBins() const
void SetBinContentChanged(Bool_t flag)
void GetStats(Double_t *stats) const override
Fill the array stats from the contents of this histogram The array stats must be correctly dimensione...
Bool_t * fCompletelyInside
[fNCells] The array that returns true if the cell at the given coordinate is completely inside a bin
TH2Poly()
Default Constructor. No boundaries specified.
Bool_t IsInsideBin(Int_t binnr, Double_t x, Double_t y)
Return "true" if the point (x,y) is inside the bin of binnr.
Bool_t fNewBinAdded
!For the 3D Painter
void SetBinError(Int_t bin, Double_t error) override
Set the bin Error.
const char * GetBinTitle(Int_t bin) const
Returns the bin title.
void SetBinContent(Int_t, Int_t, Int_t, Double_t) override
NOT IMPLEMENTED for TH2Poly.
void SetBinError(Int_t, Int_t, Double_t) override
NOT IMPLEMENTED for TH2Poly.
void SetNewBinAdded(Bool_t flag)
void Scale(Double_t c1=1, Option_t *option="") override
Multiply this histogram by a constant c1.
void ChangePartition(Int_t n, Int_t m)
Changes the number of partition cells in the histogram.
Double_t Integral(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, const Option_t *) const override
NOT IMPLEMENTED for TH2Poly.
void FillN(Int_t, const Double_t *, const Double_t *, Int_t) override
NOT IMPLEMENTED for TH2Poly.
void SetBinError(Int_t, Int_t, Int_t, Double_t) override
NOT IMPLEMENTED for TH2Poly.
Double_t GetMinimum() const
Returns the minimum value of the histogram.
const char * GetBinName(Int_t bin) const
Returns the bin name.
Double_t Integral(Int_t, Int_t, Int_t, Int_t, const Option_t *) const override
NOT IMPLEMENTED for TH2Poly.
void FillN(Int_t ntimes, const Double_t *x, const Double_t *y, const Double_t *w, Int_t stride=1) override
Fills a 2-D histogram with an array of values and weights.
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
Int_t fNCells
Number of partition cells: fCellX*fCellY.
Int_t FindBin(Double_t x, Double_t y, Double_t z=0) override
Returns the bin number of the bin at the given coordinate.
Bool_t Divide(TF1 *, Double_t) override
NOT IMPLEMENTED for TH2Poly.
void Initialize(Double_t xlow, Double_t xup, Double_t ylow, Double_t yup, Int_t n, Int_t m)
Initializes the TH2Poly object. This method is called by the constructor.
Int_t fCellX
Number of partition cells in the x-direction of the histogram.
~TH2Poly() override
Destructor.
virtual Int_t AddBin(TObject *poly)
Adds a new bin to the histogram.
Double_t GetBinError(Int_t bin) const override
Returns the value of error associated to bin number bin.
Bool_t IsIntersectingPolygon(Int_t bn, Double_t *x, Double_t *y, Double_t xclipl, Double_t xclipr, Double_t yclipb, Double_t yclipt)
Returns kTRUE if the input polygon (bn, x, y) is intersecting with the input rectangle (xclipl,...
Bool_t Add(const TH1 *h1, Double_t c1) override
Performs the operation: this = this + c1*h1.
Double_t Integral(Int_t, Int_t, const Option_t *) const override
NOT IMPLEMENTED for TH2Poly.
virtual TH1 * GetAsymmetry(TH1 *, Double_t, Double_t)
NOT IMPLEMENTED for TH2Poly.
Double_t GetBinError(Int_t, Int_t, Int_t) const override
NOT IMPLEMENTED for TH2Poly.
Long64_t Merge(TCollection *) override
Merge TH2Polys Given the special nature of the TH2Poly, the merge is implemented in terms of subseque...
void SetBinContent(Int_t bin, Double_t content) override
Sets the contents of the input bin to the input content Negative values between -1 and -9 are for the...
Double_t GetMaximum() const
Returns the maximum value of the histogram.
void Reset(Option_t *option) override
Reset this histogram: contents, errors, etc.
Bool_t GetNewBinAdded() const
Int_t Fill(const char *, const char *, Double_t) override
NOT IMPLEMENTED for TH2Poly.
Double_t GetBinContent(Int_t, Int_t, Int_t) const override
NOT IMPLEMENTED for TH2Poly.
Double_t fStepY
Dimensions of a partition cell.
void SetBinContent(Int_t, Int_t, Double_t) override
NOT IMPLEMENTED for TH2Poly.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
TH1 * FFT(TH1 *, Option_t *) override
NOT IMPLEMENTED for TH2Poly.
Int_t Fill(Double_t, const char *, Double_t) override
NOT IMPLEMENTED for TH2Poly.
Int_t Fill(Double_t) override
NOT IMPLEMENTED for TH2Poly.
TList * fCells
[fNCells] The array of TLists that store the bins that intersect with each cell. List do not own the ...
Int_t fCellY
Number of partition cells in the y-direction of the histogram.
Service class for 2-D histogram classes.
Double_t Interpolate(Double_t x) const override
illegal for a TH2
A TMultiGraph is a collection of TGraph (or derived) objects.
Mother of all ROOT objects.
The most important graphics class in the ROOT system.
#define Interpolate(a, x, b, y)