ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
th2polyHoneycomb.C File Reference

This tutorial illustrates how to create an histogram with hexagonal bins (TH2Poly), fill it and draw it using GL. More...

Go to the source code of this file.

Detailed Description

This tutorial illustrates how to create an histogram with hexagonal bins (TH2Poly), fill it and draw it using GL.

void th2polyHoneycomb(){
TH2Poly *hc = new TH2Poly();
hc->Honeycomb(0,0,.1,25,25);
TRandom ran;
for (int i = 0; i<30000; i++) {
hc->Fill(ran.Gaus(2.,1), ran.Gaus(2.,1));
}
hc->Draw("gllego");
}
Author
Olivier Couet

Definition in file th2polyHoneycomb.C.