16 TH2I *
h1 =
new TH2I(
"h1",
"Decay",1000,0,1000,20,0,20);
19 for (
int i = 0; i < 17; i++) {
20 for (
int j = 0; j < 1000000; j++) {
21 myRand = rand->
Gaus(350+i*5,5+5*i);
33 h1->
Draw(
"violiny(12000000)");
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.
virtual void SetBarWidth(Float_t width=0.5)
This is the base class for the ROOT Random number generators.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
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.
TObject * Clone(const char *newname=0) const
Make a complete copy of the underlying object.
THist< 2, int, THistStatContent > TH2I
tomato 2-D histogram with an int per channel (see TH1 documentation)}
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.