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(){
for (int i = 0; i<30000; i++) {
}
}
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
2D Histogram with Polygonal Bins
void Honeycomb(Double_t xstart, Double_t ystart, Double_t a, Int_t k, Int_t s)
Bins the histogram using a honeycomb structure.
virtual Int_t Fill(Double_t x, Double_t y)
Increment the bin containing (x,y) by 1.
This is the base class for the ROOT Random number generators.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
- Author
- Olivier Couet
Definition in file th2polyHoneycomb.C.