17 TH2I *
h1 =
new TH2I(
"h1",
"GausXY",20,-5,5,100,-5,5);
18 TH2I *h3 =
new TH2I(
"h3",
"GausXY",100,-5,5,20,-5,5);
23 for (
int j = 0; j < 100000; j++) {
24 myRand1 = rng->
Gaus(0,1);
25 myRand2 = rng->
Gaus(0,1);
26 h1->
Fill(myRand1, myRand2);
27 h3->
Fill(myRand1, myRand2);
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...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
This is the base class for the ROOT Random number generators.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
static void SetScaledCandle(const Bool_t cScale=true)
Static function to set scaling between candles-withs.
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
static void SetScaledViolin(const Bool_t vScale=true)
Static function to set scaling between violin-withs.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
THist< 2, int, THistStatContent > TH2I
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
2-D histogram with an int per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.