27 for (i = 0; i<
nx; i++) {
30 for (j = 0; j<
ny; j++) {
31 h2p->
AddBin(xval1, yval1, xval2, yval2);
33 yval2 = yval2+yval2*dy;
36 xval2 = xval2+xval2*dx;
40 for (i = 0; i<300000; i++) {
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...
R__EXTERN TStyle * gStyle
This is the base class for the ROOT Random number generators.
Int_t AddBin(TObject *poly)
Adds a new bin to the histogram.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetName(const char *name)
Change the name of this histogram.
virtual void SetTitle(const char *title)
Change (i.e.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
Int_t Fill(Double_t x, Double_t y)
Increment the bin containing (x,y) by 1.
2D Histogram with Polygonal Bins