14   auto hs = 
new THStack(
"hs", 
"Stacked 1D histograms");
 
   16   auto h1st = 
new TH1F(
"h1st", 
"test hstack", 100, -4, 4);
 
   17   h1st->FillRandom(
"gaus", 20000);
 
   19   h1st->SetMarkerStyle(21);
 
   22   auto h2st = 
new TH1F(
"h2st", 
"test hstack", 100, -4, 4);
 
   23   h2st->FillRandom(
"gaus", 15000);
 
   25   h2st->SetMarkerStyle(21);
 
   28   auto h3st = 
new TH1F(
"h3st", 
"test hstack", 100, -4, 4);
 
   29   h3st->FillRandom(
"gaus", 10000);
 
   31   h3st->SetMarkerStyle(21);
 
   35   auto cst = 
new TCanvas(
"cst", 
"stacked hists", 10, 10, 700, 700);
 
   44   hs->Draw(
"nostack,e1p");
 
   47   gPad->SetFrameFillColor(17);
 
   54   gPad->SetFrameFillColor(17);
 
   55   auto a = 
new THStack(
"a", 
"Stacked 2D histograms");
 
   56   auto f1 = 
new TF2(
"f1", 
"xygaus + xygaus(5) + xylandau(10)", -4, 4, -4, 4);
 
   57   Double_t params1[] = {130, -1.4, 1.8, 1.5, 1, 150, 2, 0.5, -2, 0.5, 3600, -2, 0.7, -3, 0.3};
 
   59   auto h2sta = 
new TH2F(
"h2sta", 
"h2sta", 20, -4, 4, 20, -4, 4);
 
   60   h2sta->SetFillColor(38);
 
   61   h2sta->FillRandom(
"f1", 4000);
 
   62   auto f2 = 
new TF2(
"f2", 
"xygaus + xygaus(5)", -4, 4, -4, 4);
 
   65   auto h2stb = 
new TH2F(
"h2stb", 
"h2stb", 20, -4, 4, 20, -4, 4);
 
   66   h2stb->SetFillColor(46);
 
   67   h2stb->FillRandom(
"f2", 3000);
 
double Double_t
Double 8 bytes.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
virtual void SetParameters(const Double_t *params)
 
A 2-Dim function with parameters.
 
1-D histogram with a float per channel (see TH1 documentation)
 
2-D histogram with a float per channel (see TH1 documentation)
 
The Histogram stack class.