13 TH1F *h1st =
new TH1F(
"h1st",
"test hstack",100,-4,4);
19 TH1F *h2st =
new TH1F(
"h2st",
"test hstack",100,-4,4);
25 TH1F *h3st =
new TH1F(
"h3st",
"test hstack",100,-4,4);
42 hs->
Draw(
"nostack,e1p");
45 gPad->SetFrameFillColor(17);
52 gPad->SetFrameFillColor(17);
55 "xygaus + xygaus(5) + xylandau(10)",-4,4,-4,4);
56 Double_t params1[] = {130,-1.4,1.8,1.5,1, 150,2,0.5,-2,0.5,
59 TH2F *h2sta =
new TH2F(
"h2sta",
"h2sta",20,-4,4,20,-4,4);
62 TF2 *f2 =
new TF2(
"f2",
"xygaus + xygaus(5)",-4,4,-4,4);
63 Double_t params2[] = {100,-1.4,1.9,1.1,2, 80,2,0.7,-2,0.5};
65 TH2F *h2stb =
new TH2F(
"h2stb",
"h2stb",20,-4,4,20,-4,4);
virtual void SetParameters(const Double_t *params)
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
The Histogram stack class.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *chopt="")
Draw this multihist with its current attributes.
virtual void SetMarkerColor(Color_t mcolor=1)
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
virtual void SetFillColor(Color_t fcolor)
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SetMarkerStyle(Style_t mstyle=1)
A 2-Dim function with parameters.
virtual void Add(TH1 *h, Option_t *option="")
add a new histogram to the list Only 1-d and 2-d histograms currently supported.
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.