This tutorial illustrates how to create an histogram with polygonal bins (TH2Poly).
The bins are boxes.
xval1 = 0.;
xval2 = dx;
yval1 = 0.;
yval2 = dy;
h2p->
AddBin(xval1, yval1, xval2, yval2);
yval1 = yval2;
yval2 = yval2+yval2*dy;
}
xval1 = xval2;
xval2 = xval2+xval2*dx;
}
for (i = 0; i<300000; i++) {
}
return ch2p2;
}
- Author
- Olivier Couet
Definition in file th2polyBoxes.C.