This tutorial illustrates how to create an histogram with hexagonal bins (TH2Poly).
The method TH2Poly::Honeycomb allows to build automatically an honeycomb binning.
C->Divide(2,1);
hc1->Honeycomb(0, 0, .1, 5, 5);
hc1->SetTitle(
"Option V (default)");
hc2->Honeycomb(0, 0, .1, 5, 5,
"h");
hc2->SetTitle(
"Option H");
C->cd(1)->SetGrid();
C->cd(2)->SetGrid();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
2D Histogram with Polygonal Bins
- Author
- Olivier Couet
Definition in file th2polyHoneycomb.C.