This tutorial illustrates how to create an histogram with hexagonal bins (TH2Poly).
The method TH2Poly::Honeycomb allows to build automatically an honeycomb binning.
void th2polyHoneycomb(){
C->Divide(2,1);
C->cd(1)->SetGrid();
C->cd(2)->SetGrid();
}
void SetTitle(const char *title) override
Change/set the title.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
2D Histogram with Polygonal Bins
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
void Honeycomb(Double_t xstart, Double_t ystart, Double_t a, Int_t k, Int_t s, Option_t *option="v")
Bins the histogram using a honeycomb structure If the option "v" is specified, the hexagons are drawn...
- Author
- Olivier Couet
Definition in file th2polyHoneycomb.C.