13void hist037_TH2Poly_boxes()
29 for (i = 0; i < nx; i++) {
32 for (j = 0; j < ny; j++) {
33 h2p->
AddBin(xval1, yval1, xval2, yval2);
35 yval2 = yval2 + yval2 * dy;
38 xval2 = xval2 + xval2 * dx;
42 for (i = 0; i < 300000; i++) {
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
void SetTitle(const char *title) override
Change/set the title.
void Draw(Option_t *option="") override
Draw this histogram with options.
void SetName(const char *name) override
Change the name of this histogram.
2D Histogram with Polygonal Bins
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
virtual Int_t AddBin(TObject *poly)
Adds a new bin to the histogram.
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...